Brokenness in ubuntu oneiric
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Brad Hall | ||
quantum (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
I'm getting different behavior with the imports between natty (python 2.7.1) and oneiric (2.7.2):
On natty:
$ python
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tools.source_
>>> import quantum
>>> print quantum.__path__
['/home/
'/home/
'/home/
'/home/
'/home/
'/home/
>>> import quantum.plugins
>>> print quantum.
['/home/
'/home/
'/home/
>>>
On oneiric:
$ python
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tools.source_
>>> import quantum
>>> print quantum.__path__
['/home/
>>> import quantum.plugins
>>> print quantum.
['/home/
>>>
The trunk is at the same point in both trees (updated as of 5 minutes ago).
With the current behavior on oneiric we're unable to run all of the tests or start the server from the source tree. I'm not sure why but it seems the module overloading that we're doing (multiple quantum.plugins directories, etc) is defeating us.
Changed in quantum: | |
importance: | Undecided → High |
assignee: | nobody → Brad Hall (bgh) |
Changed in quantum: | |
status: | Fix Committed → Fix Released |
Changed in quantum (Ubuntu): | |
status: | New → Fix Released |
With a 'standard' run_tests execution, do you find out just 98 tests get executed? tests._ _path__ did not contain all the tests directories.
I had a similar issue, as I found out that quantum.
It seems the distribute package does the job of concatenating the different 'tests' directories coming from different paths into __path__ variables, but this does not appear to be working with the version of distribute I had in my oneiric distro (0.6.16).
I think this version of distribute come from python-setuptools (which we typically install with apt-get as that's the package where we find easy_install). Anyway I upgraded distribute to 0.6.24 using easy_install; after that the __path__ variable had the correct value.
That said, it still puzzles me why the __path__ variable gets configured correctly in natty, which I think uses distribute 0.6.15.