[issue19409] pkgutil isn't importable from a file or the REPL

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: I checked the other modules that previously imported imp, and they're all fine. -- ___ Python tracker ___

[issue19409] pkgutil isn't importable from a file or the REPL

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, I figured out which commit broke it, too: the one that deprecated the imp module (see http://hg.python.org/cpython/rev/1b8f08c4efd5) Previously, the importlib.machinery dependency was satisfied indirectly through imp. -- ___

[issue19409] pkgutil isn't importable from a file or the REPL

2013-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0c0cbba64b7b by Nick Coghlan in branch 'default': Close #19409: add missing import in pkgutil http://hg.python.org/cpython/rev/0c0cbba64b7b -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> closed

[issue19409] pkgutil isn't importable from a file or the REPL

2013-10-26 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue19409] pkgutil isn't importable from a file or the REPL

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: Turns out the relevant import is just plain missing from pkgutil, and we didn't notice because so many other things import it :P -- ___ Python tracker __

[issue19409] pkgutil isn't importable from a file or the REPL

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: Also "make clobber" and a rebuild didn't fix it. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue19409] pkgutil isn't importable from a file or the REPL

2013-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: I'm seeing the same symptom locally. If you use -m to execute things, the problem isn't noticeable because runpy imports importlib.machinery. It looks like test.regrtest imports it as well: $ ./python -m test test_pkgutil [1/1] test_pkgutil 1 test OK. $ ./python

[issue19409] pkgutil isn't importable from a file or the REPL

2013-10-26 Thread Donald Stufft
New submission from Donald Stufft: Currently pkgutil cannot be imported unless you first import importlib.machinery. This means ./python.exe -m pkgutil works, but doing ``import pkgutil`` in the REPL does not. -- messages: 201355 nosy: dstufft, larry priority: release blocker severity: