Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

protonvpn-gui error: No modules named 'dbus' #175512

Closed
rhoriguchi opened this issue May 30, 2022 · 11 comments
Closed

protonvpn-gui error: No modules named 'dbus' #175512

rhoriguchi opened this issue May 30, 2022 · 11 comments

Comments

@rhoriguchi
Copy link
Contributor

rhoriguchi commented May 30, 2022

Describe the bug

When starting protonvpn-gui I'm getting an error message No modules named 'dbus'.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install protonvpn-gui
  2. Start desktop app

Expected behavior

No error message.

Screenshots

image

Additional context

Running GNOME 42.

Notify maintainers

@WolfangAukang

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"x86_64-linux"`
 - host os: `Linux 5.17.7, NixOS, 22.11 (Raccoon), 22.11pre380684.83658b28fe6`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.9.0pre20220512_d354fc3`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@WolfangAukang
Copy link
Contributor

Can you please provide the logs for this?

@MarekPasnikowski
Copy link
Contributor

$ protonvpn-cli login [REDACTED]
Traceback (most recent call last):
  File "/nix/store/fj2ihsvcv6naa1w25dnsrxpha91dvi8p-python3.9-protonvpn-nm-lib-3.9.0/lib/python3.9/site-packages/protonvpn_nm_lib/core/keyring/linuxkeyring.py", line 21, in __getitem__
    stored_data = self.__keyring_backend.get_password(
  File "/nix/store/z2j949ab8r726jlfd1k0yfc4njqlkb5h-python3.9-keyring-23.5.1/lib/python3.9/site-packages/keyring/backends/kwallet.py", line 110, in get_password
    if not self.connected(service):
  File "/nix/store/z2j949ab8r726jlfd1k0yfc4njqlkb5h-python3.9-keyring-23.5.1/lib/python3.9/site-packages/keyring/backends/kwallet.py", line 94, in connected
    bus = dbus.SessionBus(mainloop=DBusGMainLoop())
NameError: name 'dbus' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/nix/store/9yplkli2mlg8ncnxs9bkkra9jh2w34f5-protonvpn-cli-3.11.1/bin/.protonvpn-cli-wrapped", line 9, in <module>
    sys.exit(main())
  File "/nix/store/9yplkli2mlg8ncnxs9bkkra9jh2w34f5-protonvpn-cli-3.11.1/lib/python3.9/site-packages/protonvpn_cli/main.py", line 21, in main
    ProtonVPNCLI()
  File "/nix/store/9yplkli2mlg8ncnxs9bkkra9jh2w34f5-protonvpn-cli-3.11.1/lib/python3.9/site-packages/protonvpn_cli/cli.py", line 65, in __init__
    res = getattr(self, args.command)()
  File "/nix/store/9yplkli2mlg8ncnxs9bkkra9jh2w34f5-protonvpn-cli-3.11.1/lib/python3.9/site-packages/protonvpn_cli/cli.py", line 162, in login
    return self.cli_wrapper.login(args.username)
  File "/nix/store/9yplkli2mlg8ncnxs9bkkra9jh2w34f5-protonvpn-cli-3.11.1/lib/python3.9/site-packages/protonvpn_cli/cli_wrapper.py", line 63, in login
    if self.protonvpn.check_session_exists():
  File "/nix/store/fj2ihsvcv6naa1w25dnsrxpha91dvi8p-python3.9-protonvpn-nm-lib-3.9.0/lib/python3.9/site-packages/protonvpn_nm_lib/api.py", line 356, in check_session_exists
    return self._env.api_session.is_valid
  File "/nix/store/fj2ihsvcv6naa1w25dnsrxpha91dvi8p-python3.9-protonvpn-nm-lib-3.9.0/lib/python3.9/site-packages/protonvpn_nm_lib/core/environment.py", line 56, in api_session
    self.__api_session = APISession()
  File "/nix/store/fj2ihsvcv6naa1w25dnsrxpha91dvi8p-python3.9-protonvpn-nm-lib-3.9.0/lib/python3.9/site-packages/protonvpn_nm_lib/core/session/session.py", line 224, in __init__
    self.__keyring_load_session()
  File "/nix/store/fj2ihsvcv6naa1w25dnsrxpha91dvi8p-python3.9-protonvpn-nm-lib-3.9.0/lib/python3.9/site-packages/protonvpn_nm_lib/core/session/session.py", line 253, in __keyring_load_session
    keyring_data_user = ExecutionEnvironment().keyring[
  File "/nix/store/fj2ihsvcv6naa1w25dnsrxpha91dvi8p-python3.9-protonvpn-nm-lib-3.9.0/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: name 'dbus' is not defined

@dysinger
Copy link
Contributor

I've also hit this. dbus needs to be included in protonvpn's dependencies.

@WolfangAukang
Copy link
Contributor

@Obikawa I see you are using an outdated version of protonvpn-gui (#172939 should deal with the Python dbus library and #174968 deals with the version bump). Can you please try it from unstable to see if the issue still persists?

@rhoriguchi
Copy link
Contributor Author

@Obikawa I see you are using an outdated version of protonvpn-gui (#172939 should deal with the Python dbus library and #174968 deals with the version bump). Can you please try it from unstable to see if the issue still persists?

So I've upgrade to the latest unstable release and it works again.

@dysinger
Copy link
Contributor

dysinger commented May 31, 2022 via email

@ScottFreeCode
Copy link

Any chance of this getting backported to Nixos 22.05? It seems to affect the CLI also.

@WolfangAukang
Copy link
Contributor

Any chance of this getting backported to Nixos 22.05? It seems to affect the CLI also.

I'm backporting the new releases

@wolfsprite
Copy link

wolfsprite commented Aug 25, 2022

Any update on this? Just installed on 22.05 and ran into the exact same issue.

edit: even tried including dbus in installed packages prior to protonvpn and rebuilding, still the same error. :(

edit2: Solved by running:

sudo nix-channel --add https://nixos.org/channels/nixos-unstable
sudo nix-channel --update
sudo nixos-rebuild switch

but a little perturbed that I needed to switch from stable to unstable in order for a default package to function properly..

@WolfangAukang
Copy link
Contributor

but a little perturbed that I needed to switch from stable to unstable in order for a default package to function properly..

This hasn't been backported yet (#177312).

@zeorin
Copy link

zeorin commented Oct 5, 2022

@wolfsprite there's no need to change your default channel to unstable just to use a single (or a few) packages from unstable: https://nixos.wiki/wiki/FAQ#How_can_I_install_a_package_from_unstable_while_remaining_on_the_stable_channel.3F

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants