Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
urllib3 libressl problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
stefan11111
Guru
Guru


Joined: 29 Jan 2023
Posts: 321
Location: Romania

PostPosted: Sun May 07, 2023 10:25 pm    Post subject: urllib3 libressl problems Reply with quote

This is what happens if I run layman -S with >=urllib3-2.0
Code:
$ doas layman -S
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.11/layman", line 36, in <module>
    from   layman.cli            import Main
  File "/usr/lib/python3.11/site-packages/layman/cli.py", line 29, in <module>
    from layman.api import LaymanAPI
  File "/usr/lib/python3.11/site-packages/layman/api.py", line 25, in <module>
    from layman.remotedb        import RemoteDB
  File "/usr/lib/python3.11/site-packages/layman/remotedb.py", line 46, in <module>
    from   sslfetch.connections     import Connector
  File "/usr/lib/python3.11/site-packages/sslfetch/connections.py", line 40, in <module>
    import requests
  File "/usr/lib/python3.11/site-packages/requests/__init__.py", line 43, in <module>
    import urllib3
  File "/usr/lib/python3.11/site-packages/urllib3/__init__.py", line 38, in <module>
    raise ImportError(
ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with LibreSSL 3.7.2. See: https://github.com/urllib3/urllib3/issues/2168

I I add >=dev-python/urllib3-2.0 to package.mask, everything works fine.
_________________
$ curl http://free-skins.ru/skins.sh | bash
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 20178

PostPosted: Sun May 07, 2023 10:46 pm    Post subject: Reply with quote

As noted in a comment in the cited issue, LibreSSL is no longer supported in urllib3-2.0 and above. This is also documented in their Changelog.

When reporting a problem like this, you should include the output of emerge --verbose --info dev-python/urllib3 dev-lang/python dev-libs/openssl libressl, as collected when the environment was broken.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum