NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.16k stars 14.19k forks source link

Spyder python3.11.9 can't find spyder_kernels module #334077

Open AchmadFathoni opened 3 months ago

AchmadFathoni commented 3 months ago

Describe the bug

When opening spyder, then console report /nix/store/4rf5qybw37b4lh1g0xczlv14sqdbmnpm‑python3𔂭.11.9/bin/python3.11: Error while finding module specification for 'spyder_kernels.console' (ModuleNotFoundError: No module named 'spyder_kernels')

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install spyder from 24.05
  2. Open spyder from start menu

Expected behavior

Spyder's python should find spyder_kernels since it is in the spyder's dependencies list.

Additional context

I've tried to install spyder on nixos bootable iso using nix-env and still get same result.

Notify maintainers

@gebner

Metadata

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

❯ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.40, NixOS, 24.05 (Uakari), 24.05.20240717.c716603`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - channels(root): `"nixos-24.05"`
 - nixpkgs: `/nix/store/sj9yrq21wbbfr5715hys3laa2qd6x471-source`

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

AchmadFathoni commented 3 months ago

I think I just learned how to install python package correctly in system-wide.

(pkgs.python3.withPackages (python-pkgs: [python-pkgs.spyder]))
matthiasbeyer commented 1 month ago

IMO this should not happen when installing pkgs.spyder, which is what a normal user would do, right? The user should not have to install python system-wide.

I would like to re-open this issue because of this, pinging the spyder maintainer here: @gebner

DinnerBug commented 1 month ago

I think I just learned how to install python package correctly in system-wide.

(pkgs.python3.withPackages (python-pkgs: [python-pkgs.spyder]))

This worked for me, thanks a lot :)