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

zlib1 problem on windows server in Travis CI #83

Closed
vlandau opened this issue Nov 15, 2019 · 11 comments · Fixed by #84
Closed

zlib1 problem on windows server in Travis CI #83

vlandau opened this issue Nov 15, 2019 · 11 comments · Fixed by #84

Comments

@vlandau
Copy link

vlandau commented Nov 15, 2019

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
Copy link
Member

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
Copy link
Author

vlandau commented Nov 15, 2019

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
Copy link
Author

vlandau commented Nov 15, 2019

@vlandau
Copy link
Author

vlandau commented Nov 15, 2019

I can provide you with the script to install zlib

That would be very much appreciated.

@giordano
Copy link
Member

giordano commented Nov 15, 2019

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
Copy link
Author

vlandau commented Nov 15, 2019

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

@giordano
Copy link
Member

giordano commented Nov 15, 2019

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
Copy link
Author

vlandau commented Nov 15, 2019

Ah ha! So hopefully an easy fix then?

@giordano
Copy link
Member

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

@vlandau
Copy link
Author

vlandau commented Nov 15, 2019

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

@vlandau
Copy link
Author

vlandau commented Nov 17, 2019

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

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

Successfully merging a pull request may close this issue.

2 participants