jabberpy 0.5 does not include __init__.py
file and as such, is not detected as a package. I don't know why that is take case. My guess is that earlier versions of Python __init__.py
was not required, which would explain why its not included in jabberpy.
You can work around this problem by manually creating empty __init__.py
file under the location your module install (probably something like /usr/lib/python2.7/site-packages/jabber
)
If you don't want to touch the jabberpy module, you can also include the install location of your module before loading it:
import sys
sys.path.append('/usr/lib/python2.7/site-packages/jabber')
import jabber
Both of the workarounds are ugly. I would just probably take a look at alternative, fresher Jabber libraries that don't have this problem in the first place.