-
Notifications
You must be signed in to change notification settings - Fork 37
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
Cannot be build on Julia v1.0 #133
Comments
I really hope you're on an old version, since i just tagged a fix for this ;) |
You were right, I was still on v0.7.0, which I had downloaded this morning.
|
Having the same issues, libpng.v1.6.31.x86_64-w64-mingw32.tar.gz can't be unpacked, giving the same kind of I'm running Windows 10 with Julia 7.0. This unfortunately seems to make the whole Images package unusable as I can't |
The work around is to run Julia from an elevated command prompt then build ImageMagick. It's not ideal but it works for now. |
The work around works, but only as long as the packages are not installed into Julia's default location (user folder). If the packages reside in the user folder, the admin account has no access to them and cannot build them. |
Getting something like this on Travis too, see https://travis-ci.org/JuliaImages/ImageView.jl/builds/423974711?utm_source=github_status&utm_medium=notification |
I'm running into this too where ImageMagick fails to install Travis CI during testing for InitError: error compiling __init__: could not load library "/home/travis/.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/travis/.julia/packages/ImageMagick/d5KBL/deps/usr/lib/libpng16.so.16)
Stacktrace:
[1] _include_from_serialized(::String, ::Array{Any,1}) at ./loading.jl:627
[2] _require_from_serialized(::String) at ./loading.jl:678
[3] macro expansion at ./logging.jl:317 [inlined]
[4] _require(::Base.PkgId) at ./loading.jl:941
[5] require(::Base.PkgId) at ./loading.jl:852
[6] require(::Module, ::Symbol) at ./logging.jl:311
[7] eval at ./boot.jl:319 [inlined]
[8] topimport(::Symbol) at /home/travis/.julia/packages/FileIO/kflOT/src/loadsave.jl:13
[9] checked_import(::Symbol) at /home/travis/.julia/packages/FileIO/kflOT/src/loadsave.jl:30
[10] #load#27(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Stream{DataFormat{:TIFF},IOStream}) at /home/travis/.julia/packages/FileIO/kflOT/src/loadsave.jl:180
[11] load at /home/travis/.julia/packages/FileIO/kflOT/src/loadsave.jl:172 [inlined]
[12] (::getfield(Main, Symbol("##20#22")))(::IOStream) at /home/travis/build/tlnagy/OMETIFF.jl/test/runtests.jl:96
[13] #open#294(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::getfield(Main, Symbol("##20#22")), ::String) at ./iostream.jl:369
[14] open(::Function, ::String) at ./iostream.jl:367
[15] macro expansion at /home/travis/build/tlnagy/OMETIFF.jl/test/runtests.jl:95 [inlined]
[16] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Test/src/Test.jl:1083 [inlined]
[17] top-level scope at /home/travis/build/tlnagy/OMETIFF.jl/test/runtests.jl:84
[18] include at ./boot.jl:317 [inlined]
[19] include_relative(::Module, ::String) at ./loading.jl:1038
[20] include(::Module, ::String) at ./sysimg.jl:29
[21] include(::String) at ./client.jl:388
[22] top-level scope at none:0
[23] eval(::Module, ::Any) at ./boot.jl:319
[24] macro expansion at ./logging.jl:317 [inlined]
[25] exec_options(::Base.JLOptions) at ./client.jl:219
[26] _start() at ./client.jl:421
during initialization of module ImageMagick |
A workaround is to have your testscript say |
Is there a way to do that so that it only does that on Linux (since QuartzImageIO works fine)? Maybe something like: if Sys.islinux()
import ImageMagick
end ? |
On Windows 10 symlinks can be created without admin level by enabling Developer mode: https://blogs.windows.com/buildingapps/2016/12/02/symlinks-windows-10/ Enabling developer mode seems to have fixed things for me. |
Same issue here I am using juno/atom showing the error while building Imagemagick package |
It worked |
I just came across this issue with Julia 1.0.0 and Windows 10. I guess the README needs update for Windows 10 to say that Developer Mode should be enabled. |
credit to @RalphAS for solution; see JuliaImages/ImageView.jl#156 and JuliaIO/ImageMagick.jl#133
Upstream issue: JuliaIO/LibpngBuilder#2 |
@SimonDanisch What exactly is the problem, and what needs to be fixed? This is a major pain point on Windows. |
JuliaIO/ImageMagickBuilder#6 needs to get into shape.... |
what's the latest with the libz problem? the hack to |
actually, the precompilation issue is only for julia 0.7. perhaps it's time for me to start using 1.0 in production |
So, is there any solution yet for users without admin rights on Windows 7? |
I just wan't to comment to remind people of this very vexing issue. I wish I had the skills to help. |
If I am right, one possibility is that the maintainers of this package provide tar files without symlinks. Another is that you manually extract the files from the archive and replace the symlinks by renamed copies of the original files. But this is tedious to do with any update of the package... As a workaround I have written a windows batch script which extracts the contents of the tar-file, tracks errors and copies the original files instead of the symlinks. This script is then called instead of This could also be realised by a Julia script, but my Julia knowledge with respect to error handling is not good enough yet. :-( So, here's my dirty hack
the code of the script
you can also manually call the script and track what happens :-) |
I have submitted a PR for a Julian workaround. |
Should work on Julia 1.3+ |
Not directly related to Julia, just want to comment on what I was told about 7-zip & symbolic links on Windows platform: 7-zip uses the |
Hello.
I tried to install
ImageMagick.jl
under Julia v1.0 on Windows 8.1 64 bit. It fails during building, because one of the files (Zlib.v1.2.11.x86_64-w64-mingw32.tar.gz
) cannot be unpacked.I tried to manually unpack the file into the assigned folder, but it still throws the same error.
The text was updated successfully, but these errors were encountered: