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

Startup fails when an old zlib1.dll is in PATH #2817

Closed
lovetox opened this Issue Mar 26, 2018 · 5 comments

Comments

Projects
None yet
2 participants
@lovetox

lovetox commented Mar 26, 2018

Hi,

I have this problem on Windows 10, but i guess it applys to other Windows versions also
quodlibet 4.0.2

If a old zlib1.dll is in PATH GTK will use whatever is in PATH over what quodlibet ships itself

here is one dll to test with
zlib1.zip

@lazka lazka added bug windows labels Mar 26, 2018

@lazka

This comment has been minimized.

Member

lazka commented Mar 26, 2018

There is a known bug in mingw python where it prefers libraries in the system directories: Alexpux/MINGW-packages#3381

Where did you find the old zlib1.dll?

@lovetox

This comment has been minimized.

lovetox commented Mar 26, 2018

To be honest, im developing on a xmpp client Gajim, we took most of the packaging code for Windows from your work here at quodlibet.

A user reported this problem to us, he has as it seems a very old installation of GnuPG.

I also looked at Inkscape as they also use MSYS and GTK, but they are somehow not affected by this.

i tried setting the path to mingw32/bin on Windows, in MSYS, with python, but it seems this all does not work.

the bug with the openssl dlls was easy to fix as we just had to move the dlls as it was suggested in the issue.

As you seem more knowledgeable about MSYS/GTK in general, i thought i bring this to your attention this way, i hope this is not a problem.

@lazka

This comment has been minimized.

Member

lazka commented Mar 26, 2018

ok, thanks, I'll give it a try with the attached dll.

@declension declension changed the title from If old zlib1.dll is in PATH quodlibet doesnt start to Startup fails when an old zlib1.dll is in PATH Apr 7, 2018

@lovetox

This comment has been minimized.

lovetox commented Oct 24, 2018

I solved the Problem in Gajim with using SetDllDirectoryW

from ctypes import windll
windll.kernel32.SetDllDirectoryW(libs_dir)

like it was suggested in gpodder/gpodder#478

@lazka

This comment has been minimized.

Member

lazka commented Oct 24, 2018

Thanks! good to know.

@lazka lazka added this to the 4.2.0 milestone Oct 24, 2018

@lazka lazka closed this in 54ffe4a Oct 25, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment