[BUG] Using any protonvpn-cli command results in error
I'm attempting to use the CLI because the GTK app is extremely unstable for me. I'm not very good at deciphering errors, but this kind of looks like a version mismatch? Note I do have version 2.2.12 installed.
$ protonvpn
Traceback (most recent call last):
File "/sbin/protonvpn", line 33, in <module>
sys.exit(load_entry_point('protonvpn-cli==2.2.12', 'console_scripts', 'protonvpn')())
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/sbin/protonvpn", line 25, in importlib_load_entry_point
return next(matches).load()
~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/importlib/metadata/__init__.py", line 179, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/usr/lib/python3.13/site-packages/protonvpn_cli/cli.py", line 59, in <module>
from . import connection
File "/usr/lib/python3.13/site-packages/protonvpn_cli/connection.py", line 13, in <module>
from dialog import Dialog
ModuleNotFoundError: No module named 'dialog'
My system info:
- Arch Linux x86_x64
- Linux Hardened 6.13.0-arch1-1
- i3
Check you have these things installed: python-pythondialog and dialog from the Arch repos then check back with me.
I know its not the best solution but since this package is unmaintained you aren't going to get any luck from the devs by posting issues. I might make a new AUR package for people left hanging by Proton leaving paid customers in the dust as Python updates.
Yeah I have that installed, figured it was just an unmaintained package issue, my solution is just connecting static using NM and ovpn
Thanks for letting me know. If it isn't marked out of date on the AUR it might be worth doing. I'll try to fix it up with my fork when I'm free and potentially make an updated package for python-pythondialog if that needs doing too.
You can try my fork https://github.com/jonasjancarik/protonvpn-cli-community - I fixed the API issues and updated the .ovpn file template (among other things - I added new features earlier)