linux-cli icon indicating copy to clipboard operation
linux-cli copied to clipboard

i get this when trying to do anything with it

Open D0nnieD4rk0 opened this issue 4 years ago • 17 comments

Traceback (most recent call last): File "/usr/bin/protonvpn-cli", line 33, in sys.exit(load_entry_point('protonvpn-cli==3.7.1', 'console_scripts', 'protonvpn-cli')()) File "/usr/bin/protonvpn-cli", line 25, in importlib_load_entry_point return next(matches).load() StopIteration

D0nnieD4rk0 avatar Jun 28 '21 09:06 D0nnieD4rk0

Similar here: Traceback (most recent call last): File "/usr/bin/protonvpn-cli", line 33, in sys.exit(load_entry_point('protonvpn-cli==3.7.1', 'console_scripts', 'protonvpn-cli')()) File "/usr/lib/python3.9/site-packages/protonvpn_cli/main.py", line 21, in main ProtonVPNCLI() File "/usr/lib/python3.9/site-packages/protonvpn_cli/cli.py", line 63, in init getattr(self, args.command)() File "/usr/lib/python3.9/site-packages/protonvpn_cli/cli.py", line 69, in c self.connect() File "/usr/lib/python3.9/site-packages/protonvpn_cli/cli.py", line 130, in connect self.cli_wrapper.connect(args) File "/usr/lib/python3.9/site-packages/protonvpn_cli/cli_wrapper.py", line 235, in connect self._connect() File "/usr/lib/python3.9/site-packages/protonvpn_cli/cli_wrapper.py", line 286, in _connect connect_response = self.protonvpn.connect() File "/usr/lib/python3.9/site-packages/protonvpn_nm_lib/api.py", line 47, in connect connect_result = self._env.connection_backend.connect() File "/usr/lib/python3.9/site-packages/protonvpn_nm_lib/core/connection_backend/nm_client/n m_client.py", line 103, in connect dbus_loop.run() File "/usr/lib/python3.9/site-packages/gi/overrides/GLib.py", line 497, in run super(MainLoop, self).run() File "/usr/lib/python3.9/contextlib.py", line 124, in exit next(self.gen) File "/usr/lib/python3.9/site-packages/gi/_ossighelper.py", line 237, in register_sigint_fa llback signal.default_int_handler(signal.SIGINT, None) KeyboardInterrupt

niva42 avatar Jun 29 '21 08:06 niva42

Hey @D0nnieD4rk0

It would help if you would provide information on your distro. Is this on a Fedora system ?

calexandru2018 avatar Jun 29 '21 09:06 calexandru2018

im on manjaro, installed the thing off the AUR

D0nnieD4rk0 avatar Jun 29 '21 12:06 D0nnieD4rk0

so there anything i can do ?

D0nnieD4rk0 avatar Jul 02 '21 12:07 D0nnieD4rk0

StopIteration usually happens when packages that create binaries were not correctly removed, which leads me to think that you haven't correctly (and fully) uninstalled the community client.

calexandru2018 avatar Jul 02 '21 14:07 calexandru2018

I had the same problem and calexandru2018 is right, previously I did not fully uninstalled the comunity version. Now the proton-cli works great again. Here is guide how to do it properly: https://protonvpn.com/support/official-linux-client-arch/ just scroll down and under "Notes" there is how to do it.

Pavlina1979 avatar Jul 03 '21 10:07 Pavlina1979

I had the same issue. Thanks @Pavlina1979!

I think it's pretty common to improperly uninstall the old community version. Maybe it could be useful to point that out directly on the README?

durierem avatar Jul 06 '21 08:07 durierem

Can't get it to work sadly. I had uninstalled the older community version (from the AUR on arch) already. But I did not do the 'Purge' thing described in https://protonvpn.com/support/official-linux-client-arch/ . So I uninstalled the official linux client and reinstalled the older community version. I then did the Purge thing as described and uninstalled it again. I then reinstalled the official version again but nothing has changed. I still can't connect to any of the Proton VPN. When I try to connect with protonvpn-cli c it just stalls with after the output: Setting up ProtonVPN. Connecting to ProtonVPN on DE#12 with UDP.

niva42 avatar Jul 07 '21 14:07 niva42

@niva42 your issue is not related to this ticket. Please take a look at this: https://github.com/ProtonVPN/linux-app/issues/9

Edit: The link point to the GUI, but since both clients use the same library, it does really matter.

calexandru2018 avatar Jul 07 '21 14:07 calexandru2018

I have the same issue, I've tried reinstalling protonvpn-cli, I've installed protonvpn-gui (in case it would fix it) and nothing works.

I broke it after uninstalling it, I was having issues connecting to the VPNs, so I did "sudo pacman -R protonvpn-cli" and went ahead to delete all of the folders containing "protonvpn".

This is the message I get after typing protonvpn-cli:

Traceback (most recent call last): File "/usr/bin/protonvpn-cli", line 33, in sys.exit(load_entry_point('protonvpn-cli==3.8.0', 'console_scripts', 'protonvpn-cli')()) File "/usr/lib/python3.9/site-packages/protonvpn_cli/main.py", line 20, in main from .cli import ProtonVPNCLI File "/usr/lib/python3.9/site-packages/protonvpn_cli/cli.py", line 5, in from protonvpn_nm_lib.constants import APP_VERSION as lib_version ModuleNotFoundError: No module named 'protonvpn_nm_lib.constants'

The landlord has a lot of content blocked in their wifi and I can't even access the official protonvpn website.

Any ideas on how to fix it?

Thanks in advance.

23Yamahar6 avatar Sep 03 '21 16:09 23Yamahar6

I have the issue as @D0nnieD4rk0, at least when I run it without any elevated privileges. It works fine when I run as root (sudo)

rexmightlag avatar Sep 24 '21 09:09 rexmightlag

I have the issue as @D0nnieD4rk0, at least when I run it without any elevated privileges. It works fine when I run as root (sudo)

Welp, a second after writing this, I figured out what was causing the problem. The old python packages from the dir .local/lib/python were causing a conflict with the packages that the new protonvpn cli version had installed (I was using the community version before).

I just deleted all the python related packages from .local/lib/ and the protonvpn-cli started working. If you have other python related stuff in the local lib directory, you might need to find and remove the conflicting packages one by one. In my case I had nothing important there, so I deleted the whole python3.9 directory.

rexmightlag avatar Sep 24 '21 09:09 rexmightlag

@rexmightlag you're not supposed to run the official client with sudo.

calexandru2018 avatar Sep 24 '21 09:09 calexandru2018

@rexmightlag you're not supposed to run the official client with sudo.

hello, yes I know that, that is why I was wondering why it was not working without sudo. That is why I thought of deleting the local python files in the '.local/lib/ folder'. After I did that, it worked without sudo.

I have the issue as @D0nnieD4rk0, at least when I run it without any elevated privileges. It works fine when I run as root (sudo)

Welp, a second after writing this, I figured out what was causing the problem. The old python packages from the dir .local/lib/python were causing a conflict with the packages that the new protonvpn cli version had installed (I was using the community version before).

I just deleted all the python related packages from .local/lib/ and the protonvpn-cli started working. If you have other python related stuff in the local lib directory, you might need to find and remove the conflicting packages one by one. In my case I had nothing important there, so I deleted the whole python3.9 directory.

rexmightlag avatar Sep 24 '21 11:09 rexmightlag

well its been a long time since i opened this issue and today i decided to try to install this new cli again and i ran the the purge on the old cli through protonvpn configure and did pacman -Rns protonvpn-cli-ng and installed this new cli and it still fails to work can i just a get a list of files to delete cuz pacman fails to delete old files

D0nnieD4rk0 avatar Feb 23 '22 16:02 D0nnieD4rk0