# Error: Failed to precompile IJulia v1.24.0

**URL:** <https://discourse.julialang.org/t/error-failed-to-precompile-ijulia-v1-24-0/96270>\
**Category:** Jupyter-Notebook\
**Tags:** jupyter, error, ijulia\
**Created:** [March 18, 2023, 7:06am UTC](https://discourse.julialang.org/t/error-failed-to-precompile-ijulia-v1-24-0/96270 "2023-03-18T07:06:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JaydevSR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jaydevsr/32/31752_2.png) [@JaydevSR](https://discourse.julialang.org/u/JaydevSR)\
**Post date:** [March 18, 2023, 7:06am UTC](https://discourse.julialang.org/t/error-failed-to-precompile-ijulia-v1-24-0/96270/1 "2023-03-18T07:06:41Z")

</div>

I have been trying to run a particular jupyter notebook using IJulia but I get an error. A few things to note:

- I can run jupyter and then create a new julia notebook for which the kernel gets connected, and it is usable.
- I can use the julia console on opening jupyter for the first time.
- After running the particular notebook: [juliacon21-gpu\_workshop/AMDGPU.ipynb at main · maleadt/juliacon21-gpu\_workshop · GitHub](https://github.com/maleadt/juliacon21-gpu_workshop/blob/main/deep_dive/AMDGPU.ipynb). I get the following error. After this even new notebooks and new consoles give the same error.

```julia
[Info: Precompiling IJulia [7073ff75-c697-5162-941a-fcdaad2a7d2a]
ERROR: LoadError: ArgumentError: Package Parsers does not have SnoopPrecompile in its dependencies:
- You may have a partially installed environment. Try `Pkg.instantiate()`
  to ensure all packages in the environment are installed.
- Or, if you have Parsers checked out for development and have
  added SnoopPrecompile as a dependency but haven't updated your primary
  environment's manifest file, try `Pkg.resolve()`.
- Otherwise you may need to report an issue with Parsers
Stacktrace:
 [1] macro expansion
   @ .\loading.jl:1167 [inlined]
 [2] macro expansion
   @ .\lock.jl:223 [inlined]
 [3] require(into::Module, mod::Symbol)
   @ Base .\loading.jl:1144
 [4] include(mod::Module, _path::String)
   @ Base .\Base.jl:419
 [5] include(x::String)
   @ Parsers C:\Users\Jaydev Singh Rao\.julia\packages\Parsers\ZbMpq\src\Parsers.jl:1
 [6] top-level scope
   @ C:\Users\Jaydev Singh Rao\.julia\packages\Parsers\ZbMpq\src\Parsers.jl:428
 [7] include
   @ .\Base.jl:419 [inlined]
 [8] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
   @ Base .\loading.jl:1554
 [9] top-level scope
   @ stdin:1
in expression starting at C:\Users\Jaydev Singh Rao\.julia\packages\Parsers\ZbMpq\src\precompile.jl:1
in expression starting at C:\Users\Jaydev Singh Rao\.julia\packages\Parsers\ZbMpq\src\Parsers.jl:1
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile Parsers [69de0a69-1ddd-5017-9359-2bf0b02dc9f0] to C:\Users\Jaydev Singh Rao\.julia\compiled\v1.8\Parsers\jl_491C.tmp.
Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base .\loading.jl:1707
  [3] compilecache
    @ .\loading.jl:1651 [inlined]
  [4] _require(pkg::Base.PkgId)
    @ Base .\loading.jl:1337
  [5] _require_prelocked(uuidkey::Base.PkgId)
    @ Base .\loading.jl:1200
  [6] macro expansion
    @ .\loading.jl:1180 [inlined]
  [7] macro expansion
    @ .\lock.jl:223 [inlined]
  [8] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:1144
  [9] include(mod::Module, _path::String)
    @ Base .\Base.jl:419
 [10] include(x::String)
    @ JSON C:\Users\Jaydev Singh Rao\.julia\packages\JSON\NeJ9k\src\JSON.jl:3
 [11] top-level scope
    @ C:\Users\Jaydev Singh Rao\.julia\packages\JSON\NeJ9k\src\JSON.jl:11
 [12] include
    @ .\Base.jl:419 [inlined]
 [13] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
    @ Base .\loading.jl:1554
 [14] top-level scope
    @ stdin:1
in expression starting at C:\Users\Jaydev Singh Rao\.julia\packages\JSON\NeJ9k\src\Parser.jl:1
in expression starting at C:\Users\Jaydev Singh Rao\.julia\packages\JSON\NeJ9k\src\JSON.jl:3
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile JSON [682c06a0-de6a-54ab-a142-c8b1cf79cde6] to C:\Users\Jaydev Singh Rao\.julia\compiled\v1.8\JSON\jl_43BD.tmp.
Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base .\loading.jl:1707
  [3] compilecache
    @ .\loading.jl:1651 [inlined]
  [4] _require(pkg::Base.PkgId)
    @ Base .\loading.jl:1337
  [5] _require_prelocked(uuidkey::Base.PkgId)
    @ Base .\loading.jl:1200
  [6] macro expansion
    @ .\loading.jl:1180 [inlined]
  [7] macro expansion
    @ .\lock.jl:223 [inlined]
  [8] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:1144
  [9] include
    @ .\Base.jl:419 [inlined]
 [10] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
    @ Base .\loading.jl:1554
 [11] top-level scope
    @ stdin:1
in expression starting at C:\Users\Jaydev Singh Rao\.julia\packages\IJulia\6TIq1\src\IJulia.jl:1
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile IJulia [7073ff75-c697-5162-941a-fcdaad2a7d2a] to C:\Users\Jaydev Singh Rao\.julia\compiled\v1.8\IJulia\jl_40EE.tmp.
Stacktrace:
 [1] error(s::String)
   @ Base .\error.jl:35
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
   @ Base .\loading.jl:1707
 [3] compilecache
   @ .\loading.jl:1651 [inlined]
 [4] _require(pkg::Base.PkgId)
   @ Base .\loading.jl:1337
 [5] _require_prelocked(uuidkey::Base.PkgId)
   @ Base .\loading.jl:1200
 [6] macro expansion
   @ .\loading.jl:1180 [inlined]
 [7] macro expansion
   @ .\lock.jl:223 [inlined]
 [8] require(into::Module, mod::Symbol)
   @ Base .\loading.jl:1144
in expression starting at C:\Users\Jaydev Singh Rao\.julia\packages\IJulia\6TIq1\src\kernel.jl:1

```

- Version information

```julia
(v1.8) julia> versioninfo()
Julia Version 1.8.5
Commit 17cfb8e65e (2023-01-08 06:45 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 8 × Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, skylake)
  Threads: 1 on 8 virtual cores

```

Things I tried:

1. `Pkg.instantiate` and `Pkg.resolve`
2. Reinstall jupyter
3. Reinstall IJulia
4. Rebuild IJulia several times
5. Reinstall Anaconda
6. Update julia version from v1.8.4 to v1.8.5

None of these have worked for me.

---

<div class="post-metadata">

**Author:** ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Post date:** [March 18, 2023, 8:01am UTC](https://discourse.julialang.org/t/error-failed-to-precompile-ijulia-v1-24-0/96270/2 "2023-03-18T08:01:11Z")

</div>

`Pkg.resolve()` _in the appropriate environment_ should have done the trick for you. But if IJulia is in your default environment, and you were in a different package- or project-specific environment when you resolved, then you need to re-resolve your _default_ environment.

Consider `Pkg.update()` if that doesn’t work.

---

<div class="post-metadata">

**Author:** ![JaydevSR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jaydevsr/32/31752_2.png) [@JaydevSR](https://discourse.julialang.org/u/JaydevSR)\
**Post date:** [March 18, 2023, 10:36am UTC](https://discourse.julialang.org/t/error-failed-to-precompile-ijulia-v1-24-0/96270/3 "2023-03-18T10:36:04Z")

</div>

Yes you’re right! I was not instantiating and resolving the appropriate environment. Thanks a lot!
