-
-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] ERROR: LoadError: InitError when precompiling #3055
Comments
I have solved this issue by:
(@v1.4) pkg> add x264_jll@v2019.5.25 julia> using Plots Now it works indeed. I will get back if any other issue comes out. |
Update the registry and he issue will go away, without pinning any package. |
Thank you! But how to update the registry? (Sorry I am a freshman) |
In the package manager mode in the REPL, which you can enter with the import Pkg
Pkg.update() |
I get the same error again with Julia 1.7-rc2:
|
My problem were come from using updated precompiled I just pin the version equal to my system Glib library, Error Message:
|
@hotung1027 this means that probably you're somehow pulling system libraries, that shouldn't happen. Most common cases are that either you have set the using Libdl
dllist() And this has nothing to do with |
I am also running into this issue. What exactly am I looking for in
I do not have the LD_LIBRARY_PATH set
|
I don't see anything wrong your
That's because |
Thanks. My problem is
When I try the suggested fix, I get
Shall I remove this? |
Sounds like a problem with GR.jl? I don't see how this is related to Plots.jl (apart from the fact plots.jl requires GR.jl) and in particular to the issue reported above. |
Original issue which had long been solved (it was a problem in FFMPEG), I don't know why this issue is still open |
Ah, yeah, correct. Googled the error, ended up here... |
So I will close this. |
Details
Today I have updated the Plots package from:
using Pkg
Pkg.update("Plots")
After that, I cannot use Plots, as it comes out:
using Plots
[ Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
ERROR: LoadError: InitError: could not load library "C:\Users\Songhan.julia\artifacts\7350a6401f1c0d38cc3518193083bc4f83adfe99\bin/avcodec-58.dll"
The specified module could not be found.
Stacktrace:
[1] dlopen(::String, ::UInt32; throw_error::Bool) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Libdl\src\Libdl.jl:109
[2] dlopen(::String, ::UInt32) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Libdl\src\Libdl.jl:109
[3] macro expansion at C:\Users\Songhan.julia\packages\JLLWrappers\m1BKg\src\products\library_generators.jl:61 [inlined]
[4] init() at C:\Users\Songhan.julia\packages\FFMPEG_jll\7oXwC\src\wrappers\x86_64-w64-mingw32.jl:41
[5] _include_from_serialized(::String, ::Array{Any,1}) at .\loading.jl:697
[6] _require_search_from_serialized(::Base.PkgId, ::String) at .\loading.jl:781
[7] _require(::Base.PkgId) at .\loading.jl:1006
[8] require(::Base.PkgId) at .\loading.jl:927
[9] require(::Module, ::Symbol) at .\loading.jl:922
[10] include(::Module, ::String) at .\Base.jl:377
[11] top-level scope at none:2
[12] eval at .\boot.jl:331 [inlined]
[13] eval(::Expr) at .\client.jl:449
[14] top-level scope at .\none:3
during initialization of module FFMPEG_jll
in expression starting at C:\Users\Songhan.julia\packages\FFMPEG\aazvf\src\FFMPEG.jl:3
ERROR: LoadError: Failed to precompile FFMPEG [c87230d0-a227-11e9-1b43-d7ebe4e7570a] to C:\Users\Songhan.julia\compiled\v1.4\FFMPEG\TGvga_RbTAC.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1272
[4] require(::Base.PkgId) at .\loading.jl:927
[5] require(::Module, ::Symbol) at .\loading.jl:922
[6] include(::Module, ::String) at .\Base.jl:377
[7] top-level scope at none:2
[8] eval at .\boot.jl:331 [inlined]
[9] eval(::Expr) at .\client.jl:449
[10] top-level scope at .\none:3
in expression starting at C:\Users\Songhan.julia\packages\Plots\D7Ica\src\Plots.jl:15
ERROR: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to C:\Users\Songhan.julia\compiled\v1.4\Plots\ld3vC_3hJe9.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1272
[3] _require(::Base.PkgId) at .\loading.jl:1029
[4] require(::Base.PkgId) at .\loading.jl:927
[5] require(::Module, ::Symbol) at .\loading.jl:922
I have tried to fix it by:
using Pkg
Pkg.rm("Plots")
Pkg.gc()
Pkg.add("Plots")
But the issue remains unsolved. Can anyone please tell me how to fix it? Thank you!
Backends
This bug occurs on ( insert
x
below )Versions
Julia Version 1.4.2
Commit 44fa15b150* (2020-05-23 18:35 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Xeon(R) E-2236 CPU @ 3.40GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
Environment:
JULIA_NUM_THREADS = 6
Plots.jl version:
Pkg.add("Plots")
Updating registry at
C:\Users\Songhan\.julia\registries\General
Updating git-repo
https://github.com/JuliaRegistries/General.git
Resolving package versions...
Updating
C:\Users\Songhan\.julia\environments\v1.4\Project.toml
[91a5bcdd] + Plots v1.6.10
Updating
C:\Users\Songhan\.julia\environments\v1.4\Manifest.toml
[28b8d3ca] + GR v0.52.0
[4d00f742] + GeometryTypes v0.8.3
[23fbe1c1] + Latexify v0.14.0
[ccf2f8ad] + PlotThemes v2.0.0
[91a5bcdd] + Plots v1.6.10
[01d81517] + RecipesPipeline v0.1.13
The text was updated successfully, but these errors were encountered: