-
Notifications
You must be signed in to change notification settings - Fork 89
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
[3.x] Runtime errors with Python 2.7.18 #264
Comments
Note that running "python FoFiX.py" in the src directory seems to work just fine. |
Using the latest master with the versions in requirements.txt, compiling with py2exe gives me an issue with distutils (another built-in):
Here, running "python FoFiX.py" gives me the pygame announce but then stops before a log is created. |
Hi! Thanks for your report. Is it possible to create a new issue for the 4.x version (the one in master), please? |
About |
1.16.6 |
Describe the bug
Using FoFiX 3.122 or 3.123 and Python 2.7.18 (x86) in Windows 11, once dependencies have been resolved and FoFiX is successfully building [with py2exe], I get a runtime error in FoFiX.exe.log: "ImportError: No module named difflib." It looks like difflib should be built-in, but I tried pip installing cdifflib, ndifflib, pydiff with the same result. Just for fun I also tried installing diff, which installs a few prerequisites, including attrs, which until it is removed gives me "invalid syntax" in _next_gen.py on the next compile; once that's removed I get the same as above.
Error message
As a test, I commented out line 73 of setup_exe.py, "difflib", from options={"py2exe":...{"excludes":[]...}
This actually starts the game briefly, but then I get a runtime error in fofix.log:
"data\fofix_icon.png" does exist, and is a valid png file. I tried replacing it with different png files: no change. I tried commenting out lines 497-8 from GameEngine.py and 186 from Credits.py, but falling into "icon = None" results in a runtime "AttributeError: 'NoneType' object has no attribute 'read'"
To Reproduce
[EDIT: I found the requirements.txt in the root of the repo that somehow didn't get packaged with the release .zip. Same difflib error, and after commenting out difflib, same image error [other than the callout for the older version of pygame.]
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: