ooga@x024 ~ $ sudo protonvpn-cli login username
Running ProtonVPN as root is not supported and is highly discouraged, as it might introduce undesirable side-effects.
Are you sure that you want to proceed (y/N): y
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/secretstorage/init.py", line 72, in dbus_init
connection = open_dbus_connection()
File "/usr/lib/python3.9/site-packages/jeepney/io/blocking.py", line 243, in open_dbus_connection
bus_addr = get_bus(bus)
File "/usr/lib/python3.9/site-packages/jeepney/bus.py", line 53, in get_bus
return find_session_bus()
File "/usr/lib/python3.9/site-packages/jeepney/bus.py", line 42, in find_session_bus
addr = os.environ['DBUS_SESSION_BUS_ADDRESS']
File "/usr/lib/python3.9/os.py", line 679, in getitem
raise KeyError(key) from None
KeyError: 'DBUS_SESSION_BUS_ADDRESS'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/protonvpn_nm_lib/core/keyring/linuxkeyring.py", line 21, in getitem
stored_data = self.keyring_backend.get_password(
File "/usr/lib/python3.9/site-packages/keyring/backends/SecretService.py", line 78, in get_password
collection = self.get_preferred_collection()
File "/usr/lib/python3.9/site-packages/keyring/backends/SecretService.py", line 56, in get_preferred_collection
bus = secretstorage.dbus_init()
File "/usr/lib/python3.9/site-packages/secretstorage/init__.py", line 78, in dbus_init
raise SecretServiceNotAvailableException(reason) from ex
secretstorage.exceptions.SecretServiceNotAvailableException: Environment variable DBUS_SESSION_BUS_ADDRESS is unset
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/protonvpn-cli", line 33, in <module>
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 21, in main
ProtonVPNCLI()
File "/usr/lib/python3.9/site-packages/protonvpn_cli/cli.py", line 65, in init
res = getattr(self, args.command)()
File "/usr/lib/python3.9/site-packages/protonvpn_cli/cli.py", line 162, in login
return self.cli_wrapper.login(args.username)
File "/usr/lib/python3.9/site-packages/protonvpn_cli/cli_wrapper.py", line 63, in login
if self.protonvpn.check_session_exists():
File "/usr/lib/python3.9/site-packages/protonvpn_nm_lib/api.py", line 321, in check_session_exists
return self._env.api_session.is_valid
File "/usr/lib/python3.9/site-packages/protonvpn_nm_lib/core/environment.py", line 53, in api_session
self.__api_session = APISession()
File "/usr/lib/python3.9/site-packages/protonvpn_nm_lib/core/session/session.py", line 171, in init
self.__keyring_load_session()
File "/usr/lib/python3.9/site-packages/protonvpn_nm_lib/core/session/session.py", line 195, in __keyring_load_session
keyring_data_user = ExecutionEnvironment().keyring[
File "/usr/lib/python3.9/site-packages/protonvpn_nm_lib/core/keyring/linuxkeyring.py", line 32, in getitem
raise exceptions.KeyringError(e)
protonvpn_nm_lib.exceptions.KeyringError: Environment variable DBUS_SESSION_BUS_ADDRESS is unset