NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.36k stars 13.59k forks source link

lldb: Module not found: six.moves #335945

Open Fuuzetsu opened 3 weeks ago

Fuuzetsu commented 3 weeks ago

Describe the bug

I'm using lldb via vscode to debug something. If I look at the console, I see

/nix/store/q9rcd0qbcs73pjj8zcpwpllzycc50zb4-lldb-14.0.6-lib/lib/python3.12/site-packages/lldb/__init__.py:16107: SyntaxWarning: invalid escape sequence '\*'
  """
Traceback (most recent call last):
  File "<input>", line 1, in <module>
ModuleNotFoundError: No module named 'six.moves'

Steps To Reproduce

I don't have a reproducer :( I am somewhat hoping the fix is obvious to someone in-the-know.

Expected behavior

No modules should be missing presumably.

Notify maintainers

Maybe @RossComputerGuy ? Just based on https://github.com/NixOS/nixpkgs/pull/325175

Metadata

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

[shana@aya:~/programming/nixpkgs]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.46, NixOS, 24.11 (Vicuna), 24.11.git.c9b8802fd130`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.2`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Add a :+1: reaction to issues you find important.

RossComputerGuy commented 3 weeks ago

lldb uses it's own commonified nix file from a different PR. Will look into this tonight.

Fuuzetsu commented 3 weeks ago

FWIW I found https://github.com/NixOS/nixpkgs/blob/c9b8802fd130d9536644876525401c7ca544b563/pkgs/development/interpreters/spidermonkey/common.nix#L89 in a different package, but maybe it's relevant. Perhaps a specific Python version needs to be used?