@pathief I've made a comment here to provide a diff restoring compatibility with Python 3.13 which restores Wireguard functionality on my systems.
Search Criteria
Package Details: proton-vpn-gtk-app 4.8.1-2
Package Actions
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: | 89 |
Popularity: | 8.43 |
First Submitted: | 2023-11-01 12:41 (UTC) |
Last Updated: | 2024-12-22 20:58 (UTC) |
Dependencies (23)
- dbus-python (python-dbus)
- gtk3 (gtk3-no_deadkeys_underlineAUR, gtk3-classicAUR, gtk3-classic-xfceAUR, gtk3-patched-filechooser-icon-viewAUR)
- python-aiohttp (python-aiohttp-gitAUR)
- python-bcrypt
- python-cairo (python-cairo-gitAUR)
- python-distro
- python-gnupg
- python-gobject
- python-jinja
- python-packaging
- python-proton-coreAUR
- python-proton-keyring-linuxAUR
- python-proton-vpn-api-coreAUR
- python-proton-vpn-network-managerAUR
- python-pynacl
- python-pyopenssl
- python-requests
- python-sentry_sdk
- webkit2gtk (webkit2gtk-imgpasteAUR)
- git (git-gitAUR, git-glAUR) (make)
- Show 3 more dependencies...
Required by (0)
Sources (1)
selfdenial commented on 2024-12-23 20:41 (UTC)
pathief commented on 2024-12-23 17:38 (UTC)
After a system update, I was having trouble connecting to a server it would simply timeout. I tried rebuild, clean install and the python-proton-vpn-local-agent-bin package. Nothing worked.
The only thing that worked was switching from Wireguard to OpenVPN protocol in the application settings. I'd rather use Wireguard but at least there's a workaround.
Serial commented on 2024-12-23 11:48 (UTC)
Yesterday I solved it this way with the help of a friend from the Arch group.
Better for a rebuild, and assuming the person has YAY
pacman -Qm | awk '{print $1}' | xargs yay -S --rebuild
I don't know if it was the correct way to fix this, but It worked!
Another option is this: https://archlinux.org/packages/extra/any/rebuild-detector/
Dario_Al commented on 2024-12-23 09:53 (UTC)
@ali.molaei I used the backup that I do daily, went back, then rerun all the updates, both from pacman and with yay and after your timely intervention it works fine. Thank you.
melioratio commented on 2024-12-23 00:51 (UTC)
@ali.molaei I did do both a regular update and a clean install, both failed. However, pulling in the new packages, I was able to compile and start the app. However, it's busted with Wireguard. WG doesn't work at all, without or with the local-agent package installed.
https://privatebin.net/?b2d31a72372824bc#CzugD53GQByUHvXTZmV7w1mU2xBhMEjSHe5wtuCjQa9K
ptr1337 commented on 2024-12-22 23:39 (UTC)
I have also updated to python 3.13 but also properly rebuild all proton related python packages - this does not work currently.
I have reported the issue upstream here:
ali.molaei commented on 2024-12-22 21:02 (UTC)
The issue with python 3.13 should be fixed after this force rebuild update, the app is working fine for me again, sorry for being a bit late
@melioratio give an update on your situation after updating all the packages, it may take a while for some aur helpers to catch the update though, if the problem persist for you, also try a clean install, and if that didn't work tell me then so I can try to replicate your situation
Serial commented on 2024-12-22 19:50 (UTC) (edited on 2024-12-22 19:52 (UTC) by Serial)
At the moment the application does not open in arch with gnome. Does anyone know what could have happened?
protonvpn-app Traceback (most recent call last): File "/usr/lib/python3.13/importlib/metadata/init.py", line 407, in from_name return next(iter(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.8.1', '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.13/importlib/metadata/init.py", line 960, in distribution
return Distribution.from_name(distribution_name)
~~^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/importlib/metadata/init.py", line 409, in from_name
raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for proton-vpn-gtk-app
melioratio commented on 2024-12-22 18:15 (UTC) (edited on 2024-12-22 18:20 (UTC) by melioratio)
Got the same errors with Python 3.13. For those unaware, it needs to be recompiled when a new Python version is released. However, after doing that and clearing my .cache, .config folders of the PVPN files, it still won't work. The app opens but with this error:
2024-12-22T18:08:16.870634+00:00 | proton.vpn.core.connection:459 | INFO | CONN:STATE_CHANGED | Disconnected (initial state)
2024-12-22T18:08:16.871663+00:00 | proton.vpn.app.gtk.app:57 | INFO | APP:PROCESS_START | self=<app.App object at 0x793827140680 (proton+vpn+app+gtk+app+App at 0x5ec4764e7190)>
2024-12-22T18:08:16.936896+00:00 | proton.vpn.app.gtk.widgets.main.tray_indicator:45 | INFO | AyanaAppIndicator3 not found: Namespace AyatanaAppIndicator3 not available
2024-12-22T18:08:16.939579+00:00 | proton.vpn.core.refresher.vpn_data_refresher:167 | INFO | APP.VPN_DATA_REFRESHER:ENABLE | VPN data refresher service enabled.
2024-12-22T18:08:16.939672+00:00 | proton.vpn.core.refresher.vpn_data_refresher:175 | INFO | Next client config refresh scheduled in 3:00:46.723029
2024-12-22T18:08:16.939742+00:00 | proton.vpn.core.refresher.vpn_data_refresher:184 | INFO | Next server list refresh scheduled in 0:11:14.752566
2024-12-22T18:08:16.940127+00:00 | proton.vpn.core.refresher.vpn_data_refresher:193 | INFO | Next certificate refresh scheduled in 5 days, 5:57:16.059896
2024-12-22T18:08:16.940196+00:00 | proton.vpn.core.refresher.vpn_data_refresher:202 | INFO | Next feature flags refresh scheduled in 1:37:56.529905
2024-12-22T18:08:17.001510+00:00 | proton.vpn.app.gtk.services.reconnector.reconnector:94 | INFO | VPN reconnector enabled.
2024-12-22T18:08:17.144282+00:00 | proton.vpn.app.gtk.controller:147 | INFO | APP.STARTUP:STARTUP_ACTIONS | Running startup actions
2024-12-22T18:08:17.145909+00:00 | proton.vpn.app.gtk.utils.exception_handler:220 | ERROR | APP:ERROR | No server available in the current tier
Traceback (most recent call last):
File "/usr/lib/python3.13/site-packages/proton/vpn/app/gtk/util.py", line 31, in wrapper
callback(*args, **kwargs)
~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/proton/vpn/app/gtk/controller.py", line 155, in run_startup_actions
self.autoconnect()
~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/site-packages/proton/vpn/app/gtk/controller.py", line 167, in autoconnect
return self._connect_to(connect_at_app_startup)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/proton/vpn/app/gtk/controller.py", line 177, in _connect_to
return self.connect_to_country(connect_to)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/proton/vpn/app/gtk/controller.py", line 186, in connect_to_country
server = self._api.server_list.get_fastest_in_country(country_code)
File "/usr/lib/python3.13/site-packages/proton/vpn/session/servers/logicals.py", line 203, in get_fastest_in_country
).get_fastest()
~~~~~~~~~~~^^
File "/usr/lib/python3.13/site-packages/proton/vpn/session/servers/logicals.py", line 218, in get_fastest
raise ServerNotFoundError("No server available in the current tier")
proton.vpn.session.exceptions.ServerNotFoundError: No server available in the current tier
2024-12-22T18:08:17.146956+00:00 | proton.vpn.app.gtk.widgets.vpn.vpn_widget:215 | INFO | APP.VPN:WIDGET_READY | VPN widget is ready (load time: 0.21 seconds)
2024-12-22T18:08:17.153378+00:00 | proton.vpn.app.gtk.services.reconnector.reconnector:174 | INFO | Network connectivity was detected.
2024-12-22T18:08:20.470940+00:00 | proton.vpn.connection.states:125 | WARNING | CONN:WARNING | DISCONNECTED state received unexpected event: Down
2024-12-22T18:08:20.471070+00:00 | proton.vpn.app.gtk.services.reconnector.reconnector:101 | INFO | VPN reconnector disabled.
2024-12-22T18:08:20.471375+00:00 | proton.vpn.core.refresher.vpn_data_refresher:161 | INFO | APP.VPN_DATA_REFRESHER:DISABLE | VPN data refresher service disabled.
XxTriviumxX commented on 2024-12-22 14:59 (UTC) (edited on 2024-12-22 14:59 (UTC) by XxTriviumxX)
@marbens got the same error when i execute "protonvpn-app" on my terminal. I just received the python updates this morning.
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.