Python path appears to be searched out of sequence - intermittent
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-defaults (Ubuntu) |
Invalid
|
Undecided
|
Matthias Klose |
Bug Description
Bug #80287 appears to be a consequence of a problem with not all the directories in python path being searched in order.
Note: This happens on some, but not all Feisty systems.
Steps to reproduce:
Install pysol 4.82.1-4.1ubuntu3 or earlier (I am working on a ubuntu4 that will work around this).
Start a python interpreter.
>>> import sys
>>> sys.path.insert(0, '/usr/share/
>>> from random import constructRandom
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name constructRandom
>>> print sys.path
['/usr/
>>>
contructRandom is in the pysol provided random.py that should be checked before the system python modules. Printing sys.path confirms that the directory with the file is in fact in the python path.
that's unreproducible for me in gutsy with python2.4 and python2.5 (after renaming the pysol_random.py file). Closing as invalid. Please reopen if it's reproducible for you.