Pyinstaller,fiona,geopandas

230 views
Skip to first unread message

Tim Nazarov

unread,
Aug 8, 2020, 5:45:44 AM8/8/20
to PyInstaller
Maybe it is an offtop but I am a bit puzzled.. Just generated exe file for my GUI python program for working with some geospatial data and use folium,geopandas,shapely etc. However, while running an error occured:
Traceback (most recent call last): File "main.py", line 9, in <module> 
File "<frozen importlib._bootstrap>", line 991, in _find_and_load 
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked 
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked 
File "c:\users\timna\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", 
line 623, in exec_module exec(bytecode, module.__dict__) 
File "site-packages\geopandas\__init__.py", line 7, in <module> 
File "<frozen importlib._bootstrap>", line 991, in _find_and_load 
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked 
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked 
File "c:\users\timna\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 623, in exec_module exec(bytecode, module.__dict__) 
File "site-packages\geopandas\io\file.py", line 7, in <module> 
File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked 
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked 
File "c:\users\timna\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 623, in exec_module exec(bytecode, module.__dict__) 
File "site-packages\fiona\__init__.py", line 88, in <module> 
File "contextlib.py", line 113, in __enter__ 
File "site-packages\fiona\_loading.py", line 54, in add_gdal_dll_directories 
File "os.py", line 1109, in add_dll_directory 
OSError: [WinError 87] The parameter is incorrect: '' [15176] Failed to execute script main

The line 9 in main.py is "import geopandas as gpd" Geopandas imports fiona and error occurs, as I understand this error message.

What is the reason?Are there any possible ways to resolve this problem?

If something, I can send you my .py file and you can try by yourself because it is really important for me to make .exe file!

Thanks for response and help!

Felix Enyimah Toffah

unread,
Dec 29, 2021, 2:56:12 PM12/29/21
to PyInstaller
Hello,
I want to ask if you were able to resolve the issue. I also encountered same and have not gotten any solution yet. If you found out, can you please share your solution? 
Season's greetings
Reply all
Reply to author
Forward
0 new messages