Protonvpn python errors

I use both stable and testing versions of Manjaro on different machines and on both machines protonvpn has stopped working. I have tried rebuilding all packages on both machines but it makes no difference. The error messages are:

From the cli:

protonvpn-cli c
Traceback (most recent call last):
File “/usr/bin/protonvpn-cli”, line 33, in
sys.exit(load_entry_point(‘protonvpn-cli==3.13.0’, ‘console_scripts’, ‘protonvpn-cli’)())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.12/site-packages/protonvpn_cli/main.py”, line 20, in main
from .cli import ProtonVPNCLI
File “/usr/lib/python3.12/site-packages/protonvpn_cli/cli.py”, line 4, in
from proton.constants import VERSION as proton_version
ModuleNotFoundError: No module named ‘proton’

From the gui version:

protonvpn
Traceback (most recent call last):
File “/usr/bin/protonvpn”, line 33, in
sys.exit(load_entry_point(‘protonvpn-gui==1.12.0’, ‘console_scripts’, ‘protonvpn’)())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/bin/protonvpn”, line 25, in importlib_load_entry_point
return next(matches).load()
^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.12/importlib/metadata/init.py”, line 205, in load
module = import_module(match.group(‘module’))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.12/importlib/init.py”, line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “”, line 1387, in _gcd_import
File “”, line 1360, in _find_and_load
File “”, line 1331, in _find_and_load_unlocked
File “”, line 935, in _load_unlocked
File “”, line 995, in exec_module
File “”, line 488, in _call_with_frames_removed
File “/usr/lib/python3.12/site-packages/protonvpn_gui/main.py”, line 14, in
from proton.constants import VERSION as proton_version
ModuleNotFoundError: No module named ‘proton’

‘No module named proton’ is the common factor, no idea what to do about it though.

You need to rebuild the AUR packages after the upgrade.

Thanks, but I have already done that twice, three times if you count the second pc and it makes no difference.

How did you rebuild it?

The most recent comment on the AUR page tells you this:
yay -Sy --rebuild python-protonvpn-nm-lib python-proton-client protonvpn-cli

Previously I used pamac. I tried your command using pikaur (I don’t run yay) and it worked so thank you for your solution.

1 Like

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