system installed eggs overriding buildout provided packages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Gary Poster |
Bug Description
bin/py and bin/harness are seeing different versions of the pytz library. This is because bin/py uses PYTHONPATH to set the search path, so it gets set incorrectly, unlike bin/harness which sets sys.path directly.
$ bin/py
Python 2.4.6 (#2, Mar 19 2009, 10:02:47)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/lib/
>>>
$ bin/harness
execute_
xmlconfig.file()...
Reading $PYTHONSTARTUP...
Initializing storm...
Creating the factory...
>>> sys.path
['/home/
>>>
Related branches
Changed in launchpad-foundations: | |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in launchpad-foundations: | |
assignee: | nobody → Stuart Bishop (stub) |
status: | Confirmed → In Progress |
Changed in launchpad-foundations: | |
status: | In Progress → Fix Committed |
Changed in launchpad-foundations: | |
status: | Triaged → In Progress |
Changed in launchpad-foundations: | |
status: | Fix Committed → Fix Released |
So this isn't actually a problem, because our scripts all do 'import _pythonpath' which resets the path correctly. Well... almost all of our scripts do. Some of the scripts in database/schema are so old they don't use this mechanism and cause warnings to be raised about module conflicts.