Getting python-jabber to work with OSAD (Spacewalk Client)

Bug #1256956 reported by MrMEEE on 2013-12-02
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
jabber.py (Ubuntu)
Undecided
Unassigned

Bug Description

Hi

I'm trying to fix different issues in regards to Ubuntu integration in the Spacewalk Management server..

There are already a lot of packages in Ubuntu in regard to be managing Ubuntu servers from Spacewalk.. But a few is missing..

On of them is the OSAD push-client (basically a jabber client)...

This client depends on the jabber.py package.. but something doesn't work right there, if using the current version..

osad --help
Traceback (most recent call last):
  File "/usr/sbin/osad", line 28, in <module>
    mod = __import__("osad." + mod_name)
  File "/usr/share/rhn/osad/osad.py", line 30, in <module>
    import jabber_lib
  File "/usr/share/rhn/osad/jabber_lib.py", line 339, in <module>
    class JabberProtocolNode(jabber.Protocol):
AttributeError: 'module' object has no attribute 'Protocol'

After comparing the versions from CentOS and Ubuntu I have found one differens in the:

/usr/lib/python2.7/dist-packages/jabber/__init__.py

CentOS/Fedora/SuSE this file contains:

__all__ = []

import jabber

for __s in dir(jabber):
    __val = getattr(jabber, __s)
    globals()[__s] = __val
    __all__.append(__val)

del __s, __val

But on Ubuntu, it's empty...

Is there a chance that we can get the into the Ubuntu package???

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers