Skip to content
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

Plots not precompiling on julia 1.3 windows #2419

Closed
rafaqz opened this issue Feb 26, 2020 · 13 comments
Closed

Plots not precompiling on julia 1.3 windows #2419

rafaqz opened this issue Feb 26, 2020 · 13 comments

Comments

@rafaqz
Copy link
Contributor

rafaqz commented Feb 26, 2020

ERROR: LoadError: InitError: could not load library "C:\Users\travis\.julia\artifacts\3b1ac54d2f4991bf4680cea08d7a20eefec9c25f\bin\avdevice-58.dll"

The specified module could not be found.
Stacktrace:
 [1] #dlopen#3(::Bool, ::typeof(Libdl.dlopen), ::String, ::UInt32) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Libdl\src\Libdl.jl:109
 [2] dlopen at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Libdl\src\Libdl.jl:109 [inlined] (repeats 2 times)
 [3] __init__() at C:\Users\travis\.julia\packages\FFMPEG_jll\1XNMx\src\wrappers\x86_64-w64-mingw32.jl:252
 [4] _include_from_serialized(::String, ::Array{Any,1}) at .\loading.jl:692
 [5] _require_from_serialized(::String) at .\loading.jl:743
 [6] _require(::Base.PkgId) at .\loading.jl:1034
 [7] require(::Base.PkgId) at .\loading.jl:922
 [8] require(::Module, ::Symbol) at .\loading.jl:917
 [9] include at .\boot.jl:328 [inlined]
 [10] include_relative(::Module, ::String) at .\loading.jl:1105
 [11] include(::Module, ::String) at .\Base.jl:31
 [12] top-level scope at none:2
 [13] eval at .\boot.jl:330 [inlined]
 [14] eval(::Expr) at .\client.jl:425
 [15] top-level scope at .\none:3
during initialization of module FFMPEG_jll
in expression starting at C:\Users\travis\.julia\packages\FFMPEG\vocw2\src\FFMPEG.jl:3
ERROR: LoadError: Failed to precompile FFMPEG [c87230d0-a227-11e9-1b43-d7ebe4e7570a] to C:\Users\travis\.julia\compiled\v1.3\FFMPEG\TGvga_jdOP5.ji.
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1283
 [3] _require(::Base.PkgId) at .\loading.jl:1024
 [4] require(::Base.PkgId) at .\loading.jl:922
 [5] require(::Module, ::Symbol) at .\loading.jl:917
 [6] include at .\boot.jl:328 [inlined]
 [7] include_relative(::Module, ::String) at .\loading.jl:1105
 [8] include(::Module, ::String) at .\Base.jl:31
 [9] top-level scope at none:2
 [10] eval at .\boot.jl:330 [inlined]
 [11] eval(::Expr) at .\client.jl:425
 [12] top-level scope at .\none:3
in expression starting at C:\Users\travis\.julia\packages\Plots\CFRKM\src\Plots.jl:11

ERROR: LoadError: LoadError: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to C:\Users\travis\.julia\compiled\v1.3\Plots\ld3vC_jdOP5.ji.
@masenka31
Copy link

Hi, I'm also having problems with Plots.jl I'm not aware of any change, yet it failed to precompile today. I tried to build GR, remove and add Plots and now it throws different error. It's also a bit strange when adding the Plots package - I have reinstalled Plots for a few time and I have never seen some of these sub-packages loaded and added...

(v1.3) pkg> add Plots
 Resolving package versions...
  Updating `C:\Users\masen\.julia\environments\v1.3\Project.toml`
  [91a5bcdd] + Plots v0.29.2
  Updating `C:\Users\masen\.julia\environments\v1.3\Manifest.toml`
  [6e34b625] + Bzip2_jll v1.0.6+1
  [d38c429a] + Contour v0.5.1
  [c87230d0] + FFMPEG v0.3.0
  [b22a6f82] + FFMPEG_jll v4.1.0+2
  [d7e528f0] + FreeType2_jll v2.10.1+1
  [559328eb] + FriBidi_jll v1.0.5+2
  [28b8d3ca] + GR v0.46.0
  [4d00f742] + GeometryTypes v0.7.9
  [c1c5ebd0] + LAME_jll v3.100.0+0
  [dd192d2f] + LibVPX_jll v1.8.1+1
  [442fdcdd] + Measures v0.3.1
  [e7412a2a] + Ogg_jll v1.3.3+0
  [458c3c95] + OpenSSL_jll v1.1.1+1
  [91d4177d] + Opus_jll v1.3.1+0
  [ccf2f8ad] + PlotThemes v1.0.1
  [995b91a9] + PlotUtils v0.6.3
  [91a5bcdd] + Plots v0.29.2
  [992d4aef] + Showoff v0.3.1
  [83775a58] + Zlib_jll v1.2.11+8
  [0ac62f75] + libass_jll v0.14.0+0
  [f638f0a6] + libfdk_aac_jll v0.1.6+1
  [f27f6e37] + libvorbis_jll v1.3.6+2
  [1270edf5] + x264_jll v2019.5.25+1
  [dfaa095f] + x265_jll v3.0.0+0

And the error now is quite long:

julia> using Plots
[ Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
ERROR: LoadError: LoadError: InitError: could not load library "C:\Users\masen\.julia\artifacts\7dc85c0dc0969854a6dae412b5bd8183baa07f9c\bin\libcrypto-1_1-x64.dll"
The specified module could not be found.

Stacktrace:
 [1] #dlopen#3(::Bool, ::typeof(Libdl.dlopen), ::String, ::UInt32) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Libdl\src\Libdl.jl:109
 [2] dlopen at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Libdl\src\Libdl.jl:109 [inlined] (repeats 2 times)
 [3] __init__() at C:\Users\masen\.julia\packages\OpenSSL_jll\H9SCs\src\wrappers\x86_64-w64-mingw32.jl:84
 [4] _include_from_serialized(::String, ::Array{Any,1}) at .\loading.jl:692
 [5] _require_search_from_serialized(::Base.PkgId, ::String) at .\loading.jl:776
 [6] _require(::Base.PkgId) at .\loading.jl:1001
 [7] require(::Base.PkgId) at .\loading.jl:922
 [8] require(::Module, ::Symbol) at .\loading.jl:917
 [9] include at .\boot.jl:328 [inlined]
 [10] include_relative(::Module, ::String) at .\loading.jl:1105
 [11] include at .\Base.jl:31 [inlined]
 [12] include(::String) at C:\Users\masen\.julia\packages\FFMPEG_jll\1XNMx\src\FFMPEG_jll.jl:1
 [13] top-level scope at C:\Users\masen\.julia\packages\FFMPEG_jll\1XNMx\src\FFMPEG_jll.jl:47
 [14] include at .\boot.jl:328 [inlined]
 [15] include_relative(::Module, ::String) at .\loading.jl:1105
 [16] include(::Module, ::String) at .\Base.jl:31
 [17] top-level scope at none:2
 [18] eval at .\boot.jl:330 [inlined]
 [19] eval(::Expr) at .\client.jl:425
 [20] top-level scope at .\none:3
during initialization of module OpenSSL_jll
in expression starting at C:\Users\masen\.julia\packages\FFMPEG_jll\1XNMx\src\wrappers\x86_64-w64-mingw32.jl:16
in expression starting at C:\Users\masen\.julia\packages\FFMPEG_jll\1XNMx\src\FFMPEG_jll.jl:43
ERROR: LoadError: Failed to precompile FFMPEG_jll [b22a6f82-2f65-5046-a5b2-351ab43fb4e5] to C:\Users\masen\.julia\compiled\v1.3\FFMPEG_jll\uSD0T_xM74P.ji.
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1283
 [3] _require(::Base.PkgId) at .\loading.jl:1024
 [4] require(::Base.PkgId) at .\loading.jl:922
 [5] require(::Module, ::Symbol) at .\loading.jl:917
 [6] include at .\boot.jl:328 [inlined]
 [7] include_relative(::Module, ::String) at .\loading.jl:1105
 [8] include(::Module, ::String) at .\Base.jl:31
 [9] top-level scope at none:2
 [10] eval at .\boot.jl:330 [inlined]
 [11] eval(::Expr) at .\client.jl:425
 [12] top-level scope at .\none:3
in expression starting at C:\Users\masen\.julia\packages\FFMPEG\vocw2\src\FFMPEG.jl:3
ERROR: LoadError: Failed to precompile FFMPEG [c87230d0-a227-11e9-1b43-d7ebe4e7570a] to C:\Users\masen\.julia\compiled\v1.3\FFMPEG\TGvga_xM74P.ji.
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1283
 [3] _require(::Base.PkgId) at .\loading.jl:1024
 [4] require(::Base.PkgId) at .\loading.jl:922
 [5] require(::Module, ::Symbol) at .\loading.jl:917
 [6] include at .\boot.jl:328 [inlined]
 [7] include_relative(::Module, ::String) at .\loading.jl:1105
 [8] include(::Module, ::String) at .\Base.jl:31
 [9] top-level scope at none:2
 [10] eval at .\boot.jl:330 [inlined]
 [11] eval(::Expr) at .\client.jl:425
 [12] top-level scope at .\none:3
in expression starting at C:\Users\masen\.julia\packages\Plots\CFRKM\src\Plots.jl:11
ERROR: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to C:\Users\masen\.julia\compiled\v1.3\Plots\ld3vC_xM74P.ji.
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1283
 [3] _require(::Base.PkgId) at .\loading.jl:1024
 [4] require(::Base.PkgId) at .\loading.jl:922
 [5] require(::Module, ::Symbol) at .\loading.jl:917

@mkborregaard
Copy link
Member

Both, could you try rm FFMPEG, then add it again explicitly, then build it? Doesn't look like this is a Plots issue.

@rafaqz
Copy link
Contributor Author

rafaqz commented Feb 26, 2020

This is on travis. Its definately a FFMPEG issue, but it stops plots building on windows, and Im just trying to test plot recipes. Basically just FYI.

@mkborregaard
Copy link
Member

Thanks. Not easy to fix though :-)

@masenka31
Copy link

Does anybody else have another idea? This fix, unfortunately, doesn't work for me...

@daschw
Copy link
Member

daschw commented Feb 27, 2020

@asinghvi17 There seems to be a problem with the new FFMPEG release. Do you have any ideas?

@briochemc
Copy link
Collaborator

Same here 😞

See, e.g., AIBECS.jl failure and UnitfulRecipes.jl failure.

@roguetrainer
Copy link

Is there a work around? Is it best to install an earlier version of Julia? Would that fix the problem? Thanks for any advice.

@gustaphe
Copy link
Collaborator

gustaphe commented Jul 27, 2020

edit: nevermind, upgrading julia to a recent version solved it.

I'm having the same problem on Windows 10. From entirely clean Project.toml:

(v1.3) pkg> add FFMPEG
[... (success)]
(v1.3) pkg> build FFMPEG
(v1.3) pkg> add Plots
[... (success)]
julia> using FFMPEG
julia> using Plots
[... (starts precompiling)]
00000000134BB9E8:    `- Object (8bit) 00000002F898510 :: 000000000050E24D1 -- [1, 7) 
        of type Core.TypeMapEntry
[... (don't know how many of these, but more than I can scroll back in my terminal. They are all very similar, counting up by 20's and sometimes changing the other numbers)]
signal (22): SIGABRT
[stack trace]
ERROR: Failed to precompile Plots [...] to [...]
[...]

@ChrHorn
Copy link

ChrHorn commented Oct 10, 2020

I have the same issue with with Julia 1.5.2
FFMPEG fails to precompile.

julia> using Plots
[ Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
ERROR: LoadError: InitError: could not load library "C:\Users\Chris\.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.5\Libdl\src\Libdl.jl:109
 [2] dlopen(::String, ::UInt32) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Libdl\src\Libdl.jl:109
 [3] macro expansion at C:\Users\Chris\.julia\packages\JLLWrappers\m1BKg\src\products\library_generators.jl:61 [inlined]
 [4] __init__() at C:\Users\Chris\.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:782
 [7] _require(::Base.PkgId) at .\loading.jl:1007
 [8] require(::Base.PkgId) at .\loading.jl:928
 [9] require(::Module, ::Symbol) at .\loading.jl:923
 [10] include(::Function, ::Module, ::String) at .\Base.jl:380
 [11] include(::Module, ::String) at .\Base.jl:368
 [12] top-level scope at none:2
 [13] eval at .\boot.jl:331 [inlined]
 [14] eval(::Expr) at .\client.jl:467
 [15] top-level scope at .\none:3
during initialization of module FFMPEG_jll
in expression starting at C:\Users\Chris\.julia\packages\FFMPEG\aazvf\src\FFMPEG.jl:3
ERROR: LoadError: Failed to precompile FFMPEG [c87230d0-a227-11e9-1b43-d7ebe4e7570a] to C:\Users\Chris\.julia\compiled\v1.5\FFMPEG\TGvga_ztj3h.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:331 [inlined]
 [10] eval(::Expr) at .\client.jl:467
 [11] top-level scope at .\none:3
in expression starting at C:\Users\Chris\.julia\packages\Plots\D7Ica\src\Plots.jl:15
ERROR: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to C:\Users\Chris\.julia\compiled\v1.5\Plots\ld3vC_ztj3h.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

@ChrHorn
Copy link

ChrHorn commented Oct 10, 2020

FFMPEG was fixed, the issue has been resolved.

@giordano
Copy link
Contributor

giordano commented Oct 10, 2020

This is on travis. Its definately a FFMPEG issue

No, it's a Travis issue, it lacks some audio/video system libraries on Windows, FFMPEG can't possibly run there, there is nothing we can do: JuliaIO/FFMPEG.jl#14 (comment)

@rafaqz
Copy link
Contributor Author

rafaqz commented Oct 11, 2020

I meant that it's related to the FFMPEG.jl package, as opposed to being directly the responsibility of Plots.jl. But thanks for clarifying

@t-bltg t-bltg closed this as completed Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants