Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 576276 - app-portage/layman and dev-python/cryptography are uncompatible with dev-libs/openssl-1.0.2g
Summary: app-portage/layman and dev-python/cryptography are uncompatible with dev-libs...
Status: RESOLVED DUPLICATE of bug 576128
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-02 19:15 UTC by Xavier Miller (RETIRED)
Modified: 2016-03-03 03:04 UTC (History)
0 users

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 Xavier Miller (RETIRED) gentoo-dev 2016-03-02 19:15:54 UTC
With dev-libs/openssl-1.0.2g, app-portage/layman cannot run nor compile:
$ layman
!!! Layman API imports failed.Traceback (most recent call last):
  File "/usr/lib64/python3.5/site-packages/requests/packages/__init__.py", line 27, in <module>
    from . import urllib3
ImportError: cannot import name 'urllib3'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib64/python3.5/site-packages/urllib3/packages/ssl_match_hostname.py", line 3, in <module>
    from backports.ssl_match_hostname import CertificateError, match_hostname
ImportError: No module named 'backports'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.5/layman", line 29, in <module>
    from   layman.argsparser     import ArgsParser
  File "/usr/lib64/python3.5/site-packages/layman/__init__.py", line 13, in <module>
    from layman.api import LaymanAPI
  File "/usr/lib64/python3.5/site-packages/layman/api.py", line 25, in <module>
    from layman.remotedb        import RemoteDB
  File "/usr/lib64/python3.5/site-packages/layman/remotedb.py", line 46, in <module>
    from   sslfetch.connections     import Connector
  File "/usr/lib64/python3.5/site-packages/sslfetch/connections.py", line 40, in <module>
    import requests
  File "/usr/lib64/python3.5/site-packages/requests/__init__.py", line 58, in <module>
    from . import utils
  File "/usr/lib64/python3.5/site-packages/requests/utils.py", line 26, in <module>
    from .compat import parse_http_list as _parse_list_header
  File "/usr/lib64/python3.5/site-packages/requests/compat.py", line 7, in <module>
    from .packages import chardet
  File "/usr/lib64/python3.5/site-packages/requests/packages/__init__.py", line 29, in <module>
    import urllib3
  File "/usr/lib64/python3.5/site-packages/urllib3/__init__.py", line 8, in <module>
    from .connectionpool import (
  File "/usr/lib64/python3.5/site-packages/urllib3/connectionpool.py", line 33, in <module>
    from .packages.ssl_match_hostname import CertificateError
  File "/usr/lib64/python3.5/site-packages/urllib3/packages/__init__.py", line 3, in <module>
    from . import ssl_match_hostname
  File "/usr/lib64/python3.5/site-packages/urllib3/packages/ssl_match_hostname.py", line 5, in <module>
    from ssl import CertificateError, match_hostname
  File "/usr/lib64/python3.5/ssl.py", line 98, in <module>
    import _ssl             # if we can't import it, let the error propagate
ImportError: /usr/lib64/python3.5/lib-dynload/_ssl.cpython-35m-x86_64-linux-gnu.so: undefined symbol: SSLv2_method



same with dev-python/cryptography
Comment 1 Xavier Miller (RETIRED) gentoo-dev 2016-03-02 19:16:25 UTC
If I downgrade dev-libs/openssl to version 1.2.0f, layman works
Comment 2 Ryoto Yayame 2016-03-02 20:18:58 UTC
Sync your tree, then emerge openssl-1.0.2g-r1.

Emerge either dev-python/cryptography-1.1.2 or 1.2.2 as per bug 576142, comment 7 (only these two versions are currently patched).

Then rebuild all your dev-lang/python versions as per bug 576154, comment 0 (if not already done when emerging openssl-1.0.2g-r1, I dont remember...).

Finally, rebuild all the packages depending on openssl with `revdep-rebuild -i -L "libssl.so.*"` as per bug 576128, comment 2 (some of them will already have been rebuilt when emerging openssl-1.0.2g-r1, but not all...).


More details on bug 575548 and the following forum topic:

https://forums.gentoo.org/viewtopic-p-7886940.html
Comment 3 Matthias Maier gentoo-dev 2016-03-03 03:04:49 UTC

*** This bug has been marked as a duplicate of bug 576128 ***