Suddenly after update protonvpn doesn't launch [SOLVED]

Wondering if anyone uses protonvpn with endeavorOS? I installed it from AUR and so far it’s been excellent. I have it set up to autostart on EOS LXQt on a Dell laptop. No problems at all until updating EOS a couple of days ago. After the update it simply will not launch, either by autostart or manually or CLI.
I’m not sure if python update is relevant, or what it might be, but here is some output that indicates a possibility:

$ protonvpn
Traceback (most recent call last):
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 563, in from_name
    return next(cls.discover(name=name))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/protonvpn", line 33, in <module>
    sys.exit(load_entry_point('protonvpn-gui==1.12.0', 'console_scripts', 'protonvpn')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/protonvpn", line 22, in importlib_load_entry_point
    for entry_point in distribution(dist_name).entry_points
                       ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 981, in distribution
    return Distribution.from_name(distribution_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 565, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for protonvpn-gui

$ yay -Ss protonvpn
aur/protonvpn-cli-community-git 2.2.10.r3.g3614101-1 (+4 0.00) (Orphaned) 
    A Community Linux CLI for ProtonVPN
aur/python-protonvpn-nm-lib 3.14.0-1 (+32 1.48) (Installed)                                                         
    Official ProtonVPN NetworkManager Library, maintained by the ProtonVPN team.
aur/protonvpn-cli-community 2.2.11-2 (+7 1.00) 
    A Community Linux CLI for ProtonVPN
aur/protonvpn-applet 0.1.7-1 (+3 0.00) 
    Unofficial basic systray applet for protonvpn-cli written in python + PyQt5
aur/openvpn-protonvpn 20200207-1 (+14 0.00) (Out-of-date: 2022-06-08)                                               
    OpenVPN configuration files and helper for protonvpn.com
aur/protonvpn-gui 1.12.0-1 (+55 2.30) (Installed)
    Official ProtonVPN Graphical User Interface, maintained by the ProtonVPN team.
aur/protonvpn-cli 3.13.0-2 (+94 3.10) (Installed)
    Official ProtonVPN Command Line Interface, maintained by the ProtonVPN team.
aur/protonvpn 1.0.0-3 (+59 3.49) 
    Official ProtonVPN metapackage that installs protonvpn-gui and protonvpn-cli, maintained by the ProtonVPN team.
$ protonvpn-cli login alama
Traceback (most recent call last):
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 563, in from_name
    return next(cls.discover(name=name))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/protonvpn-cli", line 33, in <module>
    sys.exit(load_entry_point('protonvpn-cli==3.13.0', 'console_scripts', 'protonvpn-cli')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/protonvpn-cli", line 22, in importlib_load_entry_point
    for entry_point in distribution(dist_name).entry_points
                       ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 981, in distribution
    return Distribution.from_name(distribution_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 565, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for protonvpn-cli
[kendew@maka ~]$ yay -Ss protonvpn
aur/protonvpn-cli-community-git 2.2.10.r3.g3614101-1 (+4 0.00) (Orphaned) 
    A Community Linux CLI for ProtonVPN
aur/python-protonvpn-nm-lib 3.14.0-1 (+32 1.48) (Installed)                                                         
    Official ProtonVPN NetworkManager Library, maintained by the ProtonVPN team.
aur/protonvpn-cli-community 2.2.11-2 (+7 1.00) 
    A Community Linux CLI for ProtonVPN
aur/protonvpn-applet 0.1.7-1 (+3 0.00) 
    Unofficial basic systray applet for protonvpn-cli written in python + PyQt5
aur/openvpn-protonvpn 20200207-1 (+14 0.00) (Out-of-date: 2022-06-08)                                               
    OpenVPN configuration files and helper for protonvpn.com
aur/protonvpn-gui 1.12.0-1 (+55 2.30) (Installed)
    Official ProtonVPN Graphical User Interface, maintained by the ProtonVPN team.
aur/protonvpn-cli 3.13.0-2 (+94 3.10) (Installed)
    Official ProtonVPN Command Line Interface, maintained by the ProtonVPN team.
aur/protonvpn 1.0.0-3 (+59 3.49) 
    Official ProtonVPN metapackage that installs protonvpn-gui and protonvpn-cli, maintained by the ProtonVPN team.

Any help appreciated! I want my VPN back!
Alama

Try to clean build it again from AUR and see if it will work.

There was a rather large number of python packages that got updated just recently so packages from AUR which have one or some of these packages as dependency would need to be rebuild.

Edit: There are already some reports about protonvpn not working after these updates. Looks like a clean build won’t help either: https://aur.archlinux.org/packages/protonvpn#comment-913128

1 Like

So I was able to fix this same issue for me. To be doubly sure, I did yay -Rs protonvpn-cli, then reinstalled and selected clean build. As I didn’t delete the comfigs it remembered my login.

2 Likes

Thanks for replies. Proceeded exactly per linuxtom’s instructions and protonvpn now opens. Again, grateful for all who took the time to answer.

3 Likes

Glad you got it fixed.
Please go to @linuxtom 's post, and click on the Solution Icon. Now a days I believe it is a square with a check mark in it. This will trigger the forum’s software to mark the Topic as solved and perform other functions.

Pudge

@Pudge Did as you suggested. Perhaps it autosaves?

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.