Closed jab closed 5 months ago
This sounds less like a Nix (the package manager) issue and more like a Nixpkgs (the package set and related tooling built upon Nix-the-package-manager) issue. For Nixpkgs issues, please report them to https://github.com/NixOS/nixpkgs/issues/.
Describe the bug
The x86_64-linux pypy installations provided by the pypy3.10 and pypy3.9 derivations are broken such that `python -m sysconfig` fails with `ModuleNotFoundError: No module named '_sysconfigdata__linux_x86_64-linux-gnu'`. This causes lots of other functionality in the standard library to fail, e.g. `python -m venv foo`, `python -m ensurepip`, etc. Click to toggle example trace from a GitHub Actions 'ubuntu-latest' runner
``` (nix:nix-shell-env) runner@fv-az1498-25:~$ pypy3.10 -VV Python 3.10.12 (af44d0b8114cb82c40a07bb9ee9c1ca8a1b3688c, Jan 03 2024, 06:33:26) [PyPy 7.3.12 with GCC 13.2.0] (nix:nix-shell-env) runner@fv-az1498-25:~$ pypy3.10 -m sysconfig Platform: "linux-x86_64" Python version: "3.10" Current installation scheme: "posix_prefix" Traceback (most recent call last): File "/nix/store/m9iaqdg9qhj2qja69g0ni103ds6dax10-pypy3.10-7.3.12/pypy3.10-c/lib-python/3/runpy.py", line 199, in _run_module_as_main return _run_code(code, main_globals, None, File "/nix/store/m9iaqdg9qhj2qja69g0ni103ds6dax10-pypy3.10-7.3.12/pypy3.10-c/lib-python/3/runpy.py", line 86, in _run_code exec(code, run_globals) File "/nix/store/m9iaqdg9qhj2qja69g0ni103ds6dax10-pypy3.10-7.3.12/pypy3.10-c/lib-python/3/sysconfig.py", line 832, inSteps To Reproduce
nix-shell -p pypy3.10 -p pypy3.9
pypy3.10 -m sysconfig
pypy3.9 -m sysconfig
Expected behavior
'sysconfig' imports successfully, command exits 0
nix-env --version
outputnix-env (Nix) 2.18.1
Additional context
Here is also an associated
flake.lock
:I consistently reproduce this on GitHub Actions' ubuntu-latest runners.
Locally I only have an
aarch64-darwin
Mac to test on where I have nix-darwin installed, and I do not reproduce this there.Priorities
Add :+1: to issues you find important.