Getting the following error when running protonvpn-app
.
Traceback (most recent call last):
File "/usr/bin/protonvpn-app", line 33, in <module>
sys.exit(load_entry_point('proton-vpn-gtk-app==4.3.0', 'console_scripts', 'protonvpn-app')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/bin/protonvpn-app", line 25, in importlib_load_entry_point
return next(matches).load()
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 202, in load
module = import_module(match.group('module'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/lib/python3.11/site-packages/proton/vpn/app/gtk/__init__.py", line 33, in <module>
from proton.vpn import logging # pylint: disable=C0413 # noqa: E402
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: cannot import name 'logging' from 'proton.vpn' (unknown location)
Pinned Comments
ali.molaei commented on 2024-11-14 16:25 (UTC)
I've added
https://aur.archlinux.org/packages/python-proton-vpn-local-agent-bin
as optional dependency, I worked onhttps://aur.archlinux.org/packages/python-proton-vpn-local-agent
a bit to build it from source, but I have a weird issue with it so I'm not depending this package on that by default for now.For those who know a bit about rust packaging, the issue with building from source for me is: - If I copy the build
so
file usingcp
command it works fine - If I package it (usinginstall
in PKGBUILD) and put the file there by installing the package using pacman, It doesn't work! although the files have the same checksum.I have no idea why is that and am open to any help on https://aur.archlinux.org/packages/python-proton-vpn-local-agent package
stickyhands commented on 2024-02-09 23:53 (UTC) (edited on 2024-02-09 23:53 (UTC) by stickyhands)
@shoryuken thank you, that worked!
@ali.molaei I'm not sure of technicalities of dependencies, but if you cannot force
network-manager-applet
as a dependency I think you should at least pin some comment explaining that getting it might fix issues. As it stands I accidentally found the solution at other package page https://aur.archlinux.org/packages/protonvpn-cli#comment-951908, and only since it's the newest one.