-
Notifications
You must be signed in to change notification settings - Fork 82
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
Problem load() - libwand not defined #229
Comments
I think I just fixed this issue in ImageMagick. ]add ImageMagick#sd-update_deps |
Thank you but I have a new error now: julia> img=testimage("mandrill") I tried to build ImageMagick like said but no change. |
Oh, well, glad you tested that PR :D
|
And would be nice to get the output of:
So I can fix that PR ;) |
That dlopen needs to be done after building |
Here we go: (v1.0) pkg> status (v1.0) pkg> build ImageMagick julia> using Libdl julia> Libdl.dlopen("/home/jean/.julia/packages/ImageMagick/zWFWP/deps/usr/lib/libpng16.so") |
Have you tried to delete the binaries from the package before running |
No. My bad!!! Here we go again: (v1.0) pkg> status (v1.0) pkg> build ImageMagick julia> using Libdl julia> Libdl.dlopen("/home/jean/.julia/packages/ImageMagick/zWFWP/deps/usr/lib/libpng16.so") |
Oh... but the users shouldn't need to delete them right? Hmmm, but do tests on my branch pass for you now after removing them? |
Yes, the tests pass but they also did before. Let me try to load an image again. Test: (v1.0) pkg> test ImageMagick /tmp/Images/jigsaw_tmpl.png 100%[============================================================================>] 654 --.-KB/s in 0s 2019-06-20 14:57:10 (47.0 MB/s) - ‘/tmp/Images/jigsaw_tmpl.png’ saved [654/654] --2019-06-20 14:57:11-- http://www.imagemagick.org/Usage/images/wmark_image.png /tmp/Images/wmark_image.png 100%[============================================================================>] 7.83K --.-KB/s in 0s 2019-06-20 14:57:11 (18.7 MB/s) - ‘/tmp/Images/wmark_image.png’ saved [8020/8020] --2019-06-20 14:57:12-- http://www.imagemagick.org/Usage/images/rose.png /tmp/Images/rose.png 100%[============================================================================>] 6.78K --.-KB/s in 0s 2019-06-20 14:57:13 (338 MB/s) - ‘/tmp/Images/rose.png’ saved [6939/6939] --2019-06-20 14:57:13-- http://www.imagemagick.org/Usage/images/autumn_leaves.png /tmp/Images/autumn_leaves.png 100%[============================================================================>] 55.24K 203KB/s in 0.3s 2019-06-20 14:57:14 (203 KB/s) - ‘/tmp/Images/autumn_leaves.png’ saved [56562/56562] --2019-06-20 14:57:15-- http://www.imagemagick.org/Usage/images/present.gif /tmp/Images/present.gif 100%[============================================================================>] 315 --.-KB/s in 0s 2019-06-20 14:57:15 (76.6 MB/s) - ‘/tmp/Images/present.gif’ saved [315/315] --2019-06-20 14:57:15-- http://www.imagemagick.org/Usage/images/swirl_video.gif /tmp/Images/swirl_video.gif 100%[============================================================================>] 543.57K 795KB/s in 0.7s 2019-06-20 14:57:17 (795 KB/s) - ‘/tmp/Images/swirl_video.gif’ saved [556617/556617] extraProps = ["create-date", "date:create", "date:modify", "modify-date", "png:bKGD", "png:cHRM", "png:gAMA", "png:IHDR.bit-depth-orig", "png:IHDR.bit_depth", "png:IHDR.color-type-orig", "png:IHDR.color_type", "png:IHDR.interlace_method", "png:IHDR.width,height", "png:pHYs", "png:sRGB", "png:text"] /tmp/Images/test-exiforientation.zip 100%[============================================================================>] 4.29K --.-KB/s in 0s 2019-06-20 14:57:18 (66.1 MB/s) - ‘/tmp/Images/test-exiforientation.zip’ saved [4391/4391] Test Summary: | Pass Total |
Now it works!!!! Ho man, I love you! Lost a few hairs past two days. |
I close the topic |
I think the current logic is to install the binaries only if no ones are installed. Probably one should check the version or just force a remove at the beginning. |
I am not sure whether this should really be closed @SimonDanisch
[EDIT] or to make it more concrete for the isolated case
|
or shorter:
for the isolated case and
for the internal case |
i have the same problem on win10,here is the code reproducing the problem: using Images, FileIO
img = load(download("https://upload.wikimedia.org/wikipedia/en/thumb/b/b9/Flag_of_Australia.svg/320px-Flag_of_Australia.svg.png"))
|
This is unlikely to be fixed on Julia 1.0. It may work on Julia 1.3 or higher. But in general, anyone running Julia 1.3 or higher should install ImageIO and use it in preference to ImageMagick for the file types it supports. Marking this as likely to be closed by #290 |
Hi,
I'm running on Debian Stretch. I installed Julia 1.0.4 to process images. However, there is a problem with ImageMagick which I can't solve.
The error occurs when I'm using load().
julia> img = testimage("mandrill")
[ Info: Recompiling stale cache file /home/jean/.julia/compiled/v1.0/ImageMagick/0LbNX.ji for ImageMagick [6218d12a-5da1-5696-b52f-db25d2ecc6d1]
Error encountered while loading "/home/jean/.julia/packages/TestImages/Aoq3X/images/mandrill.tiff".
Fatal error:
ERROR: InitError: UndefVarError: libwand not defined
Stacktrace:
[1] handle_error(::InitError, ::File{DataFormat{:TIFF}}) at /home/jean/.julia/packages/FileIO/JAtC1/src/error_handling.jl:80
[2] handle_exceptions(::Array{Any,1}, ::String) at /home/jean/.julia/packages/FileIO/JAtC1/src/error_handling.jl:75
[3] #load#27(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::File{DataFormat{:TIFF}}) at /home/jean/.julia/packages/FileIO/JAtC1/src/loadsave.jl:193
[4] load(::File{DataFormat{:TIFF}}) at /home/jean/.julia/packages/FileIO/JAtC1/src/loadsave.jl:172
[5] #load#13(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::String) at /home/jean/.julia/packages/FileIO/JAtC1/src/loadsave.jl:118
[6] load at /home/jean/.julia/packages/FileIO/JAtC1/src/loadsave.jl:118 [inlined]
[7] testimage(::String) at /home/jean/.julia/packages/TestImages/Aoq3X/src/TestImages.jl:89
[8] top-level scope at none:0
during initialization of module ImageMagick
The text was updated successfully, but these errors were encountered: