ProtonVPN / linux-cli

Official ProtonVPN Linux app (CLI)
https://protonvpn.com/download-linux
GNU General Public License v3.0
335 stars 43 forks source link

RequestsDependencyWarning on aarch64 #26

Open duviful opened 3 years ago

duviful commented 3 years ago

hello, I got this error on every use of protonvpn-cli command:

/usr/lib/python3/dist-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.3) or chardet (3.0.4) doesn't match a supported version!
  RequestsDependencyWarning)

My system is a Raspberry Pi OS x64 on a 3b + :

uname -a
Linux server 5.10.17-v8+ #1403 SMP PREEMPT Mon Feb 22 11:37:54 GMT 2021 aarch64 GNU/Linux

required package are already installed:

pip3 list

...
chardet             3.0.4
...
requests            2.21.0
...
urllib3             1.26.3   
...

if I try to login anyhow, I got a positive message Successful login. but when I try to connect I got No session was found. Please login first.

Not usable at the moment

Thanks Best

calexandru2018 commented 3 years ago

Hey @duviful

This is possibly to some manual installation of packages via pip, as this should not happen when installing python packages via package manager. Note that overwriting your system packages with pip packages might break your system.

planetscape commented 3 years ago

chardet 4.0.0 is the current version, and is what I am running on Linux without issue.

Would recommend using pip uninstall [module] to uninstall chardet, then re-install. (You may need to run pip uninstall more than once.)

Or, pip install chardet -U to upgrade.

If that does not work, check to see if you have s'thing like chardet2 installed:

$ pip list | grep chard
chardet                           4.0.0
chardet2                          2.0.3

If so, uninstall chardet2 as shown above.

HTH

J370 commented 3 years ago

Same issue with Raspberry Pi 4, ubuntu server.

W: Repository is broken: protonvpn-stable-release:arm64 (= 1.0.1-1) has no Size information

duviful commented 3 years ago

Hello there, I've solved the problem. my installation had an old version of the requests package. The range of compatibility was limited to chardet >= 3.0.2, < 3.1.0.

I solved with this simple update command:

pip3 install requests -U

Thanks for you time Best