Protonvpn-cli issue

OK, I installed paru. Running your commands I get this (omitting all the info in between):

==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "python-proton-client"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: python-proton-client 0.7.1-1 (Tue 14 Dec 2021 10:42:26 AM)
==> Cleaning up...
loading packages...
resolving dependencies...
looking for conflicting packages...
:: python-proton-client and python-protonvpn-nm-lib are in conflict. Remove python-protonvpn-nm-lib? [y/N]
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: python-proton-client and python-protonvpn-nm-lib are in conflict (python-protonvpn-nm-lib<3.4.0)
loading packages...
resolving dependencies...
looking for conflicting packages...
:: python-proton-client and python-protonvpn-nm-lib are in conflict. Remove python-protonvpn-nm-lib? [y/N]
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: python-proton-client and python-protonvpn-nm-lib are in conflict (python-protonvpn-nm-lib<3.4.0)
error: packages failed to build: abiword-git-1:3.1.0.20711.857cd86de-1  python-protonvpn-nm-lib-3.7.0-1
[drew@archlabs-drew ~]$

That’s the reason.

Apparently so, but what caused it and how to resolve?

Maybe I’m just going to have to wait for the protonvpn package maintainers to rebuild with the python updates.

Were you able to fix your issue yet? I just upgraded my system and ran into the same error. Re-installing the python-proton-client package, which was not rebuilt with the new python version as there was no update for this package, fixed it for me. Hope it helps.

1 Like

No, that didn’t work for me. When I ran baph -i python-proton-client, at the end of the install process I got this:

==> Leaving fakeroot environment.
==> Finished making: python-proton-client 0.7.1-1 (Sat 18 Dec 2021 12:16:43 PM)
==> Installing package python-proton-client with pacman -U...
loading packages...
resolving dependencies...
looking for conflicting packages...
:: python-proton-client and python-protonvpn-nm-lib are in conflict. Remove python-protonvpn-nm-lib? [y/N] n
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: python-proton-client and python-protonvpn-nm-lib are in conflict (python-protonvpn-nm-lib<3.4.0)
==> WARNING: Failed to install built package(s).
==> Cleaning up...
:: Exited python-proton-client build early
[drew@archlabs-drew ~]$

If I instruct don’t remove python-protonvpn-nm-lib, I get what’s shown above. If I instruct to go ahead and remove it, I get this:

==> Leaving fakeroot environment.
==> Finished making: python-proton-client 0.7.1-1 (Sat 18 Dec 2021 12:22:47 PM)
==> Installing package python-proton-client with pacman -U...
loading packages...
resolving dependencies...
looking for conflicting packages...
:: python-proton-client and python-protonvpn-nm-lib are in conflict. Remove python-protonvpn-nm-lib? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: removing python-protonvpn-nm-lib breaks dependency 'python-protonvpn-nm-lib' required by protonvpn-cli
==> WARNING: Failed to install built package(s).
==> Cleaning up...
:: Exited python-proton-client build early
[drew@archlabs-drew ~]$

What have I overlooked?

Did you try to remove the dependencies individually beforehand !

I mean any of those stated above. I guess it might work, looks like some dependencies don t want to be removed.

What I have now done is removed entirely from my system all traces of protonvpn and its deformed descendants. I have decided to use a real VPN service, rather than a toy pretend one.

1 Like

A good thing, glad that you got it fixed !

I finally got over my frustration and little outburst about this and decided to take another look. The advice on GitHub and from the Protonvpn forum was to remove all traces of protonvpn and its dependencies and then re-install. I ran sudo pacman -Rs protonvpn protonvpn-cli protonvpn-gui and then manually checked pacman -Q and ~/.cache to ensure that nothing remained.

However when I went to re-install, something strange happened, at least it appears strange to me. I checked that the protonvpn-cli package is in AUR but I get this:

[drew@archlabs-drew ~]$ sudo pacman -S protonvpn-cli
[sudo] password for drew:
error: target not found: protonvpn-cli
$ pamac install protonvpn-cli
Error: target not found: protonvpn-cli
[drew@archlabs-drew ~]$ baph -i protonvpn-cli
:: Cloning protonvpn-cli package repo...
Cloning into 'protonvpn-cli'...
remote: Enumerating objects: 60, done.
remote: Counting objects: 100% (60/60), done.
remote: Compressing objects: 100% (50/50), done.
remote: Total 60 (delta 10), reused 60 (delta 10), pack-reused 0
Receiving objects: 100% (60/60), 18.97 KiB | 6.32 MiB/s, done.
Resolving deltas: 100% (10/10), done.
:: View/Edit the PKGBUILD for protonvpn-cli? [Y/n]

If I select n the installation continues to what appears to be  a successful conclusion, however, I still get this:

[drew@archlabs-drew ~]$ protonvpn-cli
Traceback (most recent call last):
  File "/usr/bin/protonvpn-cli", line 33, in <module>
    sys.exit(load_entry_point('protonvpn-cli==3.11.0', 'console_scripts', 'protonvpn-cli')())
  File "/usr/lib/python3.10/site-packages/protonvpn_cli/main.py", line 20, in main
    from .cli import ProtonVPNCLI
  File "/usr/lib/python3.10/site-packages/protonvpn_cli/cli.py", line 4, in <module>
    from proton.constants import VERSION as proton_version
ModuleNotFoundError: No module named 'proton'
[drew@archlabs-drew ~]$

Obviously I am missing or misunderstanding something here. Pacman and pamac can’t find the package in AUR but baph does??? Help!

Being only semi-literate around computers, simple things take me awhile but I finally tracked down how to fix my issues by rebuilding python packages from AUR. Simple things for simple minds. I ran this command and protonvpn works like a charm again:

yay -S $(pacman -Qoq /usr/lib/python3.9) --answerclean All

It cleaned up the protonvpn-cli issue and also Abiword while it was at it.

1 Like

Glad that you got it to work @DrewBC