You are not logged in.

#1 2019-04-28 19:52:51

amaro
Member
From: xfce
Registered: 2014-05-09
Posts: 367

python3.7 RequestsDependencyWarning

Hi everybody!

In the last few days I got this error

python3.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning : urllib3 (1.25.1) or chardet (3.0.4) doesn't match a supported version!
  RequestsDependencyWarning)

with two new packages I installed - rtv and instaloader.

After the second time with instaloader I decided to try another package. I installed instagram-scraper and got the same message

instagram-scraper username xxx
/usr/lib/python3.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.25.1) or chardet (3.0.4) doesn't match a supported version!
  RequestsDependencyWarning)

How to solve this?

Thank you in advance!

Offline

#2 2019-04-29 11:34:42

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,520

Re: python3.7 RequestsDependencyWarning

Looks like both packages need older versions then the ones provided by archlinux.

rtv is in community, I think you should create an archlinux bug report for it.

instaloader comes from aur, you should try contacting upstream to inquire what versions it supports.

If you want  a workaround : try installing those packages through pip AS USER.
the pip provided files often include supported versions of dependencies.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2019-04-30 07:28:41

amaro
Member
From: xfce
Registered: 2014-05-09
Posts: 367

Re: python3.7 RequestsDependencyWarning

Lone_Wolf, thank you for your reply!

I am not sure there is a need for a bug report for the rtv package cause yesterday when I started system-config-printer I got the same message. Plus some other messages. And system-config-printer is in extra.

system-config-printer
/usr/lib/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)
/usr/share/system-config-printer/system-config-printer.py:315: DeprecationWarning: Gtk.ActionGroup.list_actions is deprecated
  for action in printer_manager_action_group.list_actions ():
/usr/share/system-config-printer/system-config-printer.py:316: DeprecationWarning: Gtk.Action.set_sensitive is deprecated
  action.set_sensitive (False)
/usr/share/system-config-printer/system-config-printer.py:324: DeprecationWarning: Gtk.ActionGroup.get_action is deprecated
  act = printer_manager_action_group.get_action (action)
/usr/share/system-config-printer/system-config-printer.py:354: DeprecationWarning: Gtk.UIManager.ensure_update is deprecated
  self.ui_manager.ensure_update ()
/usr/share/system-config-printer/system-config-printer.py:355: DeprecationWarning: Gtk.UIManager.get_accel_group is deprecated
  self.PrintersWindow.add_accel_group (self.ui_manager.get_accel_group ())
/usr/share/system-config-printer/system-config-printer.py:364: DeprecationWarning: Gtk.UIManager.get_action is deprecated
  action = self.ui_manager.get_action ("/new-printer")
/usr/share/system-config-printer/system-config-printer.py:365: DeprecationWarning: Gtk.Action.create_menu_item is deprecated
  newprinteritem = action.create_menu_item ()
/usr/share/system-config-printer/system-config-printer.py:663: DeprecationWarning: Gtk.Action.get_proxies is deprecated
  for widget in action.get_proxies ():
/usr/share/system-config-printer/system-config-printer.py:2236: DeprecationWarning: Gdk.threads_enter is deprecated
  Gdk.threads_enter ()
/usr/share/system-config-printer/system-config-printer.py:2187: DeprecationWarning: Gdk.threads_leave is deprecated
  Gdk.threads_leave ()

I doubt so many packages in different repos to give the same error without anyone noticing it. I would rather assume the problem is with my installation.

Regarding pip I used to have it but uninstalled it to not mess things up. In some posts I have read here on the forum I see people saying it is not recommended. I would prefer to solve the problem without it.

Offline

#4 2019-04-30 08:52:33

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: python3.7 RequestsDependencyWarning

amaro wrote:

Regarding pip I used to have it but uninstalled it to not mess things up. In some posts I have read here on the forum I see people saying it is not recommended. I would prefer to solve the problem without it.

Pip is fine if you install packages, like Lone Wolf said, with "--user" into your home directory. This way the global directories used by pacman are unaffected.

Offline

#5 2019-04-30 21:08:28

teckk
Member
Registered: 2013-02-21
Posts: 590

Re: python3.7 RequestsDependencyWarning

pacman -Ss urllib
extra/python-urllib3 1.24.2-1 [installed]

pacman -Ss chardet
extra/python-chardet 3.0.4-2 [installed]

init__.py:91: RequestsDependencyWarning: urllib3 (1.25.1) or chardet (3.0.4) doesn't

Are you using testing?
https://www.archlinux.org/packages/extr … n-urllib3/

Offline

#6 2019-05-12 05:41:18

flower
Member
Registered: 2018-07-07
Posts: 17

Re: python3.7 RequestsDependencyWarning

i have the same warning when using pacman:

/usr/lib/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)
pacman -Ss urllib
extra/python-urllib3 1.25.2-1 [Installiert]
    HTTP library with thread-safe connection pooling and file post support

pacman -Ss chardet
extra/python-chardet 3.0.4-2 [Installiert]
    Python3 module for character encoding auto-detection

Offline

#7 2019-05-12 16:11:42

aurelieng
Member
Registered: 2010-02-02
Posts: 104

Re: python3.7 RequestsDependencyWarning

Related: FS#62592.

Offline

#8 2019-05-12 16:24:32

teckk
Member
Registered: 2013-02-21
Posts: 590

Re: python3.7 RequestsDependencyWarning

https://bugs.archlinux.org/

I don't see a bug report on that yet.
Does downgrading to /var/cache/pacman/pkg/python-urllib3-1.24.2-1-any.pkg.tar.xz temporarily fix the problem.

Offline

#9 2019-05-12 19:48:28

amaro
Member
From: xfce
Registered: 2014-05-09
Posts: 367

Re: python3.7 RequestsDependencyWarning

Sorry guys for not replying earlier.

@ teckk

Yes, I am using testing. And since I had no better idea I removed the rtv folder, uninstalled it and then reinstalled it. That got rtv working though the message still appears. I have not tested the earlier version you mention, nor I filed a bug report. I have never filed a bug report before so I am not sure how to do it. I am afraid it is above my level of competence.

Offline

#10 2019-05-15 15:11:57

callofdutyops
Member
Registered: 2014-08-21
Posts: 9

Re: python3.7 RequestsDependencyWarning

teckk wrote:

https://bugs.archlinux.org/

I don't see a bug report on that yet.
Does downgrading to /var/cache/pacman/pkg/python-urllib3-1.24.2-1-any.pkg.tar.xz temporarily fix the problem.

I meet this problem, too. Downgrading solves it, temporarily.
But I think this is not arch's fault, the package is just too new.

Offline

Board footer

Powered by FluxBB