# \#error-message

**URL:** https://discourse.julialang.org/tag/error-message/588.md?page=1

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 2

---

## [Which getindex expression threw BoundsError](https://discourse.julialang.org/t/which-getindex-expression-threw-boundserror/109329)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 4\
**Last updated:** [January 28, 2024, 6:27pm UTC](https://discourse.julialang.org/t/which-getindex-expression-threw-boundserror/109329 "2024-01-28T18:27:46Z")

</div>

I often make this kind of mistake. Would it be possible for the error to figure out which subexpression has the problem, to save me time debugging? julia\> let n = 2, m = 3 xs = randn(n) ys = randn(…

---

## [Error when trying to add Pluto to Julia (Mac)](https://discourse.julialang.org/t/error-when-trying-to-add-pluto-to-julia-mac/107126)

<div class="topic-metadata">

**Author:** [@molinq](https://discourse.julialang.org/u/molinq)\
**Replies:** 23\
**Last updated:** [December 8, 2023, 5:22pm UTC](https://discourse.julialang.org/t/error-when-trying-to-add-pluto-to-julia-mac/107126 "2023-12-08T17:22:59Z")

</div>

Hey guys, I have just downloaded Julia 1.9 on my MacBook and everytime I try to add Pluto to Julia, I get this error message: (@v1.9) pkg\> dyld: Library not loaded: @rpath/libLLVM.dylib Referenced from: /Applications/…

---

## [ERROR: UndefVarError: \`GPU\` not defined Stacktrace: \[1\] top-level scope](https://discourse.julialang.org/t/error-undefvarerror-gpu-not-defined-stacktrace-1-top-level-scope/104097)

<div class="topic-metadata">

**Author:** [@Abraham\_Lincoln](https://discourse.julialang.org/u/Abraham_Lincoln)\
**Replies:** 1\
**Last updated:** [September 21, 2023, 4:01pm UTC](https://discourse.julialang.org/t/error-undefvarerror-gpu-not-defined-stacktrace-1-top-level-scope/104097 "2023-09-21T16:01:44Z")

</div>

When i run this code appears this error:ERROR: UndefVarError: GPU not defined Stacktrace: \[1\] top-level scope CODE: using CUDA using Flux using Flux.Data: DataLoader using Flux: onehotbatch, onecold, crossentropy,…

---

## [How to get last error message from REPL?](https://discourse.julialang.org/t/how-to-get-last-error-message-from-repl/102695)

<div class="topic-metadata">

**Author:** [@jinfreedom](https://discourse.julialang.org/u/jinfreedom)\
**Replies:** 3\
**Last updated:** [August 11, 2023, 10:37am UTC](https://discourse.julialang.org/t/how-to-get-last-error-message-from-repl/102695 "2023-08-11T10:37:56Z")

</div>

Is there a quick way to re-display the last error message from REPL, without the stacktrace?

---

## [Differences between extending \`Base.show\` and \`Base.showerror\` for a custom exception type in Julia?](https://discourse.julialang.org/t/differences-between-extending-base-show-and-base-showerror-for-a-custom-exception-type-in-julia/101003)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 1\
**Last updated:** [June 29, 2023, 11:14pm UTC](https://discourse.julialang.org/t/differences-between-extending-base-show-and-base-showerror-for-a-custom-exception-type-in-julia/101003 "2023-06-29T23:14:08Z")

</div>

I’m working on a Julia project where I have defined a custom exception type like this: struct XXXError \<: Exception e::String end Now, I want to customize how instances of this exception type are displayed. I under…

---

## [ArgumentError does not work inside for loops and other blocks](https://discourse.julialang.org/t/argumenterror-does-not-work-inside-for-loops-and-other-blocks/100427)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 2\
**Last updated:** [June 16, 2023, 12:13am UTC](https://discourse.julialang.org/t/argumenterror-does-not-work-inside-for-loops-and-other-blocks/100427 "2023-06-16T00:13:27Z")

</div>

In the examples below, A1. and A2. which use error break the program and show the error message. B1. and B2., which use ArgumentError do not. I’m using Julia 1.9.0. I’ve tried both of these inside functions, in case that…

---

## [List of errors and what they mean](https://discourse.julialang.org/t/list-of-errors-and-what-they-mean/99390)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 4\
**Last updated:** [May 25, 2023, 4:21pm UTC](https://discourse.julialang.org/t/list-of-errors-and-what-they-mean/99390 "2023-05-25T16:21:34Z")

</div>

Is there somewhere where I can see a list of Julia errors, and what they mean? Some are mostly self-explanatory (although it depends on your experience with this kind of stuff!), and some are not. And some might not be p…

---

## [Failed to precompile Flux \[587475ba-b771-5e3f-ad9e-33799f191a9c\] to ~.julia\\compiled\\v1.8\\Flux\\jl\_753A.tmp](https://discourse.julialang.org/t/failed-to-precompile-flux-587475ba-b771-5e3f-ad9e-33799f191a9c-to-julia-compiled-v1-8-flux-jl-753a-tmp/98811)

<div class="topic-metadata">

**Author:** [@ATR](https://discourse.julialang.org/u/ATR)\
**Replies:** 0\
**Last updated:** [May 13, 2023, 7:34pm UTC](https://discourse.julialang.org/t/failed-to-precompile-flux-587475ba-b771-5e3f-ad9e-33799f191a9c-to-julia-compiled-v1-8-flux-jl-753a-tmp/98811 "2023-05-13T19:34:29Z")

</div>

Dear all, I got the following error when trying to compile Flux in jupyter notebook: \[ Info: Precompiling Flux \[587475ba-b771-5e3f-ad9e-33799f191a9c\] ERROR: LoadError: InitError: could not load library “~.julia\\artifac…

---

## [Wrap long (in width) Pluto errors](https://discourse.julialang.org/t/wrap-long-in-width-pluto-errors/97716)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 2\
**Last updated:** [April 27, 2023, 7:13pm UTC](https://discourse.julialang.org/t/wrap-long-in-width-pluto-errors/97716 "2023-04-27T19:13:31Z")

</div>

Sometimes errors in Pluto are long and in order to see them you need to use the cursor For example: I need to scroll right This can be quite disturbing in some cases. Is there a way to wrap the text w.r.t the ma…

---

## [Error in Gridap](https://discourse.julialang.org/t/error-in-gridap/96840)

<div class="topic-metadata">

**Author:** [@larsudb](https://discourse.julialang.org/u/larsudb)\
**Replies:** 0\
**Last updated:** [March 30, 2023, 11:33am UTC](https://discourse.julialang.org/t/error-in-gridap/96840 "2023-03-30T11:33:49Z")

</div>

Hi All I get the following very long error message: ERROR: MethodError: no method matching Float64(::VectorValue{2, Float64}) Closest candidates are: (::Type{T})(::T) where T\<:Number at boot.jl:760 (::Type{T})(::Vec…

---

## [NULL PyObject in package](https://discourse.julialang.org/t/null-pyobject-in-package/96461)

<div class="topic-metadata">

**Author:** [@asorlik](https://discourse.julialang.org/u/asorlik)\
**Replies:** 2\
**Last updated:** [March 22, 2023, 7:59pm UTC](https://discourse.julialang.org/t/null-pyobject-in-package/96461 "2023-03-22T19:59:29Z")

</div>

I am creating a package and I have gotten the following error in one of my scripts that is called via include(“script\_name.jl”): ERROR: ArgumentError: ref of NULL PyObject The error is coming from a usage of np.gradien…

---

## [Help. New to Julia. Error using dev command](https://discourse.julialang.org/t/help-new-to-julia-error-using-dev-command/95950)

<div class="topic-metadata">

**Author:** [@armel3](https://discourse.julialang.org/u/armel3)\
**Replies:** 9\
**Last updated:** [March 17, 2023, 4:59pm UTC](https://discourse.julialang.org/t/help-new-to-julia-error-using-dev-command/95950 "2023-03-17T16:59:39Z")

</div>

So I am trying to use replicate an example Dubin’s car problem (source:Danylo Malyuta Research Works) based on the SCP toolbox on github but I keep getting errors and I have been struggling to find the solution. Here is …

---

## [A warning that doesn't seem reasonable: \`Possible method call error\`](https://discourse.julialang.org/t/a-warning-that-doesnt-seem-reasonable-possible-method-call-error/96221)

<div class="topic-metadata">

**Author:** [@BeitianMa](https://discourse.julialang.org/u/BeitianMa)\
**Replies:** 2\
**Last updated:** [March 17, 2023, 7:05am UTC](https://discourse.julialang.org/t/a-warning-that-doesnt-seem-reasonable-possible-method-call-error/96221 "2023-03-17T07:05:09Z")

</div>

When I try to manipulate a DataFrame in Julia, blue wavy lines often appear, such as the following and The code works fine except for the odd warning from the editor. My version of Julia is 1.8.5, and package statu…

---

## [How can I see what parameters are making my code erroring when broadcasting a function call?](https://discourse.julialang.org/t/how-can-i-see-what-parameters-are-making-my-code-erroring-when-broadcasting-a-function-call/96130)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 3\
**Last updated:** [March 15, 2023, 8:59pm UTC](https://discourse.julialang.org/t/how-can-i-see-what-parameters-are-making-my-code-erroring-when-broadcasting-a-function-call/96130 "2023-03-15T20:59:04Z")

</div>

Hi all! I have a function that raises a MethodError when broadcasted to a large vector of Strings. The error simply says julia\> df\_model\_measure\_master\[!, dest\_source\_eq\_sym\] = has\_dest\_source\_eq.(df\_model\_measure\_mast…

---

## [\[ANN\] RelevanceStacktrace.jl: For fastest error locating](https://discourse.julialang.org/t/ann-relevancestacktrace-jl-for-fastest-error-locating/86097)

<div class="topic-metadata">

**Author:** [@Marcell\_Havlik](https://discourse.julialang.org/u/Marcell_Havlik)\
**Replies:** 8\
**Last updated:** [February 16, 2023, 2:02pm UTC](https://discourse.julialang.org/t/ann-relevancestacktrace-jl-for-fastest-error-locating/86097 "2023-02-16T14:02:46Z")

</div>

Hey Julianners! Errors are part of our life, but locating them isn’t! The package locate the files that are yours and highlights them. Also, it will BOLD the first file you are actually looking for 99% of the time. So …

---

## [CUDA errors 203 and 103, CUDA.rand() and CUDA.versioninfo()](https://discourse.julialang.org/t/cuda-errors-203-and-103-cuda-rand-and-cuda-versioninfo/94595)

<div class="topic-metadata">

**Author:** [@David\_A](https://discourse.julialang.org/u/David_A)\
**Replies:** 6\
**Last updated:** [February 15, 2023, 7:09am UTC](https://discourse.julialang.org/t/cuda-errors-203-and-103-cuda-rand-and-cuda-versioninfo/94595 "2023-02-15T07:09:02Z")

</div>

I get the below error when attempting to use CUDa.rand() julia\> using CUDA julia\> CUDA.rand() ERROR: CURANDError: initialization of CUDA failed (code 203, CURAND\_STATUS\_INITIALIZATION\_FAILED) Stacktrace: \[1\] throw\_…

---

## [Confusing/misleading error message for a beginner](https://discourse.julialang.org/t/confusing-misleading-error-message-for-a-beginner/91277)

<div class="topic-metadata">

**Author:** [@einar](https://discourse.julialang.org/u/einar)\
**Replies:** 10\
**Last updated:** [December 13, 2022, 3:42am UTC](https://discourse.julialang.org/t/confusing-misleading-error-message-for-a-beginner/91277 "2022-12-13T03:42:48Z")

</div>

Note: This was originally meant to be a question, but I solved it along the way. However, I want to post it here anyway because it feels as a common beginner mistake and I wonder what could be done to improve the error m…

---

## [Parsing keyword argument method call name?](https://discourse.julialang.org/t/parsing-keyword-argument-method-call-name/91334)

<div class="topic-metadata">

**Author:** [@FedeClaudi](https://discourse.julialang.org/u/FedeClaudi)\
**Replies:** 0\
**Last updated:** [December 7, 2022, 2:02am UTC](https://discourse.julialang.org/t/parsing-keyword-argument-method-call-name/91334 "2022-12-07T02:02:28Z")

</div>

Hey everyone, I’m working on improving Term.jl’s stack trace functionality. The idea is to present nicely formatted stacktraces (hiding irrelevant info and highlighting useful stuff with color) However I find it har…

---

## [Unsupported Argument in Optimization.solve](https://discourse.julialang.org/t/unsupported-argument-in-optimization-solve/89146)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 1\
**Last updated:** [October 23, 2022, 5:29pm UTC](https://discourse.julialang.org/t/unsupported-argument-in-optimization-solve/89146 "2022-10-23T17:29:48Z")

</div>

I am running a demonstration of NeuralODE, fond at: https://diffeqflux.sciml.ai/stable/examples/neural\_ode/: result\_neuralode2 = Optimization.solve(optprob2, Optim.BFGS(initial\_stepnorm=0.01), callback = callb…

---

## [Error running highdim\_pde script from 2019 on 2022 SciML versions](https://discourse.julialang.org/t/error-running-highdim-pde-script-from-2019-on-2022-sciml-versions/89093)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 12\
**Last updated:** [October 23, 2022, 3:33pm UTC](https://discourse.julialang.org/t/error-running-highdim-pde-script-from-2019-on-2022-sciml-versions/89093 "2022-10-23T15:33:50Z")

</div>

I am trying to run the “Universal Differential Equations” demos posted at the github repository: GitHub - ChrisRackauckas/universal\_differential\_equations: Repository for the Universal Differential Equations for Scienti…

---

## [Assigned variables not working](https://discourse.julialang.org/t/assigned-variables-not-working/88014)

<div class="topic-metadata">

**Author:** [@Max\_Beez](https://discourse.julialang.org/u/Max_Beez)\
**Replies:** 11\
**Last updated:** [September 30, 2022, 9:31pm UTC](https://discourse.julialang.org/t/assigned-variables-not-working/88014 "2022-09-30T21:31:20Z")

</div>

I have multiple plots I am making of a given function that has modifications for each plot, and in each plot method I use the kwarg lw (line weight) so I have 6 plots so for each iteration of the function I have a differ…

---

## [Intercepting error messages - HOW?](https://discourse.julialang.org/t/intercepting-error-messages-how/77189)

<div class="topic-metadata">

**Author:** [@FedeClaudi](https://discourse.julialang.org/u/FedeClaudi)\
**Replies:** 11\
**Last updated:** [August 18, 2022, 5:03am UTC](https://discourse.julialang.org/t/intercepting-error-messages-how/77189 "2022-08-18T05:03:29Z")

</div>

In my Term.jl project I aim to provide functionality to print nicely formatted, pretty, error messages. A preview: This is inspired by Rich in python that prints error stacks like: In python you can define an exce…

---

## [PyError when using PyCall](https://discourse.julialang.org/t/pyerror-when-using-pycall/85731)

<div class="topic-metadata">

**Author:** [@hdroms](https://discourse.julialang.org/u/hdroms)\
**Replies:** 2\
**Last updated:** [August 17, 2022, 1:39am UTC](https://discourse.julialang.org/t/pyerror-when-using-pycall/85731 "2022-08-17T01:39:41Z")

</div>

I have been attempting to do video analysis using python’s hnccorr algorithm. The particular script thats throwing this error use to work, though when it was handed off to me it started throwing this error which thus far…

---

## [How to apply a decay for learning rate?](https://discourse.julialang.org/t/how-to-apply-a-decay-for-learning-rate/81108)

<div class="topic-metadata">

**Author:** [@vamp](https://discourse.julialang.org/u/vamp)\
**Replies:** 5\
**Last updated:** [May 16, 2022, 7:18am UTC](https://discourse.julialang.org/t/how-to-apply-a-decay-for-learning-rate/81108 "2022-05-16T07:18:13Z")

</div>

Hello, I am very new to Julia, so I apologize if I do not explain the problem correctly (feel free to ask me). I am trying to use this solvers. For the exploration\_policy I can use a decay with exploration\_policy= EpsG…

---

## [LoadError: CUDA error: invalid device ordinal. Version:Julia](https://discourse.julialang.org/t/loaderror-cuda-error-invalid-device-ordinal-version-julia/79863)

<div class="topic-metadata">

**Author:** [@munozdjp](https://discourse.julialang.org/u/munozdjp)\
**Replies:** 1\
**Last updated:** [April 26, 2022, 7:51am UTC](https://discourse.julialang.org/t/loaderror-cuda-error-invalid-device-ordinal-version-julia/79863 "2022-04-26T07:51:22Z")

</div>

When i follow the tutorial on: I run julia -i run/run\_nf.jl And I obtain the following error: shell\> julia -i run/run\_nf.jl /usr/share/modules/init/bash: eval: line 43: syntax error near unexpected token (' /usr…

---

## [CUDA.jl - Sub-Vector Indexing Problem Inside CUDA Kernel](https://discourse.julialang.org/t/cuda-jl-sub-vector-indexing-problem-inside-cuda-kernel/78526)

<div class="topic-metadata">

**Author:** [@moukann](https://discourse.julialang.org/u/moukann)\
**Replies:** 2\
**Last updated:** [March 28, 2022, 11:13am UTC](https://discourse.julialang.org/t/cuda-jl-sub-vector-indexing-problem-inside-cuda-kernel/78526 "2022-03-28T11:13:18Z")

</div>

Hello all, I’ve been experimenting with CUDA Julia. Formerly, I used CUDA Python but it was so limited and restrictive. So I migrated to Julia. Thanks for the great effort and flexible framework to everybody working on …

---

## [Efficient use of test or assert](https://discourse.julialang.org/t/efficient-use-of-test-or-assert/75895)

<div class="topic-metadata">

**Author:** [@benoitseron](https://discourse.julialang.org/u/benoitseron)\
**Replies:** 6\
**Last updated:** [February 7, 2022, 1:32pm UTC](https://discourse.julialang.org/t/efficient-use-of-test-or-assert/75895 "2022-02-07T13:32:27Z")

</div>

Suppose you want to check a property of some arguments given to a function, for instance, that x is positive. What is the best practice regarding this? I’m tempted to use @test x\>0 instead of writing a block such as i…

---

## [Simple Vector - UndefVar Error](https://discourse.julialang.org/t/simple-vector-undefvar-error/75419)

<div class="topic-metadata">

**Author:** [@chandras002](https://discourse.julialang.org/u/chandras002)\
**Replies:** 2\
**Last updated:** [January 31, 2022, 5:31am UTC](https://discourse.julialang.org/t/simple-vector-undefvar-error/75419 "2022-01-31T05:31:25Z")

</div>

I am trying to learn Vector implementation in Julia. (1.7.1) Following code gives :Candidate not defined" error. The code has taken from the question here. Stack overflow What is wrong here? what is the correct way…

---

## [Override the error message for avector\[0\]?](https://discourse.julialang.org/t/override-the-error-message-for-avector-0/74306)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 16\
**Last updated:** [January 18, 2022, 6:22pm UTC](https://discourse.julialang.org/t/override-the-error-message-for-avector-0/74306 "2022-01-18T18:22:03Z")

</div>

Proposal: override the error message for avector\[0\] with a message that specify explicitly that array indexing starts at 1 in Julia ?? I know: “If we do it for this, why not for …” but it is such a common error for peop…

---

## [ClosedPath AssertionError](https://discourse.julialang.org/t/closedpath-assertionerror/74671)

<div class="topic-metadata">

**Author:** [@fadil](https://discourse.julialang.org/u/fadil)\
**Replies:** 2\
**Last updated:** [January 15, 2022, 4:38pm UTC](https://discourse.julialang.org/t/closedpath-assertionerror/74671 "2022-01-15T16:38:27Z")

</div>

I get the problem when trying to create interior of the ClosedPath. z1 = 0 + 0im; z2 = 3 + 1im; z3 = 2 + 2im; z4 = 1 + 3im; p = ClosedPath(\[Segment(z1, z2), Segment(z2, z3), Segment(z3, z4), Segment(z4, z1)\]) interior…

[Previous page](https://discourse.julialang.org/tag/error-message/588.md?match_all_tags=true&tags%5B%5D=error-message)

[Next page](https://discourse.julialang.org/tag/error-message/588.md?match_all_tags=true&page=2&tags%5B%5D=error-message)
