@melioratio, my guess is that the python-importlib-metadata
package is needed. Please install it to see if that works. In such a case, it should be added as dependency to the PKGBUILD
file.
I hope it works!
Regards.
Git Clone URL: | https://aur.archlinux.org/proton-vpn-gtk-app.git (read-only, click to copy) |
---|---|
Package Base: | proton-vpn-gtk-app |
Description: | ProtonVPN GTK app, Maintained by Community |
Upstream URL: | https://github.com/ProtonVPN/proton-vpn-gtk-app |
Keywords: | protonvpn |
Licenses: | GPL3 |
Groups: | ProtonVPN |
Conflicts: | protonvpn-gui, python-proton-client |
Submitter: | ali.molaei |
Maintainer: | ali.molaei |
Last Packager: | ali.molaei |
Votes: | 38 |
Popularity: | 8.81 |
First Submitted: | 2023-11-01 12:41 (UTC) |
Last Updated: | 2024-05-07 09:46 (UTC) |
« First ‹ Previous 1 2 3 4 5 6 7 8 .. 15 Next › Last »
@melioratio, my guess is that the python-importlib-metadata
package is needed. Please install it to see if that works. In such a case, it should be added as dependency to the PKGBUILD
file.
I hope it works!
Regards.
Updated to python 3.12 just now and it busted PVPN, I'm guessing because it's still looking for 3.11.
protonvpn-app Traceback (most recent call last): File "/usr/lib/python3.12/importlib/metadata/init.py", line 397, in from_name return next(cls.discover(name=name)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ StopIteration
During handling of the above exception, another exception occurred:
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 22, in importlib_load_entry_point for entry_point in distribution(dist_name).entry_points ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/importlib/metadata/init.py", line 862, in distribution return Distribution.from_name(distribution_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/importlib/metadata/init.py", line 399, in from_name raise PackageNotFoundError(name) importlib.metadata.PackageNotFoundError: No package metadata was found for proton-vpn-gtk-app
i had the same problem but i resolved it. i had killswitch enabled so that caused an additional issue. i had to let it enabled and open protonvpn.
Sorry, looks like paru
was only updating the proton-vpn-gtk-app
package and not its dependencies. Clearing the cache and reinstalling the app worked.
@5hayanB How are you installing/updating your packages? Shouldn't the logger package be installed/updated automatically? You need to update all the dependencies of this package to fix the issues you are facing I think
Thank you @Musikolo. I updated python-proton-vpn-logger
and now getting a new error.
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
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/proton/vpn/logging/__init__.py", line 26, in <module>
from proton.utils.environment import VPNExecutionEnvironment
ModuleNotFoundError: No module named 'proton.utils'
@5hayanB, it looks like you don't have the python-proton-vpn-logger
dependency installed. Please make sure you have all the dependencies up-to-date too.
I hope it helps!
Regards.
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)
@ali.molaei please read ArchWiki mentioned by @xdzzz and this: https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot
@ali.molaei FYI base-devel is a prerequisite called out in the AUR wiki page: https://wiki.archlinux.org/title/Arch_User_Repository#Prerequisites
Pinned Comments
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.