You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When freezing my python3.8 program into an msi using cx_freeze, the msi works on the computer it was built on but not on other hosts.
The error message is: OSError: Could not find lib geos_c.dll or load any of its variants [].
The thing is, the dlls are already packaged correctly. I can find them in the installation directory of my program (C:\Program Files (x86)\my_program\lib\shapely\DLLs). They seem to be correctly bundled.
The problem is that shapely can't load them correctly. I printed the path at geos.py:166 and both egg_dlls and wininst_dlls look correct.
What is happening ?
The error message was misleading: the geos_c.dll was indeed found, but it’s dependencies we’re not. I had to install Microsoft’s VC Redistributables to get it to work.
Thanks!
Expected behavior and actual behavior.
When freezing my python3.8 program into an msi using cx_freeze, the msi works on the computer it was built on but not on other hosts.
The error message is:
OSError: Could not find lib geos_c.dll or load any of its variants [].
Steps to reproduce the problem.
Pipfile:
setup.py:
test.py:
Operating system
Windows 10
Shapely version and provenance
1.7.1 installed from PyPI using pipenv
The text was updated successfully, but these errors were encountered: