keplergl / keplergl/kepler.gl

[Bug] Unable to use method to save the kepler map to html with a python script compiled as an .exe with pyinstaller

Open
#1,737 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
12k
Forks
2k
Avg merge
1d 5h
Merged PRs (30d)
66

Description

**Describe the bug**

I have this python script that I turned into a standalone executable with PyInstaller. The end-goal of the script is feeding some data to a Kepler.gl map and saving the map as a HTML file. Before I created the standalone .exe file the script worked just fine, but in my first attempts using the .exe the program was unable to save any map to a file. It would return the following error message:

![error](https://user-images.githubusercontent.com/59821050/157495740-4f330526-dfbc-4020-a6ac-bf4e8f646556.jpeg)

There was no such thing as a keplergl directory inside the 'dist' directory created by PyInstaller so I created it manually together with the 'keplergl.html'.

After doing that, the .exe manages to save the HTML generated by Kepler in any desired location, but it's an empty file. Is Kepler.gl just incompatible with PyInstaller or am I missing something?

I'm running keplergl version 0.3.2 and PyInstaller 4.9.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with keplergl 0.3.2 and PyInstaller 4.9, comparing the script with the generated executable. Inspect how the bundled keplergl resources are included and used when saving the map. Done means the executable writes a non-empty HTML map without manually creating files in the dist directory.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system, data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.