-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
IOError: Could not find english language file after converting script to exe using py2exe #19
Comments
It is working fine when executed using .py |
With latest code I inserted a print statement and got following. File is already present at location mentioned. C:\GooeyTest\dist\library.zip\gooey\languages/english.json |
Hey Devendra, (I'm responding to your email here as well so everything is tidy and in the same spot for easy reference :) I've never used To test this, I'd suggest patching the For example,
This would make Gooey look in the same directory in which is is executing. If that does work, then the next error you'll get will be one for missing images. For which you would need to repeat the same process. Like I said, just a first guess. I'll look into it more this weekend. |
It worked well with the above fix. BUT Now I am getting some other issue. Traceback (most recent call last): This happens for both py2exe and pythonInstaller |
For future reference, I was able to get to the same point as @devendramistri above without modifying Gooey, just by telling the PyInstaller-generated spec file where to find the language and image files for inclusion in the distribution output:
|
Not that I'm sure what the right answer is, but it appears the root cause is that the filename that gets passed into gooey.source_parser::parse_source_file() is the windows .exe that was generated by py2exe or PyInstaller. |
Closing this. Super old and no longer sure if even relevant. Plus, PyInstaller and cxFreeze have since emerged as the preferred ways of packaging Gooey. |
Hi,
I have made a small script that is using Gooey and when I converted it to a exe using py2exe or pythonInstaller I am getting following problem.
Traceback (most recent call last):
File "command_ui.py", line 1, in
File "gooey__init__.pyc", line 1, in
File "gooey\gooey_decorator.pyc", line 16, in
File "gooey\gui\base_window.pyc", line 16, in
File "gooey\gui\header.pyc", line 10, in
File "gooey\i18n.pyc", line 37, in
File "gooey\i18n.pyc", line 24, in get_path
IOError: Could not find english language file
The text was updated successfully, but these errors were encountered: