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] Failed to precompile Plots #2886
Comments
Same here: (ergmjl) pkg> precompile
Precompiling project...
[ Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
ERROR: LoadError: InitError: could not load library "/Users/adamhaber/.julia/artifacts/dbb254dca678145c7d79410e96da494cc94f8a13/lib/libavdevice.58.5.100.dylib"
dlopen(/Users/adamhaber/.julia/artifacts/dbb254dca678145c7d79410e96da494cc94f8a13/lib/libavdevice.58.5.100.dylib, 1): Library not loaded: @rpath/libx264.157.dylib
Referenced from: /Users/adamhaber/.julia/artifacts/dbb254dca678145c7d79410e96da494cc94f8a13/lib/libavdevice.58.5.100.dylib
Reason: image not found
Stacktrace:
[1] dlopen(::String, ::UInt32; throw_error::Bool) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.4/Libdl/src/Libdl.jl:109
[2] dlopen at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.4/Libdl/src/Libdl.jl:109 [inlined] (repeats 2 times)
[3] __init__() at /Users/adamhaber/.julia/packages/FFMPEG_jll/tCUYA/src/wrappers/x86_64-apple-darwin14.jl:231
[4] _include_from_serialized(::String, ::Array{Any,1}) at ./loading.jl:697
[5] _require_search_from_serialized(::Base.PkgId, ::String) at ./loading.jl:781
[6] _require(::Base.PkgId) at ./loading.jl:1006
[7] require(::Base.PkgId) at ./loading.jl:927
[8] require(::Module, ::Symbol) at ./loading.jl:922
[9] include(::Module, ::String) at ./Base.jl:377
[10] top-level scope at none:2
[11] eval at ./boot.jl:331 [inlined]
[12] eval(::Expr) at ./client.jl:449
[13] top-level scope at ./none:3
during initialization of module FFMPEG_jll
in expression starting at /Users/adamhaber/.julia/packages/FFMPEG/vocw2/src/FFMPEG.jl:3
ERROR: LoadError: Failed to precompile FFMPEG [c87230d0-a227-11e9-1b43-d7ebe4e7570a] to /Users/adamhaber/.julia/compiled/v1.4/FFMPEG/TGvga_EvpPl.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
[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 /Users/adamhaber/.julia/packages/Plots/LWw1t/src/Plots.jl:15 |
the same thing: tried to re-built ] add FFMPEG # works
using FFMPEG # throws the error "The specified module could not be found"
# ERROR: LoadError: InitError: could not load library
# .....\artifacts\52d195e9e73e7321d06ad9980656174ac0464ed4\bin\avdevice-58.dll"
# The specified module could not be found. |
I also tried this, based on the comments from other threads, but it also did not work and I get basically the same error |
cref JuliaIO/FFMPEG.jl#33 |
I tried the solution referenced here https://github.com/JuliaIO/FFMPEG.jl/issues/33#issuecomment-668002001, which is to do I now get the error: ┌ Error: evaluation error starting at C:\Users\Administrator.julia\packages\PlotThemes\4DCOG\src\juno_smart.jl:9 |
Same thing on MacOS with Plots v 1.5.7 and Julia 1.5 (same on Julia 1.4.2). Easy to downgrade Plots: Plots v1.5.6 works on both Julia 1.4.2 and Julia 1.5. From below I confirm that mmikhasenko recommendation works, too. Probably should fix this for everyone's convenience, but two quick work arounds let us get our work done with Plots. |
The x264_jll issue should be fixed in JuliaRegistries/General#18881. No need to pin, just |
(@v1.5) pkg> up
[1270edf5] ↓ x264_jll v2020.7.14+0 ⇒ v2019.5.25+2
(@v1.5) pkg> build FFMPEG
julia> using FFMPEG
[ Info: Precompiling FFMPEG [c87230d0-a227-11e9-1b43-d7ebe4e7570a]
# success
julia> using Plots
[ Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
# success 👍 |
This worked for me on Ubuntu on WSL2 with Julia v1.5 |
Did clean install of Julia 1.5 (including deleting .julia). |
Hi everyone! ] add Plots Output: then I tried Output: ERROR: The following 1 direct dependency failed to precompile: Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to /home/rakesh/.julia/compiled/v1.7/Plots/jl_aBNei3. After reviewing some comments on this platform, I tried: Please help me to get out of this issue. |
How did you install julia? What Plots version and what version of GR is that? |
@raamsa just as a hint since you say you are a beginner - it's better to open a new issue, rather than commenting on a closed issue. Closed issues are history. Another hint, - use triple "backticks" like this: Finally, to install GR on ubuntu you might be missing some dependencies that GR does not download automatically. Could you try running
That's not immediately apparent from the Plots website apparently - it's hidden away in the GR docs https://gr-framework.org/julia.html#installation |
Details
Hello. I have just installed julia 1.5 and when I run
using Plots
, I get the following message saying that precompilation has failed:Backends
This bug occurs on ( insert
x
below )Versions
Plots.jl version: 1.5.7
Backend version: GR v0.51.0
Output of :
Julia Version 1.5.0
Commit 96786e22cc (2020-08-01 23:44 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-9.0.1 (ORCJIT, skylake)
Environment:
JULIA_EDITOR = "C:\Users\Administrator\AppData\Local\atom\app-1.49.0\atom.exe" -a
JULIA_NUM_THREADS = 12
The text was updated successfully, but these errors were encountered: