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 on 2014-07-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-repoze.lru (Ubuntu)
Undecided
Unassigned
Trusty
Medium
Unassigned
Utopic
Undecided
Unassigned
python-repoze.who (Ubuntu)
Undecided
Unassigned
Trusty
High
Unassigned
Utopic
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

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
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  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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