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

could not load library "ImageMagic" only on a notebook? #39

Closed
davidbp opened this issue Apr 25, 2019 · 2 comments
Closed

could not load library "ImageMagic" only on a notebook? #39

davidbp opened this issue Apr 25, 2019 · 2 comments

Comments

@davidbp
Copy link

davidbp commented Apr 25, 2019

Hello,

In a terminal testimage("cameraman") works fine but when I use it in a jupyter notebook I get the following message:

Error encountered while loading "/home/david/.julia/packages/TestImages/l3RXA/images/cameraman.tif".
Fatal error:
error compiling #load_#26: could not load library "/home/david/.julia/packages/ImageMagick/d5KBL/deps/usr/lib/libMagickWand-6.Q16.so"
/lib/x86_64-linux-gnu/libz.so.1: version `ZLIB_1.2.9' not found (required by /home/david/.julia/packages/ImageMagick/d5KBL/deps/usr/lib/libpng16.so.16)

Stacktrace:
 [1] handle_error(::ErrorException, ::FileIO.File{FileIO.DataFormat{:TIFF}}) at /home/david/.julia/packages/FileIO/e8FNK/src/error_handling.jl:80
 [2] handle_exceptions(::Array{Any,1}, ::String) at /home/david/.julia/packages/FileIO/e8FNK/src/error_handling.jl:75
 [3] #load#27(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::FileIO.File{FileIO.DataFormat{:TIFF}}) at /home/david/.julia/packages/FileIO/e8FNK/src/loadsave.jl:193
 [4] load(::FileIO.File{FileIO.DataFormat{:TIFF}}) at /home/david/.julia/packages/FileIO/e8FNK/src/loadsave.jl:172
 [5] #load#13(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::String) at /home/david/.julia/packages/FileIO/e8FNK/src/loadsave.jl:118
 [6] load at /home/david/.julia/packages/FileIO/e8FNK/src/loadsave.jl:118 [inlined]
 [7] testimage(::String) at /home/david/.julia/packages/TestImages/l3RXA/src/TestImages.jl:88
 [8] top-level scope at In[4]:1

It's weird since I am using (I think I am using) the same julia version.

@timholy
Copy link
Member

timholy commented Apr 25, 2019

Possibly dependent on the order in which you load libz-dependent packages. See JuliaGraphics/Gtk.jl#387 and JuliaIO/ImageMagick.jl#142 (comment)

@timholy
Copy link
Member

timholy commented Dec 12, 2019

This has been fixed if you use Julia 1.3 or higher.

@timholy timholy closed this as completed Dec 12, 2019
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

2 participants