[Python-modules-team] Bug#651865: python-gnutls: gnutls.library.functions fails with libgnutls28-3.0.8-2

Jakub Wilk jwilk at debian.org
Mon Dec 12 19:43:02 UTC 2011

tags 651865 + confirmed
severity 651865 serious

* Teddy Hogeborn <teddy at recompile.se>, 2011-12-12, 19:12:
>Traceback (most recent call last):
>  File "<string>", line 1, in <module>
>  File "/usr/lib/pymodules/python2.7/gnutls/library/__init__.py", line 133, in <module>
>    initialize_gcrypt()
>  File "/usr/lib/pymodules/python2.7/gnutls/library/__init__.py", line 117, in initialize_gcrypt
>    gcry_control = libgnutls.gcry_control
>  File "/usr/lib/python2.7/ctypes/__init__.py", line 378, in __getattr__
>    func = self.__getitem__(name)
>  File "/usr/lib/python2.7/ctypes/__init__.py", line 383, in __getitem__
>    func = self._FuncPtr((name_or_ordinal, self))
>AttributeError: /usr/lib/x86_64-linux-gnu/libgnutls.so.28: undefined symbol: gcry_control
>Python-gnutls finds libgnutls28 before it finds libgnutls26, which has
>the gcry_control symbol it needs.

Indeed, the package must not use ctypes.util.find_library(), because it 
may return an incompatible version of the library (even though all 
dependencies are satisifed).

Jakub Wilk

More information about the Python-modules-team mailing list