python-repoze.who does not install into /usr/lib/python2.7/dist-packages/repoze namespace and thus not available from pythonpath

Bug #1340866 reported by Cornelius Kölbel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-repoze.lru (Ubuntu)
Fix Released
Undecided
Unassigned
Trusty
Confirmed
Medium
Unassigned
Utopic
Fix Released
Undecided
Unassigned
python-repoze.who (Ubuntu)
Fix Released
Undecided
Unassigned
Trusty
Confirmed
High
Unassigned
Utopic
Fix Released
Undecided
Unassigned

Bug Description

Using 14.04. LTS.

python-repoze.who can not be used togeather with python-repoze.lru.

Pyhton-repoze.lru installs to
     /usr/lib/python2.7/dist-packages/repoze
while repoze.who installs to
    /usr/share/pyshared/repoze/who.

When doing an

import repoze.who.middleware

the who.middleware is not know, since the system tries to find it in /usr/lib/python2.7/distpackages, where it found repoze.lru!

Additionally the __init__.py are missing.

When I do the following everything works fine.

cp -r /usr/share/pyshared/repoze.who /usr/lib/python2.7/dist-packages/repoze/
cp -r /usr/share/pyshared/repoze.who-1.0.18.egg-info/ /usr/lib/python2.7/dist-packages/
/usr/lib/python2.7/dist-packages/repoze/who/__init__.py
cp -r /usr/share/pyshared/repoze.who.plugins.* /usr/lib/python2.7/dist-packages/
cp -r /usr/share/pyshared/repoze* /usr/lib/python2.7/dist-packages/
touch /usr/lib/python2.7/dist-packages/repoze/who/plugins/__init__.py

Can the package be fixed, please?

Thanks a lot and kind regards
Cornelius

Revision history for this message
Dimitri John Ledkov (xnox) wrote :
summary: - can not be used togeather with repoze.lru
+ python-repoze.who does not install into /usr/lib/python2.7/dist-
+ packages/repoze namespace and thus not available from pythonpath
Changed in python-repoze.who (Ubuntu):
status: New → Confirmed
Changed in python-repoze.who (Ubuntu Trusty):
assignee: nobody → Dimitri John Ledkov (xnox)
status: New → Confirmed
importance: Undecided → High
Changed in python-repoze.who (Ubuntu Utopic):
status: Confirmed → Fix Committed
status: Fix Committed → Fix Released
Changed in python-repoze.lru (Ubuntu Utopic):
status: New → Fix Released
Changed in python-repoze.lru (Ubuntu Trusty):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

This is fixed in utopic, and I don't quite have interested in backporting this fix to trusty.
The backport should be trivial to create and modify the bug description with a refactored test-case.
A begginer to intermediate contributor to Ubuntu development should be able to make the necessary steps to fix this.

Changed in python-repoze.who (Ubuntu Trusty):
assignee: Dimitri John Ledkov (xnox) → nobody
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.