Closed VXsz closed 2 years ago
I am not familiar with pyinstaller but it seems to me that you have to add the necessary .json and .pkl data files found in
iso639/data/
to your bundle as explained here.
The iso639.exceptions.InvalidLanguageValue
exception is misleading. It is raised because preceding FileNotFoundError
exceptions are caught in the iso639.datafile module when the loading of mappings fails (which in retrospect seems like a bad idea).
I see, after a bit of trying --add-data "C:\Users\<user>\AppData\Local\Programs\Python\Python39\Lib\site-packages\iso639;./iso639"
worked perfectly
Also thank you so much for this library, it saved me a lot of headaches & a huge amount of time
I know this is old, but I put in a PR to pyinstallers hooks contrib here https://github.com/pyinstaller/pyinstaller-hooks-contrib/pull/707
After compiling with pyinstaller I keep getting this error:
Not sure why, perhaps I need to add some data with pyinstaller but I feel like it won't help since that's not the issue I think here My guess would be some args passing issue (probably)
my original python code is simply these lines
then compiled using pyinstaller (installed through pip) with this command:
pyinstaller test.py --onefile