Plots.jl: Plots fails in precompiling

Created on 28 Jul 2019  Β·  12Comments  Β·  Source: JuliaPlots/Plots.jl

Hello
I updated the package and I get this error in precompiling stage

julia> using Plots
[ Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
ERROR: LoadError: UndefVarError: ffmpeg not defined
Stacktrace:
 [1] top-level scope at none:0
 [2] include at ./boot.jl:326 [inlined]
 [3] include_relative(::Module, ::String) at ./loading.jl:1038
 [4] include(::Module, ::String) at ./sysimg.jl:29
 [5] top-level scope at none:2
 [6] eval at ./boot.jl:328 [inlined]
 [7] eval(::Expr) at ./client.jl:404
 [8] top-level scope at ./none:3
in expression starting at /home/ghavami/.julia/packages/FFMPEG/7auNk/src/FFMPEG.jl:58
ERROR: LoadError: Failed to precompile FFMPEG [c87230d0-a227-11e9-1b43-d7ebe4e7570a] to /home/ghavami/.julia/compiled/v1.1/FFMPEG/TGvga.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1197
 [3] _require(::Base.PkgId) at ./loading.jl:960
 [4] require(::Base.PkgId) at ./loading.jl:858
 [5] require(::Module, ::Symbol) at ./loading.jl:853
 [6] include at ./boot.jl:326 [inlined]
 [7] include_relative(::Module, ::String) at ./loading.jl:1038
 [8] include(::Module, ::String) at ./sysimg.jl:29
 [9] top-level scope at none:2
 [10] eval at ./boot.jl:328 [inlined]
 [11] eval(::Expr) at ./client.jl:404
 [12] top-level scope at ./none:3
in expression starting at /home/ghavami/.julia/packages/Plots/jWNMG/src/Plots.jl:11
ERROR: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to /home/ghavami/.julia/compiled/v1.1/Plots/ld3vC.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1197
 [3] _require(::Base.PkgId) at ./loading.jl:960
 [4] require(::Base.PkgId) at ./loading.jl:858
 [5] require(::Module, ::Symbol) at ./loading.jl:853

Most helpful comment

Try to run Pkg.gc() instead of GC.gc() in the second step. Maybe that helps.

All 12 comments

It is solved. I just removed the package, executed the garbage collector gc and reinstalled the package again and everything seems to work fine.
I think the update command done sth unexpected.

It is solved. I just removed the package, executed the garbage collector gc and reinstalled the package again and everything seems to work fine.
I think the update command done sth unexpected.

Hi,

I tried to follow your instructions to solve the problem, but on my machine it doesnΒ΄t solve the problem (Windows 10, Julia 1.1.1). IΒ΄m quite a newbie in Julia. So maybe I did something wrong. I removed the package via Pkg.rm("Plots") and run the garbage collecter with GC.gc() and then reinstalled the package with Pkg.add("Plots"). Have I done something wrong?

Try to run Pkg.gc() instead of GC.gc() in the second step. Maybe that helps.

Try to run Pkg.gc() instead of GC.gc() in the second step. Maybe that helps.

Thanks. That helped :)

I'm getting the same error:

julia> using Plots
[ Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
ERROR: LoadError: UndefVarError: ffmpeg not defined

under Ubuntu 18.04. I've tried uninstalling and reinstalling with the gc advice given above with no luck.

Julia is very new to me (loving it!) and I'd appreciate any help!

What is the output of ]build FFMPEG?

I write the steps more clear:
in Julia repel:

julia> using Pkg
julia> Pkg.rm("Plots")
julia> Pkg.gc()
julia> Pkg.add("Plots")

these steps worked for me. Both in windows 10 julia 1.1.0 and linux mint

]build FFMPEG
built just fine and fixed this problem. Thank you very much! I have a lot to learn.

I did all the steps but still having the problem. Do you know another solution? (W10, Julia 1.1.1)

What's the error message you get, @Ernesto3110 ? Also what's the output of ]st -m Plots?

julia> Pkg.rm("Plots")
julia> Pkg.gc()
julia> Pkg.add("Plots")

still has FFMPEG build errors,
however

julia> Pkg.rm("Plots")
julia> GC.gc()
julia> Pkg.add("Plots")

gives no error.
(system: Ubuntu 18.04, Julia 1.1.1)

Hello everyone, I encountered the same problem when installing Plots package. It first says build FFMPEG, but then I run "build FFMPEG", I got the following errors:

Building FFMPEG β†’ C:\Users\Edward\.julia\packages\FFMPEG\9JQpZ\deps\build.log
β”Œ Error: Error building FFMPEG:
β”‚ β”Œ Error: Download failed: curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.
β”‚ β”” @ Base download.jl:43
β”‚ ERROR: LoadError: failed process: Process('C:\Windows\System32\curl.exe' -s -S -g -L -f -o 'C:\Users\Edward\.julia\packages\FFMPEG\9JQpZ\deps\build_Bzip2.v1.0.6.jl' https://github.com/JuliaPackaging/Yggdrasil/releases/download/Bzip2-v1.0.6-2/build_Bzip2.v1.0.6.jl, ProcessExited(35)) [35]
β”‚
β”‚ Stacktrace:
β”‚ [1] pipeline_error at .\process.jl:813 [inlined]
β”‚ [2] download_curl(::String, ::String, ::String) at .\download.jl:44
β”‚ [3] download(::String, ::String) at .\download.jl:52
β”‚ [4] top-level scope at C:\UsersEdward.julia\packagesFFMPEG\9JQpZ\deps\build.jl:46
β”‚ [5] include at .\boot.jl:328 [inlined]
β”‚ [6] include_relative(::Module, ::String) at .\loading.jl:1094
β”‚ [7] include(::Module, ::String) at .\Base.jl:31
β”‚ [8] include(::String) at .\client.jl:431
β”‚ [9] top-level scope at none:5
β”‚ in expression starting at C:\UsersEdward.julia\packagesFFMPEG\9JQpZ\deps\build.jl:44
β”” @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.2\Pkg\src\backwards_compatible_isolation.jl:647

Can anyone help me?
Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cortner picture cortner  Β·  4Comments

tbenst picture tbenst  Β·  3Comments

lstagner picture lstagner  Β·  5Comments

Cody-G picture Cody-G  Β·  3Comments

SebastianM-C picture SebastianM-C  Β·  4Comments