0

I am currently working on a Python project that reads in shape files using geopandas. Data is then written to a .csv file in another directory. When I run the python code directly I have no issues. Everything works as intended.

However, I need to be able to package this program as an .exe to distribute to customers. I am using PyInstaller to create the .exe. In testing the .exe file I am getting an error at some point around when the .shp files are being read in and when the data is being written to .csv. The error text is "fiona.errors.driver_error permission denied". I'm not sure why I wouldn't have a permission problem with the .py file, but then have a problem with the .exe file.

Traceback

File "UAS_EC.py", line 180, in <module>
File "geopandas/io/file.py", line 259, in _read_file
File "geopandas/io/file.py", line 303 in _read_file_fiona
File "fiona/env.py", line 408, in wrapper
File "fiona/__init__.py, line 278, in open
File "fiona/collection.py", line 162, in __init__
File "fiona/ogrext.pyx", line 540, in fiona.ogrext.Session.start
File "fiona/shim.pyx", line 90, in fiona.__shim.gdal_open_vector
fiona.errors.DriverError: 

I thought maybe it had to do with relative file paths, but I tried hard-coding the file paths just to ensure that wasn't the issue and I still got the same error.

Any advice or theories are appreciated.

zmangum17
  • 1
  • 2

0 Answers0