ProtonVPN / linux-cli

Official ProtonVPN Linux app (CLI)
https://protonvpn.com/download-linux
GNU General Public License v3.0
335 stars 43 forks source link

i get this when trying to do anything with it #20

Open D0nnieD4rk0 opened 3 years ago

D0nnieD4rk0 commented 3 years ago

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

niva42 commented 3 years ago

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

calexandru2018 commented 3 years ago

Hey @D0nnieD4rk0

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

D0nnieD4rk0 commented 3 years ago

im on manjaro, installed the thing off the AUR

D0nnieD4rk0 commented 3 years ago

so there anything i can do ?

calexandru2018 commented 3 years ago

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.

Pavlina1979 commented 3 years ago

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.

durierem commented 3 years ago

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?

niva42 commented 3 years ago

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.

calexandru2018 commented 3 years ago

@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.

23Yamahar6 commented 2 years ago

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.

rexmightlag commented 2 years ago

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 commented 2 years ago

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.

calexandru2018 commented 2 years ago

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

rexmightlag commented 2 years ago

@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.

D0nnieD4rk0 commented 2 years ago

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

klownie commented 1 year ago

Yea i have the same issue on arch. I installed proton-cli via the AUR with paru and it does not work with the same message. I also tried deleting everythin with paru -Rcsn protonvpn-cli and it still does no work after reintall.

GabrielRavier commented 11 months ago

Can confirm I also get similar issues which I solved by removing the python3-qpid-proton package from my Fedora installation.