Problem with freezing script that imports rasterio package #2454
-
I am attempting to build an executable version of a python interface for visualizing some geospatial data. One of the things this program needs to do is read the value of a GeoTIFF at coordinates entered by the user. I have been using the
I use the basic cxfreeze command:
When I try to run the resulting executable, I get this error (I replaced my username with {USERNAME}):
I have tried installing all the necessary packages using both pip and conda and have tried isolating things using virtual environments and conda environments. I have tried multiple versions of all the necessary packages and always get the same error. I’ve tried adding the following lines (after installing the associated packages):
before the rasterio import as was suggested here and in other threads. I have spent considerable time with the cx_freeze documentation. I tried digging into the rasterio code to figure things out, but I’m stumped. I’ve got so many different programs that use GDAL successfully on this machine, but this one can’t seem to find it. I am using Windows 10 Please let me know if there is any other information that would be helpful in diagnosing this issue. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I made a PR #2455 to fix this. |
Beta Was this translation helpful? Give feedback.
I made a PR #2455 to fix this.
Please test using pip and conda and give me feedback.
You can test the patch in the latest development build (it should be available within half an hour):
pip install --force --no-cache --pre --extra-index-url https://marcelotduarte.github.io/packages/ cx_Freeze