-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
freeze.py fails to work. #76398
Comments
It seems on my system installed python 3.6.0 when invoking python 3.6.3's freeze.py it seems to fail with this traceback: python ..\externals\cpython\Tools\freeze\freeze.py pyeimport.py
Traceback (most recent call last):
File "..\externals\cpython\Tools\freeze\freeze.py", line 491, in <module>
main()
File "..\externals\cpython\Tools\freeze\freeze.py", line 220, in main
flagged_version = version + sys.abiflags
AttributeError: module 'sys' has no attribute 'abiflags' |
Does the 3.6.0 freeze fail under 3.6.0, or the 3.6.3 freeze fail under 3.6.3? If not, there's no bug to report. |
It seems to also give the same traceback when using the build from the latest commit on branch 3.6 as well as 3.6.0 when using the freeze.py from the clone as well (The way I tested it was manually patching the binaries in my my 3.6 install). |
Seems that freeze.py was not updated since 3.6.0b2 and also fails like this in master as well. (specifically commit 10108a7) was last edit to the file in both the 3.6 and the master branch. Could it be that |
I have found an temporary fix for now after reading that abiflags is posix only. |
python ..\externals\cpython\Tools\freeze\freeze.py pyeimport.py Seems like freeze works now with no traceback. However on Windows I need to figure out how to make it actually work without 🤔 how can it know on Windows what the config to python could be? |
After thinking about this, maybe a better aproach is to somehow make freeze when used on windows somehow read pyconfig.h |
Thank you @Decorater for the report and PR. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: