# Error in Pre-Compiling

**URL:** <https://discourse.julialang.org/t/error-in-pre-compiling/68563>\
**Category:** Performance\
**Tags:** question, package\
**Created:** [September 22, 2021, 3:06am UTC](https://discourse.julialang.org/t/error-in-pre-compiling/68563 "2021-09-22T03:06:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pafloxy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pafloxy/32/28694_2.png) [@pafloxy](https://discourse.julialang.org/u/pafloxy)\
**Post date:** [September 22, 2021, 3:06am UTC](https://discourse.julialang.org/t/error-in-pre-compiling/68563/1 "2021-09-22T03:06:38Z")

</div>

Hi! I am facing problem importing DynamicalSystems.jl library in jupyter environment by `using DynamicalSystems` . I recently installed version 1.2.2. of the library.  
The following error message appears.

 ![image](https://global.discourse-cdn.com/julialang/original/3X/b/d/bdc90de7ab0ef233dc8df69c71c57d6d02adf357.png)  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/e/5/e53c34c578e156c4ee8aad1f2b514ac4d97cb220.png)  
However no such problem occurs if I import DynamicalSystems.jl in REPL. What should I do?

---

<div class="post-metadata">

**Author:** ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)\
**Post date:** [September 22, 2021, 6:03am UTC](https://discourse.julialang.org/t/error-in-pre-compiling/68563/2 "2021-09-22T06:03:33Z")

</div>

What does your package status look like?

```julia
using Pkg
Pkg.status()

```

maybe an update helps `Pkg.update()`.

---

<div class="post-metadata">

**Author:** ![pafloxy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pafloxy/32/28694_2.png) [@pafloxy](https://discourse.julialang.org/u/pafloxy)\
**Post date:** [September 22, 2021, 6:18am UTC](https://discourse.julialang.org/t/error-in-pre-compiling/68563/3 "2021-09-22T06:18:02Z")

</div>

Hi! it looks as so.

````julia
Status `C:\Users\RAJARSI\.julia\environments\v1.5\Project.toml`
  [61744808] DynamicalSystems v2.1.1 ```
````

---

<div class="post-metadata">

**Author:** ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)\
**Post date:** [September 22, 2021, 6:34am UTC](https://discourse.julialang.org/t/error-in-pre-compiling/68563/4 "2021-09-22T06:34:56Z")

</div>

Hmm, that cannot be your full status, as you also have Plots installed.

Anyway, I recommend to use one environment per job you do; i.e. don’t install packages into the global environment. So, start the REPL in the folder where your files are, enter package mode `]` and do `activate .`. (Or `using Pkg; Pkg.activate(".")` ) Install the packages that you need for this particular job, here `Pkg.install.(["DynamicalSystems", "Plots"])`.

That will create a `Project.toml` and `Manifest.toml` file in the current folder which makes that a julia environment. If you start Juyter with that as base-folder then it will pick up that project automatically. Alternatively, if you do not start Jupyter in the right place, put into your script/notebook  
`using Pkg; Pkg.activate(@ __FILE__ )` (I think that works)

So, I would recommend this. Maybe it will even fix your problem, if not report back.

---

<div class="post-metadata">

**Author:** ![pafloxy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pafloxy/32/28694_2.png) [@pafloxy](https://discourse.julialang.org/u/pafloxy)\
**Post date:** [September 22, 2021, 7:33am UTC](https://discourse.julialang.org/t/error-in-pre-compiling/68563/5 "2021-09-22T07:33:22Z")

</div>

Sorry, I misinterpret your instruction to check the status of DynamicalSystems.jl only. This one is the one you originally asked for.

````julia
julia> Pkg.status()
Status `C:\Users\RAJARSI\.julia\environments\v1.5\Project.toml`
  [6e4b80f9] BenchmarkTools v1.2.0
  [336ed68f] CSV v0.9.3
  [0c46a032] DifferentialEquations v6.18.0
  [31c24e10] Distributions v0.25.14
  [61744808] DynamicalSystems v2.1.1
  [6e36e845] DynamicalSystemsBase v2.2.1
  [7073ff75] IJulia v1.23.2
  [1dea7af3] OrdinaryDiffEq v5.61.1
  [f0f68f2c] PlotlyJS v0.18.7
  [91a5bcdd] Plots v1.22.1
  [c3e4b0f8] Pluto v0.16.0
  [6aa20fa7] TensorOperations v3.2.3
  [48a634ad] Tensors v1.6.1
  [9a3f8284] Random ```
 I don't know why but re-starting the kernel, though shows the same message the functionalities included in the DynamicalSystems.jl package seems to work!
However, I will try out the things you have suggested! Thanks.
````

---

<div class="post-metadata">

**Author:** ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)\
**Post date:** [September 22, 2021, 7:48am UTC](https://discourse.julialang.org/t/error-in-pre-compiling/68563/6 "2021-09-22T07:48:25Z")

</div>

Ok, if it works and your question is answered, then you can mark it as “solved”. Maybe you want to have a read through: [1. Introduction · Pkg.jl](https://pkgdocs.julialang.org/v1/)

Also, note

- part of your answer is in the quoted code.
- I edited above answer to get the terminology right project-\>environment
