jabber folder is superfluous and breaks import

Bug #129276 reported by Ralph Janke
4
Affects Status Importance Assigned to Milestone
jabber.py (Debian)
Fix Released
Unknown
jabber.py (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Binary package hint: python-jabber

The module is installed into the folder "/usr/share/python-support/python-jabber/jabber/". However, this makes it necessary to import the module with import jabber.jabber instead of just import jabber.

Solution: Move all files in the jabber folder into its parent folder.

Revision history for this message
Richard Verwayen (ys76) wrote :

The __init.py__ is broken, that is why it is not importing correctly (At least I think so...)

The following works for me:

Change the content of
/usr/share/python-support/python-jabber/jabber/__init__.py

to
__all__ = ['jabber', 'xmlstream']

and everthing works like a charme.

(Version of python-jabber = 0.5.0-1.4 on Gutsy)

Revision history for this message
Ralph Janke (txwikinger) wrote :

The solution with the change of the __init__.py does not work for me

Revision history for this message
Richard Verwayen (ys76) wrote :

None of the above mentioned solutions are working right now.

Even the example scripts in the package aren't working any longer.

Revision history for this message
Richard Verwayen (ys76) wrote :

"Import jabber.jabber" seems to be the right way, since jabber contains more than just the jabber thingy but xmlstream too.

So at least the examples in /usr/share/doc/python-jabber/examples/ should be changed to reflect the changes.

Richard

Ralph Janke (txwikinger)
Changed in jabber.py:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Ralph Janke (txwikinger) wrote :

Forwarded report upstream to debian

Changed in jabber.py:
status: Unknown → New
Changed in jabber.py (Debian):
status: New → 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.