JuliaDynamics / DynamicalSystems.jl

Award winning software library for nonlinear dynamics and nonlinear timeseries analysis

Home Page:https://juliadynamics.github.io/DynamicalSystemsDocs.jl/dynamicalsystems/dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Precompiling error

Marco-Congedo opened this issue · comments

Hello, i installed DynamicalSystems.jl.
Julia's registry installs v1.4.0.
I was using Julia v1.6.
As soon as i attempt to call using DynamicalSystems i get a precompiling error. I tried to reinstall and also to revert back to Julia v1.5.4. I still have the same error. Here it is. Any idea? :

[ Info: Precompiling DynamicalSystems [61744808-ddfa-5f27-97ff-6e42cc95d634]
ERROR: LoadError: LoadError: UndefVarError: NeighborNumber not defined
Stacktrace:
 [1] top-level scope at C:\Users\congedom-admin\.julia\packages\RecurrenceAnalysis\WIvYC\src\matrices.jl:11
 [2] include(::Function, ::Module, ::String) at .\Base.jl:380
 [3] include at .\Base.jl:368 [inlined]
 [4] include(::String) at C:\Users\congedom-admin\.julia\packages\RecurrenceAnalysis\WIvYC\src\RecurrenceAnalysis.jl:1
 [5] top-level scope at C:\Users\congedom-admin\.julia\packages\RecurrenceAnalysis\WIvYC\src\RecurrenceAnalysis.jl:52
 [6] include(::Function, ::Module, ::String) at .\Base.jl:380
 [7] include(::Module, ::String) at .\Base.jl:368
 [8] top-level scope at none:2
 [9] eval at .\boot.jl:347 [inlined]
 [10] eval(::Expr) at .\client.jl:467
 [11] top-level scope at .\none:3
in expression starting at C:\Users\congedom-admin\.julia\packages\RecurrenceAnalysis\WIvYC\src\matrices.jl:11
in expression starting at C:\Users\congedom-admin\.julia\packages\RecurrenceAnalysis\WIvYC\src\RecurrenceAnalysis.jl:52
ERROR: LoadError: Failed to precompile RecurrenceAnalysis [639c3291-70d9-5ea2-8c5b-839eba1ee399] to C:\Users\congedom-admin\.julia\compiled\v1.5\RecurrenceAnalysis\15lBl_dvbgg.ji.
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1305
 [3] _require(::Base.PkgId) at .\loading.jl:1030
 [4] require(::Base.PkgId) at .\loading.jl:928
 [5] require(::Module, ::Symbol) at .\loading.jl:923
 [6] include(::Function, ::Module, ::String) at .\Base.jl:380
 [7] include(::Module, ::String) at .\Base.jl:368
 [8] top-level scope at none:2
 [9] eval at .\boot.jl:347 [inlined]
 [10] eval(::Expr) at .\client.jl:467
 [11] top-level scope at .\none:3
in expression starting at C:\Users\congedom-admin\.julia\packages\DynamicalSystems\nSSco\src\DynamicalSystems.jl:15
ERROR: Failed to precompile DynamicalSystems [61744808-ddfa-5f27-97ff-6e42cc95d634] to C:\Users\congedom-admin\.julia\compiled\v1.5\DynamicalSystems\TY1vN_dvbgg.ji.
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1305
 [3] _require(::Base.PkgId) at .\loading.jl:1030
 [4] require(::Base.PkgId) at .\loading.jl:928
 [5] require(::Module, ::Symbol) at .\loading.jl:923

v1.4 is literally years old version. Try doing

Pkg.add("DynamicalSystems@1.17")

and let me know the error. Some other package you have forbids DynamicalSystems.jl from installing the latest version.

Also, please do explicitly Pkg.add("RecurrenceAnalysis") and report Pkg.status("RecurrenceAnalysis") here.

Hello,

i removed DynamicalSystem and tried:

julia> Pkg.add("RecurrenceAnalysis")
  Resolving package versions...
Updating `C:\Users\congedom-admin\.julia\environments\v1.5\Project.toml`
  [639c3291] + RecurrenceAnalysis v1.4.0
Updating `C:\Users\congedom-admin\.julia\environments\v1.5\Manifest.toml`
  [5732040d] + DelayEmbeddings v1.9.0
  [645ca80c] + Neighborhood v0.2.2
  [639c3291] + RecurrenceAnalysis v1.4.0
  [b8865327] + UnicodePlots v1.3.0

julia> Pkg.status("RecurrenceAnalysis")
Status `C:\Users\congedom-admin\.julia\environments\v1.5\Project.toml`
  [639c3291] RecurrenceAnalysis v1.4.0

julia> using RecurrenceAnalysis
[ Info: Precompiling RecurrenceAnalysis [639c3291-70d9-5ea2-8c5b-839eba1ee399]
ERROR: LoadError: LoadError: UndefVarError: NeighborNumber not defined
Stacktrace:
 [1] top-level scope at C:\Users\congedom-admin\.julia\packages\RecurrenceAnalysis\WIvYC\src\matrices.jl:11
 [2] include(::Function, ::Module, ::String) at .\Base.jl:380
 [3] include at .\Base.jl:368 [inlined]
 [4] include(::String) at C:\Users\congedom-admin\.julia\packages\RecurrenceAnalysis\WIvYC\src\RecurrenceAnalysis.jl:1
 [5] top-level scope at C:\Users\congedom-admin\.julia\packages\RecurrenceAnalysis\WIvYC\src\RecurrenceAnalysis.jl:52
 [6] include(::Function, ::Module, ::String) at .\Base.jl:380
 [7] include(::Module, ::String) at .\Base.jl:368
 [8] top-level scope at none:2
 [9] eval at .\boot.jl:347 [inlined]
 [10] eval(::Expr) at .\client.jl:467
 [11] top-level scope at .\none:3
in expression starting at C:\Users\congedom-admin\.julia\packages\RecurrenceAnalysis\WIvYC\src\matrices.jl:11
in expression starting at C:\Users\congedom-admin\.julia\packages\RecurrenceAnalysis\WIvYC\src\RecurrenceAnalysis.jl:52
ERROR: Failed to precompile RecurrenceAnalysis [639c3291-70d9-5ea2-8c5b-839eba1ee399] to C:\Users\congedom-admin\.julia\compiled\v1.5\RecurrenceAnalysis\15lBl_dvbgg.ji.
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1305
 [3] _require(::Base.PkgId) at .\loading.jl:1030
 [4] require(::Base.PkgId) at .\loading.jl:928
 [5] require(::Module, ::Symbol) at .\loading.jl:923

Please do Pkg.add("RecurrenceAnalysis@1.5") and report the error.

I also tried:


(@v1.5) pkg> add https://github.com/JuliaDynamics/RecurrenceAnalysis.jl#Master
    Cloning git-repo `https://github.com/JuliaDynamics/RecurrenceAnalysis.jl`
   Updating git-repo `https://github.com/JuliaDynamics/RecurrenceAnalysis.jl`
  Resolving package versions...
ERROR: Unsatisfiable requirements detected for package DelayEmbeddings [5732040d]:
 DelayEmbeddings [5732040d] log:
 ├─possible versions are: [0.1.0-0.1.1, 0.2.0, 0.3.0, 1.0.0-1.0.3, 1.1.0, 1.2.0, 1.3.0-1.3.1, 1.4.0-1.4.3, 1.5.0-1.5.1, 1.6.0-1.6.1, 1.7.0, 1.8.0, 1.9.0, 1.10.0-1.10.1, 1.11.0, 1.12.0-1.12.1, 1.13.0-1.13.1, 1.14.0-1.14.4, 1.15.0, 1.16.0-1.16.1, 1.17.0, 1.18.0, 1.19.0-1.19.3, 1.20.0-1.20.5] or uninstalled
 ├─restricted to versions 1.17.0-1 by RecurrenceAnalysis [639c3291], leaving only versions [1.17.0, 1.18.0, 1.19.0-1.19.3, 1.20.0-1.20.5]
 │ └─RecurrenceAnalysis [639c3291] log:
 │   ├─possible versions are: 1.5.1 or uninstalled
 │   └─RecurrenceAnalysis [639c3291] is fixed to version 1.5.1
 └─restricted by compatibility requirements with Distributions [31c24e10] to versions: [0.1.0-0.1.1, 0.2.0, 0.3.0, 1.0.0-1.0.3, 1.1.0, 1.2.0, 1.3.0-1.3.1, 1.4.0-1.4.3, 1.5.0-1.5.1, 1.6.0-1.6.1, 1.7.0, 
1.8.0, 1.9.0] or uninstalled — no versions left
   └─Distributions [31c24e10] log:
     ├─possible versions are: [0.16.0-0.16.4, 0.17.0, 0.18.0, 0.19.1-0.19.2, 0.20.0, 0.21.0-0.21.3, 0.21.5-0.21.12, 0.22.0-0.22.6, 0.23.0-0.23.12, 0.24.0-0.24.18, 0.25.0] or uninstalled
     ├─restricted to versions * by an explicit requirement, leaving only versions [0.16.0-0.16.4, 0.17.0, 0.18.0, 0.19.1-0.19.2, 0.20.0, 0.21.0-0.21.3, 0.21.5-0.21.12, 0.22.0-0.22.6, 0.23.0-0.23.12, 0.24.0-0.24.18, 0.25.0]
     ├─restricted by compatibility requirements with GLM [38e38edf] to versions: [0.16.0-0.16.4, 0.17.0, 0.18.0, 0.19.1-0.19.2, 0.20.0, 0.21.0-0.21.3, 0.21.5-0.21.12, 0.22.0-0.22.6, 0.23.0-0.23.12, 0.24.0-0.24.18]
     │ └─GLM [38e38edf] log:
     │   ├─possible versions are: [1.0.0-1.0.2, 1.1.0-1.1.1, 1.2.0, 1.3.0-1.3.11, 1.4.0-1.4.2] or uninstalled
     │   ├─restricted to versions * by an explicit requirement, leaving only versions [1.0.0-1.0.2, 1.1.0-1.1.1, 1.2.0, 1.3.0-1.3.11, 1.4.0-1.4.2]
     │   └─restricted by compatibility requirements with Distributions [31c24e10] to versions: [1.0.0-1.0.2, 1.1.0-1.1.1, 1.3.1-1.3.11, 1.4.0-1.4.2] or uninstalled, leaving only versions: [1.0.0-1.0.2, 1.1.0-1.1.1, 1.3.1-1.3.11, 1.4.0-1.4.2]
     │     └─Distributions [31c24e10] log: see above
     └─restricted by compatibility requirements with PosDefManifoldML [a07f4532] to versions: [0.21.11-0.21.12, 0.22.0-0.22.6]
       └─PosDefManifoldML [a07f4532] log:
         ├─possible versions are: [0.3.0-0.3.8, 0.4.0-0.4.4] or uninstalled
         └─restricted to versions * by an explicit requirement, leaving only versions [0.3.0-0.3.8, 0.4.0-0.4.4]

OK, i removed a package that was disturbing the installation. I could install DelayEmbeddings and RecurrenceAnalysis from the Master

I suggest that you open an issue at the packages GLM / PosDefManifoldML. They are using a very old version of Distributions.jl. This will lead to several problems for you, not only DynamicalSystems.jl but also other packages.

I will update PosDefManifoldML!