[New-bugs-announce] [issue15434] __import__() problem in 3.3
Stefan Krah
report at bugs.python.org
Mon Jul 23 12:18:04 CEST 2012
New submission from Stefan Krah <stefan-usenet at bytereef.org>:
Using b127046831e2, I'm experiencing an import problem during the NumPy build.
I've reduced it to this scenario, which works in 3.2 but not in 3.3.
Note that in NumPy's setup.py, the equivalent of /home/stefan/tmp is
the first entry in sys.path. I'm not sure if this isolated example is
terribly useful:
$ pwd
/home/stefan/tmp
$ ls distutils/command/
__init__.py xyz.py
$ cat distutils/command/__init__.py
distutils_all = ['xyz']
__import__('distutils.command',globals(),locals(),distutils_all)
$ cat distutils/command/xyz.py
$
$ python3.2 distutils/command/__init__.py
$
$ /home/stefan/usr/bin/python3.3 distutils/command/__init__.py
Traceback (most recent call last):
File "distutils/command/__init__.py", line 3, in <module>
__import__('distutils.command',globals(),locals(),distutils_all)
ImportError: No module named 'distutils.command.xyz'
$
----------
components: Interpreter Core
messages: 166218
nosy: brett.cannon, pitrou, skrah
priority: high
severity: normal
status: open
title: __import__() problem in 3.3
type: behavior
versions: Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15434>
_______________________________________
More information about the New-bugs-announce
mailing list