Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 601116 - dev-python/python-gnutls-2.0.1 - RuntimeError: cannot find libgnutls on this system
Summary: dev-python/python-gnutls-2.0.1 - RuntimeError: cannot find libgnutls on this ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gnutls-3.5-breakage
  Show dependency tree
 
Reported: 2016-11-28 20:09 UTC by Sven
Modified: 2017-03-11 20:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven 2016-11-28 20:09:20 UTC
python-gnutls fails miserably on my system. The error is:

Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/blink", line 29, in <module>
    from blink import Blink
  File "/usr/lib64/python2.7/site-packages/blink/__init__.py", line 30, in <module>
    from gnutls.crypto import X509Certificate, X509PrivateKey
  File "/usr/lib64/python2.7/site-packages/gnutls/crypto.py", line 11, in <module>
    from gnutls.validators import method_args, one_of
  File "/usr/lib64/python2.7/site-packages/gnutls/validators.py", line 9, in <module>
    from gnutls.constants import *
  File "/usr/lib64/python2.7/site-packages/gnutls/constants.py", line 38, in <module>
    from gnutls.library import constants
  File "/usr/lib64/python2.7/site-packages/gnutls/library/__init__.py", line 59, in <module>
    libgnutls = load_library(version=28)
  File "/usr/lib64/python2.7/site-packages/gnutls/library/__init__.py", line 56, in load_library
    raise RuntimeError('cannot find libgnutls on this system')
RuntimeError: cannot find libgnutls on this system


The cause of the problem is obvious. I have a newer gnutls version than python-gnutls expects. On my system, the library is called libgnutls.so.30 while python-gnutls expect version 28. The version seems to be hardcoded in the python file. Rebuilding the python package does not help.
Comment 1 Sven 2016-11-28 20:12:09 UTC
Version 3.0.0 of python-gnutls seems to be available.
Comment 2 Sven 2016-11-28 23:30:36 UTC
I have renamed the existing ebuild to version 3.0.0 and I now can successfully use blink (the software I was trying to use, it depends on python-gnutls).
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2017-03-11 20:07:40 UTC
Added