[Slackbuilds-users] python-requests and python-urllib3

MyRequiem mrvladislavovich at gmail.com
Sun May 12 10:01:53 UTC 2019


Re: To slackbuilds-users at slackbuilds.org 12.05.2019 <20190512090731.GA26761 at slack.myrequiem.net>
>After updating the python-urllib3 package (Sat, 11 May 2019 04:21:55 +0400)
>from version 1.23 to 1.25.2, there were problems with the python-requests
>package (python-urllib3 is a dependency for python-requests):
>
>$ python3
>>>> import sys
>>>> sys.version
>'3.7.2 (default, Mar 18 2019, 11:45:48) \n[GCC 5.5.0]'
>>>> import requests
>/usr/lib64/python3.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.25.2) or chardet (3.0.4) doesn't match a supported version!
>  RequestsDependencyWarning)
>
>The latest release of python-requests 2.21.0, the same version in the
>SBo repository. I think it was not necessary to update python-urllib3.


bpython also doesn't start for the same reason:

$ bpython
Traceback (most recent call last):
  File "/usr/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 581, in _build_master
    ws.require(__requires__)
  File "/usr/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 898, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 789, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (urllib3 1.25.2 (/usr/lib64/python3.7/site-packages), Requirement.parse('urllib3<1.25,>=1.21.1'), {'requests'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/bpython", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 3126, in <module>
    @_call_aside
  File "/usr/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 3110, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 3139, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 596, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 784, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'urllib3<1.25,>=1.21.1' distribution was not found and is required by requests


More information about the SlackBuilds-users mailing list