New submission from Stefan Krah <stefan-use...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue15434>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to