RequestsDependencyWarning on aarch64
duviful opened this issue · 4 comments
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
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.
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
Same issue with Raspberry Pi 4, ubuntu server.
W: Repository is broken: protonvpn-stable-release:arm64 (= 1.0.1-1) has no Size information
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