Issue32217
Created on 2017-12-05 02:15 by Decorater, last changed 2022-04-11 14:58 by admin. This issue is now closed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 4719 | merged | Decorater, 2017-12-05 04:15 | |
| PR 12516 | merged | miss-islington, 2019-03-23 16:30 | |
| Messages (10) | |||
|---|---|---|---|
| msg307615 - (view) | Author: Decorater (Decorater) * | Date: 2017-12-05 02:15 | |
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'
|
|||
| msg307620 - (view) | Author: R. David Murray (r.david.murray) * ![]() |
Date: 2017-12-05 02:39 | |
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. |
|||
| msg307623 - (view) | Author: Decorater (Decorater) * | Date: 2017-12-05 03:02 | |
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). |
|||
| msg307630 - (view) | Author: Decorater (Decorater) * | Date: 2017-12-05 03:47 | |
Seems that freeze.py was not updated since 3.6.0b2 and also fails like this in master as well. (specifically commit 10108a7b9affa61719a1dc1863edb2bdb3402fd1) was last edit to the file in both the 3.6 and the master branch. Could it be that ``sys.abiflags`` was removed from the sys module and so freeze stopped working due to that? |
|||
| msg307639 - (view) | Author: Decorater (Decorater) * | Date: 2017-12-05 04:16 | |
I have found an temporary fix for now after reading that abiflags is posix only. |
|||
| msg307666 - (view) | Author: Decorater (Decorater) * | Date: 2017-12-05 15:36 | |
python ..\externals\cpython\Tools\freeze\freeze.py pyeimport.py Error: needed directory E:\python360\lib\python3.6\config-3.6 not found Use ``..\externals\cpython\Tools\freeze\freeze.py -h'' for help Seems like freeze works now with no traceback. However on Windows I need to figure out how to make it actually work without ``make install`` because lack of ``make install`` on Windows. :thinking: how can it know on Windows what the config to python could be? |
|||
| msg307998 - (view) | Author: Decorater (Decorater) * | Date: 2017-12-10 22:31 | |
After thinking about this, maybe a better aproach is to somehow make freeze when used on windows somehow read pyconfig.h |
|||
| msg338684 - (view) | Author: Cheryl Sabella (cheryl.sabella) * ![]() |
Date: 2019-03-23 16:29 | |
New changeset a7987e71939fa631296f83861fb376361ddd59ee by Cheryl Sabella (AraHaan) in branch 'master': bpo-32217: Correct usage of ABI tags in freeze. (GH-4719) https://github.com/python/cpython/commit/a7987e71939fa631296f83861fb376361ddd59ee |
|||
| msg338687 - (view) | Author: miss-islington (miss-islington) | Date: 2019-03-23 16:47 | |
New changeset d93de028e84c762d7e30b0b93d149b66c85d421f by Miss Islington (bot) in branch '3.7': bpo-32217: Correct usage of ABI tags in freeze. (GH-4719) https://github.com/python/cpython/commit/d93de028e84c762d7e30b0b93d149b66c85d421f |
|||
| msg338688 - (view) | Author: Cheryl Sabella (cheryl.sabella) * ![]() |
Date: 2019-03-23 16:51 | |
Thank you @Decorater for the report and PR. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:58:55 | admin | set | github: 76398 |
| 2019-03-23 16:51:37 | cheryl.sabella | set | messages: + msg338688 |
| 2019-03-23 16:50:54 | cheryl.sabella | set | status: open -> closed stage: patch review -> resolved resolution: fixed versions: - Python 3.6 |
| 2019-03-23 16:47:42 | miss-islington | set | nosy:
+ miss-islington messages: + msg338687 |
| 2019-03-23 16:30:15 | miss-islington | set | pull_requests: + pull_request12467 |
| 2019-03-23 16:29:53 | cheryl.sabella | set | nosy:
+ cheryl.sabella messages: + msg338684 |
| 2017-12-10 22:31:44 | Decorater | set | messages: + msg307998 |
| 2017-12-05 15:36:47 | Decorater | set | messages: + msg307666 |
| 2017-12-05 04:16:25 | Decorater | set | messages: + msg307639 |
| 2017-12-05 04:15:58 | Decorater | set | keywords:
+ patch stage: patch review pull_requests: + pull_request4628 |
| 2017-12-05 03:47:48 | Decorater | set | versions: + Python 3.7, Python 3.8 |
| 2017-12-05 03:47:26 | Decorater | set | messages: + msg307630 |
| 2017-12-05 03:02:01 | Decorater | set | messages: + msg307623 |
| 2017-12-05 02:39:47 | r.david.murray | set | nosy:
+ r.david.murray messages: + msg307620 |
| 2017-12-05 02:15:01 | Decorater | create | |
