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

qutebrowser: ModuleNotFoundError: No module named 'nacl' when using keepassxc userscript #391793

Closed
3 tasks done
JackTheMico opened this issue Mar 21, 2025 · 4 comments
Closed
3 tasks done
Labels
0.kind: bug Something is broken

Comments

@JackTheMico
Copy link
Contributor

Nixpkgs version

  • Stable (24.11)

Describe the bug

Hi guys, I met the error when I was trying to use the keepassxc userscript
I used a walk-around that given by Deepseek which is able to add the missing pynacl package:

    qutebrowser = prev.qutebrowser.overrideAttrs (oldAttrs: {
      postFixup =
        (oldAttrs.postFixup or "")
        + ''
          wrapProgram $out/bin/qutebrowser \
            --set PYTHONPATH "${final.python312.withPackages (ps: [ps.pynacl])}/lib/python3.12/site-packages"
        '';
    });

Steps to reproduce

  1. Install the 3.4.0 qutebrowser
  2. Install keepassxc and enable the browser integration.
  3. add keepassxc userscript and its keybinds.
  4. Try to trigger the userscript to auto-fill credentials.

Expected behaviour

add the missing pynacl package to qutebrower pythonPath.

Screenshots

Image
Image

Relevant log output

Additional context

This is my qutebrowser info: https://bpa.st/2P3A

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.6.83, NixOS, 24.11 (Vicuna), 24.11.20250318.da04445
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.24.12
  • nixpkgs: /nix/store/s3bhg6p26cqi1hm2lamjjdwaiq49g2hn-source

Notify maintainers

@jagajaga
@rnhmjoj
@ebzzry
@dotlambda
@nrdxp


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

@JackTheMico JackTheMico added the 0.kind: bug Something is broken label Mar 21, 2025
@rnhmjoj
Copy link
Contributor

rnhmjoj commented Mar 22, 2025

pynacl is already in the PYTHONPATH of qutebrowser and this userscript is also built-in.
I'm not sure what you're doing: it seems like you downloaded it from a third-party repository and placed it in your home. If that's the case, It's surely not going to work.

Try to just add this to your config: config.bind('something', 'spawn --userscript qute-keepassxc').

@JackTheMico
Copy link
Contributor Author

Sorry for being foolish, you are correct. Thank you for helping, I'll close this one.

@rnhmjoj
Copy link
Contributor

rnhmjoj commented Mar 23, 2025

No problem. Does it work now?

@JackTheMico
Copy link
Contributor Author

No problem. Does it work now?

It works perfectly. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

2 participants