This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: lib2to3 doesn't work when zipped
Type: behavior Stage: resolved
Components: 2to3 (2.x to 3.x conversion tool) Versions: Python 3.8, Python 3.7, Python 3.6, Python 2.7
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Can't use lib2to3 with embeddable zip file.
View: 24960
Assigned To: Nosy List: benjamin.peterson, r.david.murray
Priority: normal Keywords:

Created on 2017-12-22 05:49 by benjamin.peterson, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (4)
msg308923 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2017-12-22 05:49
2to3 pokes around on the file system to find the grammar files it needs in source or pickled form. This makes it not work if lib2to3 is running from a zip file. lib2to3 should use pkgutil.get_data() instead to load grammar files.
msg308936 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2017-12-22 13:54
Duplicate of issue 24960.
msg308937 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2017-12-22 13:57
Funny, you are already nosy on that issue.  Does this one have a different goal, or did you just forget about that one?
msg308938 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2017-12-22 16:33
I tend to get nosied on all 2to3 issues, but I only just started caring about this one. :)

Thanks for finding the prior art.
History
Date User Action Args
2022-04-11 14:58:56adminsetgithub: 76588
2017-12-22 16:33:44benjamin.petersonsetmessages: + msg308938
2017-12-22 13:57:48r.david.murraysetmessages: + msg308937
2017-12-22 13:54:56r.david.murraysetstatus: open -> closed

superseder: Can't use lib2to3 with embeddable zip file.

nosy: + r.david.murray
messages: + msg308936
resolution: duplicate
stage: resolved
2017-12-22 05:49:46benjamin.petersoncreate