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

Problem Running protonvpn #57

Closed Timmy-Tenders closed 2 years ago

Timmy-Tenders commented 2 years ago

When trying to run any command even protonvpn-cli --version the following error is thrown:

Traceback (most recent call last): File "/usr/bin/protonvpn-cli", line 33, in sys.exit(load_entry_point('protonvpn-cli==3.11.0', 'console_scripts', 'protonvpn-cli')()) File "/usr/lib/python3.10/site-packages/protonvpn_cli/main.py", line 20, in main from .cli import ProtonVPNCLI File "/usr/lib/python3.10/site-packages/protonvpn_cli/cli.py", line 4, in from proton.constants import VERSION as proton_version ModuleNotFoundError: No module named 'proton'

On Arch Linux Python3 Version 3.10.1

ciaranbor commented 2 years ago

This happened to me today too.

Solved it by uninstalling all pvpn packages, removing any cached stuff (probably only ~/.cache/protonvpn matters but I removed yay caching too), and reinstalling.

Timmy-Tenders commented 2 years ago

Which packages did you remove ? I did reinstall removing the yay cache as well as yay cache.

ciaranbor commented 2 years ago

The AUR metapackage (protonvpn). It is a little funny, I had to do the process twice on one of my systems.

Timmy-Tenders commented 2 years ago

I had it installed from the AUR but not the metapackage just directly the protonvpn-cli package.

ciaranbor commented 2 years ago

Try yay -Rs protonvpn-cli (uninstalls dependencies too), remove caches, reinstall.

Timmy-Tenders commented 2 years ago

That last one worked for me thanks.

eljejer commented 2 years ago

The last one worked for me too. Thanks,

zerotobtc commented 2 years ago

For me too. I think this can be closed!

Sn0wAlice commented 2 years ago

Hey ! i'have the same problem. BUT any of your solution or solution of this link works for me.

Exactly got this error:

Traceback (most recent call last):
  File "/usr/bin/protonvpn-cli", line 33, in <module>
    sys.exit(load_entry_point('protonvpn-cli==3.11.0', 'console_scripts', 'protonvpn-cli')())
  File "/usr/bin/protonvpn-cli", line 25, in importlib_load_entry_point
    return next(matches).load()
StopIteration
Delan168 commented 2 years ago

[Edited to track solution found for Manjaro] Hello! Similar issue on Manjaro.

I tried the following:

Builds without error, however any protonvpn-cli command returns

Traceback (most recent call last):
  File "/usr/bin/protonvpn-cli", line 33, in <module>
    sys.exit(load_entry_point('protonvpn-cli==3.11.0', 'console_scripts', 'protonvpn-cli')())
  File "/usr/lib/python3.10/site-packages/protonvpn_cli/main.py", line 20, in main
    from .cli import ProtonVPNCLI
  File "/usr/lib/python3.10/site-packages/protonvpn_cli/cli.py", line 4, in <module>
    from proton.constants import VERSION as proton_version
ModuleNotFoundError: No module named 'proton'

Linux 5.10.89-1-MANJARO with Python 3.10.1 Thread on Manjaro Forum: Proton vpn stopped working

The solution was to run the command pamac build $(pacman -Qoq /usr/lib/python3.9) after the installation.

ParaplegicRacehorse commented 2 years ago

... so pamac build #(pacman -Qoq /usr/lib/python3.9) returns: (terminal output attached as txt file)

protonvpn-pythonup-pamacerrors.txt

tl;dr: build tests fail. install aborts.

ParaplegicRacehorse commented 2 years ago

Update.

Further testing revealed, in my case, the AUR python package build string failed due to other packages. Attempting pamac build and giving only the python-proton packages as argument worked.

See here: https://forum.manjaro.org/t/stable-update-2022-02-27-kernels-mesa-21-3-7-plasma-5-24-2-frameworks-5-91-pipewire-0-3-47-toolchain-gstreamer-1-20-nvidia-510-54/103923/69?u=paraplegicracehorse

tuxedotje commented 2 years ago

did solve this by install the protonvpn-beta.

vaibhav-mzp commented 2 years ago

I'm getting this error:

Traceback (most recent call last): File "/usr/bin/protonvpn", line 11, in <module> load_entry_point('protonvpn-gui==1.8.0', 'console_scripts', 'protonvpn')() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 479, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2861, in load_entry_point return ep.load() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2465, in load return self.resolve() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2471, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/usr/lib/python3/dist-packages/protonvpn_gui/main.py", line 14, in <module> from proton.constants import VERSION as proton_version File "/usr/lib/python3/dist-packages/proton/__init__.py", line 1, in <module> from .api import Session # noqa File "/usr/lib/python3/dist-packages/proton/api.py", line 6, in <module> import requests File "/usr/lib/python3/dist-packages/requests/__init__.py", line 43, in <module> import urllib3 File "/usr/local/lib/python3.10/dist-packages/urllib3/__init__.py", line 8, in <module> from .connectionpool import ( File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 29, in <module> from .connection import ( File "/usr/local/lib/python3.10/dist-packages/urllib3/connection.py", line 39, in <module> from .util.ssl_ import ( File "/usr/local/lib/python3.10/dist-packages/urllib3/util/__init__.py", line 3, in <module> from .connection import is_connection_dropped File "/usr/local/lib/python3.10/dist-packages/urllib3/util/connection.py", line 3, in <module> from .wait import wait_for_read File "/usr/local/lib/python3.10/dist-packages/urllib3/util/wait.py", line 1, in <module> from .selectors import ( File "/usr/local/lib/python3.10/dist-packages/urllib3/util/selectors.py", line 14, in <module> from collections import namedtuple, Mapping ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)

I'm using Kali 2022.2

vaibhav-mzp commented 2 years ago

UPDATE: Just solved the problem by deleting "/usr/local/lib/python3.10" folder and installing required modules manually by pip in a non-root terminal. Modules installed - "Mapping" and "urllib3".

cyberksh commented 1 year ago

I got it working by doing the following:

pamac remove python-proton-client python-protonvpn-nm-lib protonvpn-gui protonvpn-cli protonvpn
pamac clean -k 0 # removes build files that are cached
rm -rf ~/.cache/protonvpn
pamac install protonvpn