protonvpn cli - upgrade error - missing library?

https://protonvpn.com/support/linux-vpn-tool/

On protonvpn-cli, I did some searching on the net and found something about a missing library. That’s all.

I need someone to tell me what this means. Is this a missing library error?

ProtonVPN referenced me to a support forum. I’m not doing that, too many passwords to remember now.

pip3 install protonvpn-cli --upgrade
Traceback (most recent call last):
  File "/usr/bin/pip3", line 11, in <module>
    load_entry_point('pip==10.0.1', 'console_scripts', 'pip3')()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 484, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2725, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2343, in load
    return self.resolve()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2349, in resolve
    module = __import__(self.module_name, fromlist='__name__'], level=0)
  File "/usr/lib/python3.6/site-packages/pip/_internal/__init__.py", line 42, in <module>
    from pip._internal import cmdoptions
  File "/usr/lib/python3.6/site-packages/pip/_internal/cmdoptions.py", line 16, in <module>
    from pip._internal.index import (
ImportError: cannot import name 'FormatControl'

Hi
Is python3-pip updated? You haven’t manually installed pip? If not, force the re-install of pip and see how it goes;


zypper in -f python3-pip

Be sure to upgrade your pip3 from PyPi,
The version provided by openSUSE will install pip3 initially, but is usually out of date and needs to be up to date to perform properly…

pip3 install --upgrade pip

TSU

Uninstall command fails too.

pip3 uninstall protonvpn-cli
# zypper in -f python3-pip
Loading repository data...
Reading installed packages...
Forcing installation of 'python3-pip-10.0.1-lp152.4.6.1.noarch' from repository 'Main Update Repository'.
Resolving package dependencies...

The following package is going to be reinstalled:
  python3-pip

1 package to reinstall.
Overall download size: 1.6 MiB. Already cached: 0 B. No additional space will be used or freed
after the operation.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package python3-pip-10.0.1-lp152.4.6.1.noarch  (1/1),   1.6 MiB (  9.0 MiB unpacked)
Retrieving: python3-pip-10.0.1-lp152.4.6.1.noarch.rpm .....................[done (462.4 KiB/s)]

Checking for file conflicts: ............................................................[done]
(1/1) Installing: python3-pip-10.0.1-lp152.4.6.1.noarch .................................[done]

No, same result. FYI, upgrade did work a number of times before with this version of suse (15.2)

#pip3 install --upgrade pip
Traceback (most recent call last):
  File "/usr/bin/pip3", line 11, in <module>
    load_entry_point('pip==10.0.1', 'console_scripts', 'pip3')()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 484, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2725, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2343, in load
    return self.resolve()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2349, in resolve
    module = __import__(self.module_name, fromlist='__name__'], level=0)
  File "/usr/lib/python3.6/site-packages/pip/_internal/__init__.py", line 42, in <module>
    from pip._internal import cmdoptions
  File "/usr/lib/python3.6/site-packages/pip/_internal/cmdoptions.py", line 16, in <module>
    from pip._internal.index import (
ImportError: cannot import name 'FormatControl'


https://forums.opensuse.org/showthread.php/544240-After-upgrading-pip3-does-not-work/page3?

Before, I searched the forums and found nothing. Now, I used a search engine and found the above. This is common problem with forums. I forgot about this problem.

This works.

zypper rm python3-pip
rm -fr /usr/lib/python3.6/site-packages/pip*
zypper in python3-pip

I remember upgrading pip3 using this method. I think the above downgraded pip3 so it would work.

pygobject 3.34.0 requires pycairo>=1.11.1, which is not installed.
Installing collected packages: protonvpn-cli
  Found existing installation: protonvpn-cli 2.2.4
    Uninstalling protonvpn-cli-2.2.4:
      Successfully uninstalled protonvpn-cli-2.2.4
Successfully installed protonvpn-cli-2.2.6
You are using pip version 10.0.1, however version 20.3.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
You are using pip version 10.0.1, however version 20.3.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

This upgrade command seems to be the source of the error. Until this is fixed, don’t use this command if you are using protonvpn.

Unless, the admins here say otherwise.