JuliaIO / GZip.jl

A Julia interface for gzip functions in zlib
https://juliaio.github.io/GZip.jl/dev
MIT License
39 stars 30 forks source link

zlib1 problem on windows server in Travis CI #83

Closed vlandau closed 4 years ago

vlandau commented 4 years ago

Hi there,

I've been getting GZip errors related to zlib1 in a Julia 1.3 windows server Travis pipeline for a Julia package I'm developing. It's important to note that I do not have this problem in Julia 1.2 in the same Travis environment.

On the first try, I got the following error: (full output with stacktrace here)

ERROR: LoadError: LoadError: error compiling top-level scope: could not load library "zlib1"
The specified module could not be found.

I saw from this post that a potential solution is to download zlib1.dll and place it in the julia/lib folder. I tried that and had no success, so I tried placed the .dll in julia/bin instead. That caused a slightly different error: (full output with stacktrace here)

ERROR: LoadError: LoadError: error compiling top-level scope: could not load library "zlib1"
%1 is not a valid Win32 application.

I've tried quite a few things but have had no luck. I'm not sure what to try next, so any help would be greatly greatly appreciated.

Thanks!

giordano commented 4 years ago

What do you need zlib for? If you have a binary dependency like this you should have a look at at https://github.com/JuliaPackaging/BinaryProvider.jl, I can provide you with the script to install zlib

As far as I can see your package doesn't require this one, so it's not clear to me why you opened this issue here.

vlandau commented 4 years ago

Because this is in the stacktrace. GZip threw the error

in expression starting at C:\Users\travis\.julia\packages\GZip\LD2ly\src\zlib_h.jl:11
in expression starting at C:\Users\travis\.julia\packages\GZip\LD2ly\src\GZip.jl:73
caused by [exception 1]
could not load library "zlib1"
The specified module could not be found.

Circuitscape, a dep of my package, has GZip as a dep, I believe.

vlandau commented 4 years ago

https://github.com/Circuitscape/Circuitscape.jl/blob/master/Project.toml

vlandau commented 4 years ago

I can provide you with the script to install zlib

That would be very much appreciated.

giordano commented 4 years ago

I see, I was looking at https://github.com/Circuitscape/Omniscape.jl/blob/master/Project.toml

That would be very much appreciated.

Now that I see where the error comes from I agree this should be fixed here, not in your package

vlandau commented 4 years ago

Please let me know if there's any more info I can provide!

giordano commented 4 years ago

Ok, so zlib comes with julia itself, but the binary library for Windows has been renamed in Julia 1.3, that's why the error

vlandau commented 4 years ago

Ah ha! So hopefully an easy fix then?

giordano commented 4 years ago

Yes, the fix is relatively easy, I just can't do it now because I'm not at the computer

vlandau commented 4 years ago

Sounds good. I'm in no rush since Julia 1.3 isn't even officially released yet. I really appreciate your help!

vlandau commented 4 years ago

CC: @ranjanan just something to be aware of if you start testing Circuitscape in Julia 1.3 on Windows before this patch gets released.