[issue16027] pkgutil doesn't support frozen modules

2020-11-30 Thread Irit Katriel
Irit Katriel added the comment: Python 2 issue. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue16027] pkgutil doesn't support frozen modules

2020-01-28 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue16027] pkgutil doesn't support frozen modules

2016-05-14 Thread Martin Panter
Martin Panter added the comment: I know I had a bit of trouble adding support to iter_modules() and related functions, see Issue 25533. Also, Issue 21749 about ImpLoader came up in my search. -- ___ Python tracker

[issue16027] pkgutil doesn't support frozen modules

2016-05-14 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Side note, as already indicated by Nick: pkgutil may well still not support frozen modules in Python 3.4 and 3.5, since runpy, which pyrun uses, does not rely on pkgutil in Python 3.4 and 3.5. -- ___ Python trac

[issue16027] pkgutil doesn't support frozen modules

2016-05-14 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: We're not supporting Python 3.3 with PyRun, but I can confirm that it works fine in Python 3.4 and 3.5. In Python 2.7, it's still broken, as you can test with pyrun2.7 -m wsgiref.simple_server -- versions: +Python 2.7 -Python 3.4

[issue16027] pkgutil doesn't support frozen modules

2016-05-14 Thread Martin Panter
Martin Panter added the comment: FWIW Python 3.3 is almost a distant memory, but I think it works properly: $ wine c:/Python33/python.exe -m __hello__ Hello world! $ wine c:/Python33/python.exe -m __phello__.spam Hello world! Hello world! On Python 2, it does fail. Is this what the original pro

[issue16027] pkgutil doesn't support frozen modules

2012-11-12 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue16027] pkgutil doesn't support frozen modules

2012-09-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Nick Coghlan wrote: > > Nick Coghlan added the comment: > > Can you confirm this problem still exists on 3.3? The pkgutil emulation isn't > used by runpy any more - with the migration to importlib, the interface that > runpy invokes fails outright if no l

[issue16027] pkgutil doesn't support frozen modules

2012-09-25 Thread Nick Coghlan
Nick Coghlan added the comment: Can you confirm this problem still exists on 3.3? The pkgutil emulation isn't used by runpy any more - with the migration to importlib, the interface that runpy invokes fails outright if no loader is found rather than falling back to the emulation (we only retai

[issue16027] pkgutil doesn't support frozen modules

2012-09-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Here's the fix we're applying in pyrun to make -m imports work at least for top-level modules: --- /home/lemburg/orig/Python-2.7.3/Lib/pkgutil.py 2012-04-10 01:07:30.0 +0200 +++ pkgutil.py 2012-09-24 22:53:30.982526065 +0200 @@ -273,10 +273,2

[issue16027] pkgutil doesn't support frozen modules

2012-09-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16027] pkgutil doesn't support frozen modules

2012-09-25 Thread Brett Cannon
Changes by Brett Cannon : -- versions: +Python 3.4 -Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue16027] pkgutil doesn't support frozen modules

2012-09-24 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue16027] pkgutil doesn't support frozen modules

2012-09-24 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16027] pkgutil doesn't support frozen modules

2012-09-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Correction: the helper function is called imp.get_frozen_object(). -- ___ Python tracker ___ ___

[issue16027] pkgutil doesn't support frozen modules

2012-09-24 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg: pkgutil is used by runpy to run Python modules that are loaded via the -m command line switch. Unfortunately, this doesn't work for frozen modules, since pkgutil doesn't know how to load their code object (this can be had via imp.get_code_object() for f