alanderos91 / BioSimulator.jl

A stochastic simulation framework in Julia.
https://alanderos91.github.io/BioSimulator.jl/stable/
Other
47 stars 7 forks source link

Failed loading error #28

Closed skycolt closed 4 years ago

skycolt commented 4 years ago

Hello,

Recently start to use BioSimulator again and found I can't load it. If I type "using BioSimulator" I get the following error message:

[ Info: Precompiling BioSimulator [6aabf0a6-ec0e-58c4-b8bf-f645d5ac4ee8] ERROR: LoadError: LoadError: invalid subtyping in definition of SamplePath Stacktrace: [1] top-level scope at /Users/wenzhe1/.julia/dev/BioSimulator/src/output/SamplePath.jl:1 [2] include at ./boot.jl:328 [inlined] [3] include_relative(::Module, ::String) at ./loading.jl:1105 [4] include at ./Base.jl:31 [inlined] [5] include(::String) at /Users/wenzhe1/.julia/dev/BioSimulator/src/BioSimulator.jl:1 [6] top-level scope at /Users/wenzhe1/.julia/dev/BioSimulator/src/BioSimulator.jl:91 [7] include at ./boot.jl:328 [inlined] [8] include_relative(::Module, ::String) at ./loading.jl:1105 [9] include(::Module, ::String) at ./Base.jl:31 [10] top-level scope at none:2 [11] eval at ./boot.jl:330 [inlined] [12] eval(::Expr) at ./client.jl:425 [13] top-level scope at ./none:3 in expression starting at /Users/wenzhe1/.julia/dev/BioSimulator/src/output/SamplePath.jl:1 in expression starting at /Users/wenzhe1/.julia/dev/BioSimulator/src/BioSimulator.jl:91 ERROR: Failed to precompile BioSimulator [6aabf0a6-ec0e-58c4-b8bf-f645d5ac4ee8] to /Users/wenzhe1/.julia/compiled/v1.3/BioSimulator/SB6vy_nF8BY.ji. Stacktrace: [1] compilecache(::Base.PkgId, ::String) at ./loading.jl:1283 [2] _require(::Base.PkgId) at ./loading.jl:1024 [3] require(::Base.PkgId) at ./loading.jl:922 [4] require(::Module, ::Symbol) at ./loading.jl:917

Please help me with this. Thanks!

BTW. Did you remove the option to run multiple simulation from the function "simulate"?

alanderos91 commented 4 years ago

I made a new release that may cause this issue when updating. Try a fresh install of BioSimulator. Please share the results (before re-installing) of Pkg.status if you can.

You can still run multiple realizations but it's not done with the trials keyword. Use a comprehension instead:

result = [simulate(...) for trial in 1:num_trials]

I'd like to re-implement an interface for this so feel free to share your opinions on this. Ditto for the output types: what kind of summary would you find useful in your work?

On Fri, Jan 10, 2020, 11:24 skycolt notifications@github.com wrote:

Hello,

Recently start to use BioSimulator again and found I can't load it. If I type "using BioSimulator" I get the following error message:

[ Info: Precompiling BioSimulator [6aabf0a6-ec0e-58c4-b8bf-f645d5ac4ee8] ERROR: LoadError: LoadError: invalid subtyping in definition of SamplePath Stacktrace: [1] top-level scope at /Users/wenzhe1/.julia/dev/BioSimulator/src/output/SamplePath.jl:1 [2] include at ./boot.jl:328 [inlined] [3] include_relative(::Module, ::String) at ./loading.jl:1105 [4] include at ./Base.jl:31 [inlined] [5] include(::String) at /Users/wenzhe1/.julia/dev/BioSimulator/src/BioSimulator.jl:1 [6] top-level scope at /Users/wenzhe1/.julia/dev/BioSimulator/src/BioSimulator.jl:91 [7] include at ./boot.jl:328 [inlined] [8] include_relative(::Module, ::String) at ./loading.jl:1105 [9] include(::Module, ::String) at ./Base.jl:31 [10] top-level scope at none:2 [11] eval at ./boot.jl:330 [inlined] [12] eval(::Expr) at ./client.jl:425 [13] top-level scope at ./none:3 in expression starting at /Users/wenzhe1/.julia/dev/BioSimulator/src/output/SamplePath.jl:1 in expression starting at /Users/wenzhe1/.julia/dev/BioSimulator/src/BioSimulator.jl:91 ERROR: Failed to precompile BioSimulator [6aabf0a6-ec0e-58c4-b8bf-f645d5ac4ee8] to /Users/wenzhe1/.julia/compiled/v1.3/BioSimulator/SB6vy_nF8BY.ji. Stacktrace: [1] compilecache(::Base.PkgId, ::String) at ./loading.jl:1283 [2] _require(::Base.PkgId) at ./loading.jl:1024 [3] require(::Base.PkgId) at ./loading.jl:922 [4] require(::Module, ::Symbol) at ./loading.jl:917

Please help me with this. Thanks!

BTW. Did you remove the option to run multiple simulation from the function "simulate"?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/alanderos91/BioSimulator.jl/issues/28?email_source=notifications&email_token=AGCLJ3DFNDY5RBQC3EJH7E3Q5DDOJA5CNFSM4KFMGJX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IFNTRWQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGCLJ3BOCVEB744JVBO6LS3Q5DDOJANCNFSM4KFMGJXQ .

skycolt commented 4 years ago

No luck here :(

I tried to use rm command OR just delete the BioSimulator directory in Julia package directory. None has worked for me.

Here is the Pkg.status() output:

[c52e3926] Atom v0.11.3 [6aabf0a6] BioSimulator v0.9.1-beta #master (https://github.com/alanderos91/BioSimulator.jl.git) [587475ba] Flux v0.10.1 [6218d12a] ImageMagick v1.1.2 [86fae568] ImageView v0.10.3 [916415d5] Images v0.19.3 [e5e0dc1b] Juno v0.7.2 [ee78f7c6] Makie v0.9.5 [c030b06c] ODE v2.6.0 [91a5bcdd] Plots v0.28.4 [92933f4c] ProgressMeter v1.2.0 [438e738f] PyCall v1.91.2 [d330b81b] PyPlot v2.8.2 [dca85d43] QuartzImageIO v0.6.0 [5e47fb64] TestImages v1.0.0

skycolt commented 4 years ago

Julia version 1.3, no idea if this matters

skycolt commented 4 years ago

I tried to use rm command to remove the package, then reinstall; or delete everything in the "packages" folder. Nothing seems to work yet.

alanderos91 commented 4 years ago

I've been cavalier about dependency versions. Latest version should fix this but will reopen if it's not the case.

skycolt commented 4 years ago

It works now. Thanks!