I’m not very sure if it caused issue but after i added chaotic-aur and updated , protonvpn no longer opens. clicking .Desktop file does nothing . Tried reinstalling several times . typing protonvpn-gui in terminal open this window which is very different from what i’m used to .
annoyingly enough it shows a window that always stays on top when connecting
but it doesn’t manage to connect
terminal says
(protonvpn-gui:19994): Gtk-WARNING **: 20:23:47.666: Failed to set text 'traceback (most recent call last):
file "/home/thenujan/.local/bin/protonvpn", line 5, in <module>
from protonvpn_cli.cli import main
file "/usr/lib/python3.9/site-packages/protonvpn_cli/cli.py", line 4, in <module>
from proton.constants import version as proton_version
modulenotfounderror: no module named 'proton'
' from markup due to error parsing markup: Error on line 7 char 10: Element “markup” was closed, but the currently open element is “module”
pip install proton says requirment already satisfied
Any idea how to fix this
Is chaotic-aur from AUR, it seems so. Generally, you should be careful if you install anything from AUR; at the very least, you need to investigate the package itself (like reading the source codes) to see if it can break your system or not (which is why you almost want to stick with Manjaro / Snap / Flatpack repository only).
From the error, the problem is the proton application itself (written in Python 3) cannot find a module named proton.
It can be that your PATH or some PYTHON_PATH (I don’t remember which PATH is appended to Python 3 sys.path process) is messed up, or the module proton is somehow deleted.
If you have reinstalled severall times, maybe it’s the PATH issue.
After i uninstalled every single package that has proton in its name
some of its executables arent yet removed and the desktop files are also not removed why is that?
~ protonvpn-gui ✔ 2m 32s
(protonvpn-gui:30528): Gtk-WARNING **: 06:04:21.797: Failed to set text 'traceback (most recent call last):
file "/home/thenujan/.local/bin/protonvpn", line 5, in <module>
from protonvpn_cli.cli import main
modulenotfounderror: no module named 'protonvpn_cli'
' from markup due to error parsing markup: Error on line 5 char 10: Element “markup” was closed, but the currently open element is “module”
^CTraceback (most recent call last):
File "/home/thenujan/.local/bin/protonvpn-gui", line 8, in <module>
sys.exit(init())
File "/home/thenujan/.local/lib/python3.9/site-packages/linux_gui/protonvpn_gui.py", line 111, in init
Gtk.main()
File "/usr/lib/python3.9/site-packages/gi/overrides/Gtk.py", line 1680, in main
return _Gtk_main(*args, **kwargs)
File "/usr/lib/python3.9/contextlib.py", line 126, in __exit__
next(self.gen)
File "/usr/lib/python3.9/site-packages/gi/_ossighelper.py", line 237, in register_sigint_fallback
signal.default_int_handler(signal.SIGINT, None)
KeyboardInterrupt
~ pamac list | grep protonvpn INT ✘ 19s
protonvpn 1.0.0-2 AUR
protonvpn-cli 3.11.0-1 chaotic-aur 154.5 kB
protonvpn-gui 1.7.0-1 chaotic-aur 9.1 MB
python-protonvpn-nm-lib 3.7.0-1 chaotic-aur 919.3 kB
Yes, from the errors it’s likely either the python3 interpreter path is broken or there are several python scripts accidentaly removed.
The protonvpn failed because the protonvpn-gui didn’t exist, probably because you manually edit it and destroyed something further.
What I recommend is to reinstall the protonvpn package and any dependencies that you have removed or accidentally broke, then run it again, then debug based on the python traceback error.
Luckily this is written in Python 3 so it’s easier to debug than a process ran from an executable file.
My advice to debug your problem is that if you find error like “no module named XXX”:
Check if there is a Python 3 script with that module name in any protonvpn installation folder. If there’s none, than your protonvpn installation is likely to be broken.
Add the following Python 3 lines of code before the in the respective Python 3 script just before the line that causes the traceback error:
# Remove these lines after you have fixed your issues.
import sys
print("-------------------------")
print("PATH:")
print(sys.path)
print("-------------------------")
Run again and see if the protonvpn installation directory path is included in the sys.path. If none, then the python3 interpreter path is broken.
You probably need to investigate further how you can extend the python3 path in your local machine. As I sugest, you can try list your shell environment variables and see if there’s something like PYTHON_PATH and you can append protonvpn installation directory paths to that environment variable. I recall python3 also make use of PATH, so you can also add to here. You need to set the environment variable in your user .bashrc.
Had the same issue which disappeared after removing ALL protonvpn related AUR packages, then removing all orphans multiple times and then reinstalling protonvpn all together with it’s dependencies.
Yup this has screwed up absolutely everything, the AUR protonvpn-gui doesn’t work and now i am left without a working VPN. What do i do? Explain for someone who never looks at source code and uses the GUI. How do i remove orphans?
Well yes, thats what happened, because everything worked, i updated everything from the add/remove programs app, i rebooted, and then protonvpn stopped working and i had to look for an hour to figure out how to disable the killswitch so i could have internet again. So yes. The act of updating broke this.
I have uninstalled and reinstalled the AUR protonvpn packages and now protonvpn-gui simply doesn’t show up as installed anymore. Command not found.
Name : protonvpn
Version : 1.0.0-2
Description : Official ProtonVPN metapackage that installs protonvpn-gui and
protonvpn-cli, maintained by the ProtonVPN team.
Architecture : any
URL : https://github.com/ProtonVPN/
Licenses : GPL3
Groups : None
Provides : None
Depends On : protonvpn-cli protonvpn-gui
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 0.00 B
Packager : Unknown Packager
Build Date : Wed 05 Jan 2022 04:35:39 AM
Install Date : Wed 05 Jan 2022 04:35:44 AM
Install Reason : Explicitly installed
Install Script : No
Validated By : None
[anon@anonbook ~]$ pacman -Qi protonvpn-gui
Name : protonvpn-gui
Version : 1.7.0-1
Description : Official ProtonVPN Graphical User Interface, maintained by the
ProtonVPN team.
Architecture : any
URL : https://github.com/ProtonVPN/
Licenses : GPL3
Groups : ProtonVPN
Provides : None
Depends On : python-protonvpn-nm-lib python-gobject python-psutil gtk3
python-cairo webkit2gtk
Optional Deps : libappindicator-gtk3 [installed]
Required By : protonvpn
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 8.65 MiB
Packager : Unknown Packager
Build Date : Wed 05 Jan 2022 04:35:18 AM
Install Date : Wed 05 Jan 2022 04:35:39 AM
Install Reason : Explicitly installed
Install Script : No
Validated By : None
[anon@anonbook ~]$ protonvpn-gui
bash: protonvpn-gui: command not found
Well I am up to date and it works fine here … same for many other folks.
But I guess I wont go into the silliness of decontextualizing actions to lay blame “I was just walking (into a minefield)”.
‘unknown packager’ tells me you are using Chaotic AUR, correct?
Are you also on Stable Branch?
Do you know that Chaotic-AUR is an automatic build of AUR packages for Arch … meaning its even less compatible with manjaro than the regular AUR, as the packages are already built, likely for a system with more recent packages than are currently in Manjaro-Stable.
So first thing - dont use chaotic AUR packages … instead use the real AUR ones.
To be kind I will just type out for you removal and regular ‘by hand’ AUR install:
(and a full update first … to be sure)
sudo pacman-mirrors -f && sudo pacman -Syyu
sudo pacman -Rns protonvpn protonvpn-gui
git clone https://aur.archlinux.org/protonvpn.git
git clone https://aur.archlinux.org/protonvpn-gui.git
cd protonvpn
makepkg -sric
cd ../protonvpn-gui
makepkg -sric
### the followin is just moving back to home and deleting the created folders
cd ..
rm -rf protonvpn protonvpn-gui
That is also assuming we you arent in a partial-upgrade state or have python issues or similar … but I guess we will see.
I use the add/remove programs gui to install things, i didn’t even know there was different kids of AUR. I don’t know what branch I’m on, i never changed it. This distro is marketed as beginner friendly, yeah? So easy granda could use it? Well that’s me, i am that user case.
Alright i did all that, and no change. Protonvpn-gui still does not register as installed, command not found.
As for the “partial update”, i figured out what you mean, and i don’t think that’s it because the Add/remove software gui forces you to do a full update when you install anything.
Oh man… i did that before but i wanted to avoid it cause there’s no killswitch. and adding all the files manually is a GIGANTIC PAINT IN THE ASS…
Alright i’ve somehow gotten protonvpn-cli to work by essentially bruteforcing google results, uninstalling everything, removing protonvpn apps using pip because it seemed to be conflicting and cleanbuilding. But the problem of protonvpn-gui remains, i just can’t get it to work at all. It installs fine in every way except it’s like it’s installed nowhere, “command not found”, but it seems to be in /usr/lib/python3.10/site-packages/protonvpn_gui. Should this be in my path? I have no idea how to proceed next.
I’m having the same problem with protonVPN and followed several suggestions from this thread but none of them fixed it. I did reinstall the package from AUR and followed the instruction from proton after reading this thread. Typing protonvpn on the command line gives following metadata not found… but I don’t understand where to get it from.
[angelica@quiet-pc ~]$ protonvpn
Traceback (most recent call last):
File “/usr/bin/protonvpn”, line 33, in
sys.exit(load_entry_point(‘protonvpn-gui==1.0.1’, ‘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.10/importlib/metadata/init.py”, line 919, in distribution
return Distribution.from_name(distribution_name)
File “/usr/lib/python3.10/importlib/metadata/init.py”, line 518, in from_name
raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for protonvpn-gui