Having repoze.what installed breaks launchpad scripts

Bug #585188 reported by Tim Penhey
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Low
Gary Poster

Bug Description

I had installed python-repoze.what to check it out, but it broke a 'make schema' for my launchpad environment. apt-get remove python-repoze.what meant I could continue working, but is sub-optimal as I'd like to have it installed.

Evident using: bin/py to start an interpreter.

>>> import site
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/tim/src/launchpad/branch-subscription-subscribed-by/parts/scripts/site.py", line 601, in <module>
    main()
  File "/home/tim/src/launchpad/branch-subscription-subscribed-by/parts/scripts/site.py", line 586, in main
    paths_in_sys = addsitepackages(paths_in_sys)
  File "/home/tim/src/launchpad/branch-subscription-subscribed-by/parts/scripts/site.py", line 359, in addsitepackages
    addsitedir(path, known_paths)
  File "/home/tim/src/launchpad/branch-subscription-subscribed-by/parts/scripts/site.py", line 164, in addsitedir
    addpackage(sitedir, name, known_paths)
  File "/home/tim/src/launchpad/branch-subscription-subscribed-by/parts/scripts/site.py", line 133, in addpackage
    exec line
  File "<string>", line 1, in <module>
KeyError: 'repoze.what'
>>>

Related branches

Revision history for this message
Gary Poster (gary) wrote :

I can see what to do here, after poking around a bit. It's pretty easy (except for the test :-/ ). I'll get an updated version soon. Thanks for the report.

Changed in launchpad-foundations:
status: New → Triaged
importance: Undecided → Low
assignee: nobody → Gary Poster (gary)
Revision history for this message
Tim Penhey (thumper) wrote : Re: [Bug 585188] Re: Having repoze.what installed breaks launchpad scripts

Awesome, thanks Gary.

Revision history for this message
Gustavo Narea (gnarea) wrote :

@Gary Poster, is it repoze.what's fault? I'm the author of that library and I'd like to know if there is something to fix :)

Thank you very much,

 - Gustavo.

Revision history for this message
Gary Poster (gary) wrote :

Hey Gustavo. No, it has something to do with the Debian packaging of the repoze.what plugins, as best I can tell. I didn't investigate deeply, because the answer for my code is to simply more closely mimic the usual Python behavior. Then my code has the same behavior of a standard site.py in terms of not processing a directory it has already seen (which, AFAICT, means that .pth files in /usr/lib/pymodules/python2.X/ are not processed normally, but, as I said, I wasn't digging into that at the time).

Revision history for this message
Gustavo Narea (gnarea) wrote :

OK. Thank you very much, Gary!

Revision history for this message
Gary Poster (gary) wrote :

See bug 621348 for why this bug in the repoze.what Debian packaging is not triggered by the normal Debian Python.

Today's release of zc.buildout 1.5.0 addresses these symptoms.

https://code.edge.launchpad.net/~gary/launchpad/buildout1.5.0 is the branch to include these updates in Launchpad itself.

Gary Poster (gary)
Changed in launchpad-foundations:
status: Triaged → Fix Committed
Revision history for this message
Curtis Hovey (sinzui) wrote :

Is this fix released?

Revision history for this message
Gary Poster (gary) wrote :

Yes, thanks.

Changed in launchpad-foundations:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.