You are not logged in.

#1 2018-06-06 11:09:38

4k1
Member
Registered: 2018-06-06
Posts: 6

python-requests requires version of python-urllib3 not in repos

After installing pip, I always get the following warning when I use it:

/usr/lib/python3.6/site-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.23) or chardet (3.0.4) doesn't match a supported version!
  RequestsDependencyWarning)

I checked the requests/__init__.py and it says urllib3 version should be >= 1.21.1, <= 1.22, and running pacman -S python-pip installs urllib3 1.23.

Is anyone else experiencing this or is it just me? This could be happening because I used to have broken pip thanks to using "sudo pip install --upgrade pip", but I removed it and reinstalled from pacman.

EDIT: Changed subject from "python-pip-10.0.1-1 gives RequestsDependencyWarning when using pip" to "python-requests requires version of python-urllib3 not in repos".

Last edited by 4k1 (2018-06-06 12:19:36)

Offline

#2 2018-06-06 11:32:03

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: python-requests requires version of python-urllib3 not in repos

Despite the timing that had me suspect as much, this is not due to an improper use of pip.  This, so far, looks like it may be a legitimate packaging bug, but not with pip, with python-requests.  It looks like the version of python-requests currently in the repos may not work with the version of python-urllib also in the repos.  But I *just* started looking into it ... confirmation from others would be good before a bug report is considered.

Modifying your title to highlight the real problem may draw better attention (the current title had me reading this with the mindset of "oh god, someone else f*** up with pip").  A potential title could include "python-requests requires version of python-urllib3 not in repos."

Last edited by Trilby (2018-06-06 11:34:16)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#3 2018-06-06 11:49:25

Cthulhu82
Member
From: Nantes, France
Registered: 2013-04-01
Posts: 152

Re: python-requests requires version of python-urllib3 not in repos

Hi. I have the same issue when using docker-compose.


« En essayant continuellement, on finit par réussir.
Donc plus ça rate, plus ça a de chance de marcher. »
Devise Shadock

Offline

#4 2018-06-06 12:20:37

4k1
Member
Registered: 2018-06-06
Posts: 6

Re: python-requests requires version of python-urllib3 not in repos

Thanks Trilby. I changed the subject. Still really new to Arch so lot to learn about it and the package system.

Offline

#5 2018-06-06 14:42:14

grobber
Member
Registered: 2018-02-09
Posts: 29

Re: python-requests requires version of python-urllib3 not in repos

4k1 wrote:

After installing pip, I always get the following warning when I use it:

/usr/lib/python3.6/site-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.23) or chardet (3.0.4) doesn't match a supported version!
  RequestsDependencyWarning)

I checked the requests/__init__.py and it says urllib3 version should be >= 1.21.1, <= 1.22, and running pacman -S python-pip installs urllib3 1.23.

Is anyone else experiencing this or is it just me?

I can also confirm the exact same behavior after reinstalling python-pip from extra, stemming from the same stray version upper cap of 1.22 in /usr/lib/python3.6/site-packages/requests/__init__.py.

Downgrading to urllib3-1.22-1 fixes it, as does changing the line `assert minor <= 22' in that .py file to `assert minor <= 23'.

Offline

#6 2018-06-06 14:46:22

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: python-requests requires version of python-urllib3 not in repos


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB