geotiler icon indicating copy to clipboard operation
geotiler copied to clipboard

Bundling geotiler into an EXE using auto-py-to-exe raises FileNotFoundError

Open ElliotElison opened this issue 3 years ago • 1 comments

I have created a project that utilizes geotiler attempted to bundle my project into an exe using auto-py-to-exe. However, when I run my program it crashes due to the following error: File "geotiler\map.py", line 107, in init File "geotiler\provider.py", line 112, in find_provider File "geotiler\provider.py", line 164, in read_provider_data FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\ellio\AppData\Local\Temp\_MEI313962\geotiler\source\osm.json'

Bundling files using auto-py-to-exe requires relative file paths due to it placing all files in a temporary folder upon compilation, but this does not appear to work with geotiler files.

ElliotElison avatar Mar 09 '22 02:03 ElliotElison

What would you have in C:\Users\ellio\AppData\Local\Temp\_MEI313962\geotiler\source directory? It shall contain JSON files for various providers.

wrobell avatar Mar 17 '22 12:03 wrobell

Closing due to inactivity. Please reopen if you can provide more information.

wrobell avatar Dec 29 '22 13:12 wrobell