NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.08k stars 14.13k forks source link

Build failure: python312Packages.iterfzf #336593

Open wrdls opened 2 months ago

wrdls commented 2 months ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. build python312Packages.iterfzf (e.g. nix-shell -p python312Packages.iterfzf)

Build log

nix log /nix/store/7ylvl0di24yqaa7qn8rl8scsjy23mjyq-python3.12-iterfzf-1.4.0.51.0.drv ``` warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/7ylvl0di24yqaa7qn8rl8scsjy23mjyq-python3.12-iterfzf-1.4.0.51.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 install: skipping file '/dev/fd/63', as it was replaced while being copied Running phase: unpackPhase @nix { "action": "setPhase", "phase": "unpackPhase" } install: skipping file '/dev/fd/63', as it was replaced while being copied unpacking source archive /nix/store/2nadp23vs3ngg0idp04bbv64y6bcfyhv-source source root is source setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/tox.ini Running phase: patchPhase @nix { "action": "setPhase", "phase": "patchPhase" } install: skipping file '/dev/fd/63', as it was replaced while being copied Running phase: updateAutotoolsGnuConfigScriptsPhase @nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" } install: skipping file '/dev/fd/63', as it was replaced while being copied Running phase: configurePhase @nix { "action": "setPhase", "phase": "configurePhase" } install: skipping file '/dev/fd/63', as it was replaced while being copied no configure script, doing nothing Running phase: buildPhase @nix { "action": "setPhase", "phase": "buildPhase" } install: skipping file '/dev/fd/63', as it was replaced while being copied Executing pypaBuildPhase Creating a wheel... * Getting build dependencies for wheel... running egg_info creating iterfzf.egg-info writing iterfzf.egg-info/PKG-INFO writing dependency_links to iterfzf.egg-info/dependency_links.txt writing top-level names to iterfzf.egg-info/top_level.txt writing manifest file 'iterfzf.egg-info/SOURCES.txt' reading manifest file 'iterfzf.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'iterfzf.egg-info/SOURCES.txt' * Building wheel... running bdist_wheel running build running build_py creating build creating build/lib creating build/lib/iterfzf copying iterfzf/test_iterfzf.py -> build/lib/iterfzf copying iterfzf/__init__.py -> build/lib/iterfzf running egg_info writing iterfzf.egg-info/PKG-INFO writing dependency_links to iterfzf.egg-info/dependency_links.txt writing top-level names to iterfzf.egg-info/top_level.txt reading manifest file 'iterfzf.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'iterfzf.egg-info/SOURCES.txt' installing to build/bdist.macosx-11.0-arm64/wheel running install running install_lib creating build/bdist.macosx-11.0-arm64 creating build/bdist.macosx-11.0-arm64/wheel creating build/bdist.macosx-11.0-arm64/wheel/iterfzf copying build/lib/iterfzf/test_iterfzf.py -> build/bdist.macosx-11.0-arm64/wheel/iterfzf copying build/lib/iterfzf/__init__.py -> build/bdist.macosx-11.0-arm64/wheel/iterfzf running install_egg_info Copying iterfzf.egg-info to build/bdist.macosx-11.0-arm64/wheel/iterfzf-1.4.0.51.0-py3.12.egg-info running install_scripts creating build/bdist.macosx-11.0-arm64/wheel/iterfzf-1.4.0.51.0.dist-info/WHEEL creating '/private/tmp/nix-build-python3.12-iterfzf-1.4.0.51.0.drv-0/source/dist/.tmp-lduoqnmy/iterfzf-1.4.0.51.0-py3-none-any.whl' and adding 'build/bdist.macosx-11.0-arm64/wheel' to it adding 'iterfzf/__init__.py' adding 'iterfzf/test_iterfzf.py' adding 'iterfzf-1.4.0.51.0.dist-info/LICENSE' adding 'iterfzf-1.4.0.51.0.dist-info/METADATA' adding 'iterfzf-1.4.0.51.0.dist-info/WHEEL' adding 'iterfzf-1.4.0.51.0.dist-info/top_level.txt' adding 'iterfzf-1.4.0.51.0.dist-info/RECORD' removing build/bdist.macosx-11.0-arm64/wheel Successfully built iterfzf-1.4.0.51.0-py3-none-any.whl Finished creating a wheel... Finished executing pypaBuildPhase Running phase: pythonRuntimeDepsCheckHook @nix { "action": "setPhase", "phase": "pythonRuntimeDepsCheckHook" } install: skipping file '/dev/fd/63', as it was replaced while being copied Executing pythonRuntimeDepsCheck Checking runtime dependencies for iterfzf-1.4.0.51.0-py3-none-any.whl Finished executing pythonRuntimeDepsCheck Running phase: installPhase @nix { "action": "setPhase", "phase": "installPhase" } install: skipping file '/dev/fd/63', as it was replaced while being copied Successfully built iterfzf-1.4.0.51.0-py3-none-any.whl Finished creating a wheel... Finished executing pypaBuildPhase Running phase: pythonRuntimeDepsCheckHook @nix { "action": "setPhase", "phase": "pythonRuntimeDepsCheckHook" } install: skipping file '/dev/fd/63', as it was replaced while being copied adding 'iterfzf-1.4.0.51.0.dist-info/WHEEL' adding 'iterfzf-1.4.0.51.0.dist-info/top_level.txt' adding 'iterfzf-1.4.0.51.0.dist-info/RECORD' removing build/bdist.macosx-11.0-arm64/wheel Successfully built iterfzf-1.4.0.51.0-py3-none-any.whl Finished creating a wheel... Finished executing pypaBuildPhase Running phase: pythonRuntimeDepsCheckHook @nix { "action": "setPhase", "phase": "pythonRuntimeDepsCheckHook" } install: skipping file '/dev/fd/63', as it was replaced while being copied Executing pythonRuntimeDepsCheck Checking runtime dependencies for iterfzf-1.4.0.51.0-py3-none-any.whl Finished executing pythonRuntimeDepsCheck Running phase: installPhase @nix { "action": "setPhase", "phase": "installPhase" } install: skipping file '/dev/fd/63', as it was replaced while being copied Executing pypaInstallPhase Successfully installed iterfzf-1.4.0.51.0-py3-none-any.whl Finished executing pypaInstallPhase Running phase: pythonOutputDistPhase @nix { "action": "setPhase", "phase": "pythonOutputDistPhase" } install: skipping file '/dev/fd/63', as it was replaced while being copied Executing pythonOutputDistPhase Finished executing pythonOutputDistPhase Running phase: fixupPhase @nix { "action": "setPhase", "phase": "fixupPhase" } install: skipping file '/dev/fd/63', as it was replaced while being copied checking for references to /private/tmp/nix-build-python3.12-iterfzf-1.4.0.51.0.drv-0/ in /nix/store/kjywqkhib15h9322l96kbs137amzb3gv-python3.12-iterfzf-1.4.0.51.0... patching script interpreter paths in /nix/store/kjywqkhib15h9322l96kbs137amzb3gv-python3.12-iterfzf-1.4.0.51.0 stripping (with command strip and flags -S) in /nix/store/kjywqkhib15h9322l96kbs137amzb3gv-python3.12-iterfzf-1.4.0.51.0/lib checking for references to /private/tmp/nix-build-python3.12-iterfzf-1.4.0.51.0.drv-0/ in /nix/store/c5cwp2zrqbanxwbrr8m01iqaby9q5yha-python3.12-iterfzf-1.4.0.51.0-dist... patching script interpreter paths in /nix/store/c5cwp2zrqbanxwbrr8m01iqaby9q5yha-python3.12-iterfzf-1.4.0.51.0-dist Executing pythonRemoveTestsDir Finished executing pythonRemoveTestsDir Running phase: installCheckPhase @nix { "action": "setPhase", "phase": "installCheckPhase" } install: skipping file '/dev/fd/63', as it was replaced while being copied no Makefile or custom installCheckPhase, doing nothing Running phase: pythonCatchConflictsPhase @nix { "action": "setPhase", "phase": "pythonCatchConflictsPhase" } install: skipping file '/dev/fd/63', as it was replaced while being copied Running phase: pythonRemoveBinBytecodePhase @nix { "action": "setPhase", "phase": "pythonRemoveBinBytecodePhase" } install: skipping file '/dev/fd/63', as it was replaced while being copied Running phase: pythonImportsCheckPhase @nix { "action": "setPhase", "phase": "pythonImportsCheckPhase" } install: skipping file '/dev/fd/63', as it was replaced while being copied Executing pythonImportsCheckPhase Check whether the following modules can be imported: iterfzf Running phase: pytestCheckPhase @nix { "action": "setPhase", "phase": "pytestCheckPhase" } install: skipping file '/dev/fd/63', as it was replaced while being copied Executing pytestCheckPhase ============================= test session starts ============================== platform darwin -- Python 3.12.4, pytest-8.3.2, pluggy-1.5.0 rootdir: /private/tmp/nix-build-python3.12-iterfzf-1.4.0.51.0.drv-0/source configfile: pyproject.toml collecting ... ^Mcollected 3 items / 2 deselected / 1 selected iterfzf/test_iterfzf.py F [100%] =================================== FAILURES =================================== _________________________ IterFzfTest.test_select_one __________________________ self = def test_select_one(self): choice = iterfzf.iterfzf( flavors, query="Vani", __extra__=["-1"], executable="/nix/store/v0pgkspnpxx8dj367bwkwjv4c0cl54qz-fzf-0.54.3/bin/fzf" ) > self.assertEqual("Vanilla", choice) E AssertionError: 'Vanilla' != None iterfzf/test_iterfzf.py:20: AssertionError ----------------------------- Captured stderr call ----------------------------- failed to open /dev/tty =========================== short test summary info ============================ FAILED iterfzf/test_iterfzf.py::IterFzfTest::test_select_one - AssertionError: 'Vanilla' != None ======================= 1 failed, 2 deselected in 0.05s ======================== ```

Additional context

Add any other context about the problem here.

Notify maintainers

@fabaff

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"
these 2 paths will be fetched (0.01 MiB download, 0.10 MiB unpacked):
  /nix/store/06pkgcwpf8q94fvwb21mpkhm5qwpqswy-DarwinTools-1
  /nix/store/rmf7c1pczsq36sl4sh4b5b8qg3cv9097-nix-info
copying path '/nix/store/06pkgcwpf8q94fvwb21mpkhm5qwpqswy-DarwinTools-1' from 'https://cache.nixos.org'...
copying path '/nix/store/rmf7c1pczsq36sl4sh4b5b8qg3cv9097-nix-info' from 'https://cache.nixos.org'...
install: skipping file '/dev/fd/63', as it was replaced while being copied
 - system: `"aarch64-darwin"`
 - host os: `Darwin 23.5.0, macOS 14.5`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.18.1`
 - nixpkgs: `/nix/store/8akjd9ngyzhzi1412nxmw26rnj93l3gp-source`

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

applePrincess commented 2 months ago

https://hydra.nixos.org/eval/1808479?filter=iterfzf&compare=1808475&full=#tabs-still-fail and I can check linux (x86_64-linux, NixOS) builds fine. so This is very likely to do with darwin specific?

fabaff commented 2 months ago

This is very likely to do with darwin specific?

Seems so.