Skip to content

python-srp broken on wily

on wily, we're getting the following error:

root@97184b4a09bc:/host# bitmask -d --danger
/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py:203: RuntimeWarning: You have iterated over the result of pkg_resources.parse_version. This is a legacy behavior which is inconsistent with the new version class introduced in setuptools 8.0. In most cases, conversion to a tuple is unnecessary. For comparison of versions, sort the Version instances directly. If you have another use case requiring the tuple, please file a bug with the setuptools project describing that need.
  stacklevel=1,
Traceback (most recent call last):
  File "/usr/bin/bitmask", line 9, in 
    load_entry_point('leap.bitmask==0.9.0', 'console_scripts', 'bitmask')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 558, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2682, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2355, in load
    return self.resolve()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2361, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python2.7/dist-packages/leap/bitmask/app.py", line 57, in 
    from leap.bitmask.backend_app import run_backend
  File "/usr/lib/python2.7/dist-packages/leap/bitmask/backend_app.py", line 28, in 
    from leap.bitmask.backend.leapbackend import LeapBackend
  File "/usr/lib/python2.7/dist-packages/leap/bitmask/backend/leapbackend.py", line 23, in 
    from leap.bitmask.backend import components
  File "/usr/lib/python2.7/dist-packages/leap/bitmask/backend/components.py", line 36, in 
    from leap.bitmask.config.providerconfig import ProviderConfig
  File "/usr/lib/python2.7/dist-packages/leap/bitmask/config/providerconfig.py", line 27, in 
    from leap.bitmask.services import get_service_display_name
  File "/usr/lib/python2.7/dist-packages/leap/bitmask/services/__init__.py", line 26, in 
    from leap.bitmask.crypto.srpauth import SRPAuth
  File "/usr/lib/python2.7/dist-packages/leap/bitmask/crypto/srpauth.py", line 22, in 
    import srp
  File "/usr/lib/python2.7/dist-packages/srp/__init__.py", line 12, in 
    import srp._ctsrp
  File "/usr/lib/python2.7/dist-packages/srp/_ctsrp.py", line 141, in 
    dlls.append( ctypes.cdll.LoadLibrary('libssl.so') )
  File "/usr/lib/python2.7/ctypes/__init__.py", line 443, in LoadLibrary
    return self._dlltype(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 365, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libssl.so: cannot open shared object file: No such file or directory

a temporary workaround is installing libssl-dev. my first impression is that there might be something wrong with the ubuntu build of python-srp, because if I understand it right the cytpes implementation shouldn't be used if the c extension is properly compiled.

(from redmine: created on 2015-11-03)