When I run sudo nixos-rebuild switch it starts as normal but hangs at the same specific point every time. I’m including my output below.
From my best assessment it has something to do with a python package but I tried to install different versions of Python but it didn’t seem to help. At one point I waited for the rebuild to complete for over 3 hours before I stopped it.
All suggestions welcome
Thanks in advance
bash ❯ sudo nixos-rebuild switch
building Nix...
building the system configuration...
these 18 derivations will be built:
/nix/store/0pa2xm0mfjji5m21njirbdgq0vpz9a56-python3.13-pyrate-limiter-3.9.0.drv
/nix/store/d20bbhb7pvj2p07c6qabndzanj0jccvp-python3.13-moddb-0.12.0.drv
/nix/store/rlp9v2clngldj63cg6pkyf56ff0ym8jn-lutris-unwrapped-0.5.19.drv
/nix/store/wakmxbbvrjx4bp8vd6nfc2mmb2viqavh-lutris-0.5.19-fhsenv-rootfs.drv
/nix/store/n8xa1xkfm48yhqznc78qvs3i0k58pkqk-lutris-0.5.19-bwrap.drv
/nix/store/xwqkyfg4y2cp0v7qwjvmmdlyswybc3dv-lutris-0.5.19.drv
/nix/store/lwsbb21dhj000lx9768j4g6sd51xvf8z-system-path.drv
/nix/store/cs6i99n4rpdzczi6ybqnc61ynm1rfxlx-dbus-1.drv
/nix/store/v9g0pmcbvzh3m6klxc9x5sbgqim6vcnf-X-Restart-Triggers-dbus.drv
/nix/store/22p0y2pfyarn58l3gkzrk2n848jw17jz-unit-dbus.service.drv
/nix/store/4s4nk6ra8af38pz0aapxc16bcpv5ghni-user-units.drv
/nix/store/699zc9lk9ppk9p9aks1l8nk3v0x77l90-X-Restart-Triggers-polkit.drv
/nix/store/hpbwxfsb54m31b0qyzhisbwy3xy6zmab-unit-accounts-daemon.service.drv
/nix/store/n4ka3xqq0z1jv8w3v5iyf5csra1d6pmg-unit-polkit.service.drv
/nix/store/rkks9ajsj1vmzpsh1r89xry9qx1q38wc-unit-dbus.service.drv
/nix/store/hs9p1x3jz145zr0z4daczkk7ifay8gxd-system-units.drv
/nix/store/q2qx8544dhiiwz6w59wbrfhf4r0m4lzd-etc.drv
/nix/store/6rri6zxw3iig78i3pn3427njngi2sv42-nixos-system-Firefly-25.05.812554.6faeb062ee4c.drv
building '/nix/store/0pa2xm0mfjji5m21njirbdgq0vpz9a56-python3.13-pyrate-limiter-3.9.0.drv'...
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pypa-build-hook
Using pypaBuildPhase
Sourcing python-runtime-deps-check-hook
Using pythonRuntimeDepsCheckHook
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing pytest-check-hook
Using pytestCheckPhase
Running phase: unpackPhase
unpacking source archive /nix/store/6gg2mcb80frz9ss8bpakqxfn48viz5as-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file "source/tests/test_others.py"
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
no configure script, doing nothing
Running phase: buildPhase
Executing pypaBuildPhase
Creating a wheel...
pypa build flags: --no-isolation --outdir dist/ --wheel
* Getting build dependencies for wheel...
* Building wheel...
Successfully built pyrate_limiter-3.9.0-py3-none-any.whl
Finished creating a wheel...
Finished executing pypaBuildPhase
Running phase: pythonRuntimeDepsCheckHook
Executing pythonRuntimeDepsCheck
Checking runtime dependencies for pyrate_limiter-3.9.0-py3-none-any.whl
Finished executing pythonRuntimeDepsCheck
Running phase: installPhase
Executing pypaInstallPhase
Successfully installed pyrate_limiter-3.9.0-py3-none-any.whl
Finished executing pypaInstallPhase
Running phase: pythonOutputDistPhase
Executing pythonOutputDistPhase
Finished executing pythonOutputDistPhase
Running phase: fixupPhase
shrinking RPATHs of ELF executables and libraries in /nix/store/0mzcb0zcbxarl7cjmpc41b84q9rj1vi7-python3.13-pyrate-limiter-3.9.0
checking for references to /build/ in /nix/store/0mzcb0zcbxarl7cjmpc41b84q9rj1vi7-python3.13-pyrate-limiter-3.9.0...
patching script interpreter paths in /nix/store/0mzcb0zcbxarl7cjmpc41b84q9rj1vi7-python3.13-pyrate-limiter-3.9.0
stripping (with command strip and flags -S -p) in /nix/store/0mzcb0zcbxarl7cjmpc41b84q9rj1vi7-python3.13-pyrate-limiter-3.9.0/lib
shrinking RPATHs of ELF executables and libraries in /nix/store/7vd3hr2paarr7lhm9z7ispv3l1f4hfa6-python3.13-pyrate-limiter-3.9.0-dist
checking for references to /build/ in /nix/store/7vd3hr2paarr7lhm9z7ispv3l1f4hfa6-python3.13-pyrate-limiter-3.9.0-dist...
patching script interpreter paths in /nix/store/7vd3hr2paarr7lhm9z7ispv3l1f4hfa6-python3.13-pyrate-limiter-3.9.0-dist
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
Running phase: installCheckPhase
no Makefile or custom installCheckPhase, doing nothing
Running phase: pythonCatchConflictsPhase
Running phase: pythonRemoveBinBytecodePhase
Running phase: pythonImportsCheckPhase
Executing pythonImportsCheckPhase
Check whether the following modules can be imported: pyrate_limiter
Running phase: pytestCheckPhase
Executing pytestCheckPhase
starting redis
waiting for redis to be ready
Could not connect to Valkey at /build/run/redis.sock: No such file or directory
pytest flags: -m pytest -k not\ \(test_limiter_01\) --numprocesses=8
============================= test session starts ==============================
platform linux -- Python 3.13.8, pytest-8.4.2, pluggy-1.6.0
rootdir: /build/source
configfile: pyproject.toml
plugins: asyncio-1.1.0, xdist-3.8.0
asyncio: mode=Mode.AUTO, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function
8 workers [613 items] m
........................................................................ [ 11%]
........................................................................ [ 23%]
.......................................................F............F... [ 35%]
........................................................................ [ 46%]
..............................................F......................... [ 58%]
........................................................................ [ 70%]
........................................................................ [ 82%]
........................................................................ [ 93%]
^Cerror: interrupted by the user
~ took 22m3s