Shared library version issue

7 views
Skip to first unread message

Donnie Pinkston

unread,
Jul 3, 2020, 3:07:02 PM7/3/20
to PyInstaller
Hello, I am trying to use Pyinstaller to package up a project that uses the GDAL library and also matplotlib.  I am working on MacOSX.  Packaging seems to work fine, but the resulting application cannot start.  I have traced down the issue to an incompatible version of libpng16.16.dylib, and I am unsure how to resolve the issue.  Basically:
  • The version of libpng16.16.dylib on my system (e.g. /opt/local/lib, since I use MacPorts) is 54.0.0.  This is the version that GDAL is expecting (probably since that is what it was built against).
  • The matplotlib Python package includes a different version of libpng16.16.dylib, 38.0.0.  It lives at this path under my virtual environment:  lib/python3.7/site-packages/matplotlib/.dylibs/libpng16.16.dylib
Unfortunately for me, Pyinstaller is picking up the matplotlib version of libpng16.16.dylib, rather than the one available in other locations.

Is there a way for me to tell Pyinstaller which version of the libpng library to use?

Thanks!!!
-Donnie Pinkston
Reply all
Reply to author
Forward
0 new messages