Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data packs are not detected by PyInstaller #112

Open
thelabcat opened this issue Apr 25, 2024 · 1 comment
Open

Data packs are not detected by PyInstaller #112

thelabcat opened this issue Apr 25, 2024 · 1 comment

Comments

@thelabcat
Copy link

thelabcat commented Apr 25, 2024

I'm working on an app that uses this library, but best I can tell, when I pack my app into an executable using PyInstaller, it doesn't realize that the data packs are necessary. As it so happens, I only need the English data pack, but I'm not sure where to put it in terms of the exe's temp extraction path. Any suggestions? I'll try just (drop point)/data/large_en.msgpack.gz and see if it works.
Some implementation of #61 where, instead of appending data packs, the library lets one choose where to load all of them from might work to help with this, but IDK for sure.

@thelabcat
Copy link
Author

Thankfully, (drop point)/wordfreq/data/large_en.msgpack.gz worked. It feels janky, but it isn't too bad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant