Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure: urh #371164

Open
aij opened this issue Jan 5, 2025 · 1 comment
Open

Build failure: urh #371164

aij opened this issue Jan 5, 2025 · 1 comment
Labels
0.kind: build failure A package fails to build

Comments

@aij
Copy link
Contributor

aij commented Jan 5, 2025

Steps To Reproduce

Steps to reproduce the behavior:

  1. build urh

Build log

Build Log
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Running phase: qtPreHook
@nix { "action": "setPhase", "phase": "qtPreHook" }
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/szq4fvgflx9il2hkb8h9ibk14437gflv-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/tests/utils_testing.py
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
no configure script, doing nothing
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Executing setuptoolsBuildPhase
Found airspy lib. Will compile with native airspy support
Found bladeRF lib. Will compile with native bladerf support
    Environment variable BLADERF_API_VERSION is unset, try to automatically detect API version
    Automatic API version check succeeded.
    Using BLADERF_API_VERSION=2.5
Found hackrf lib. Will compile with native hackrf support
Found LimeSuite lib. Will compile with native limesdr support
Found iio lib. Will compile with native plutosdr support
Found rtlsdr lib. Will compile with native rtlsdr support
Skipping native support for usrp
Skipping native support for sdrplay
[ 1/11] Cythonizing src/urh/cythonext/auto_interpretation.pyx
[ 2/11] Cythonizing src/urh/cythonext/awre_util.pyx
[ 3/11] Cythonizing src/urh/cythonext/path_creator.pyx
[ 4/11] Cythonizing src/urh/cythonext/signal_functions.pyx
performance hint: src/urh/cythonext/signal_functions.pyx:140:35: Exception check after calling 'bit_array_to_number' will always require the GIL to be acquired.
Possible solutions:
	1. Declare 'bit_array_to_number' as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions.
	2. Declare any exception value explicitly for functions in pxd files.
performance hint: src/urh/cythonext/signal_functions.pyx:140:35: Exception check after calling 'bit_array_to_number' will always require the GIL to be acquired.
Possible solutions:
	1. Declare 'bit_array_to_number' as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions.
	2. Declare any exception value explicitly for functions in pxd files.
performance hint: src/urh/cythonext/signal_functions.pyx:140:35: Exception check after calling 'bit_array_to_number' will always require the GIL to be acquired.
Possible solutions:
	1. Declare 'bit_array_to_number' as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions.
	2. Declare any exception value explicitly for functions in pxd files.
performance hint: src/urh/cythonext/signal_functions.pyx:140:35: Exception check after calling 'bit_array_to_number' will always require the GIL to be acquired.
Possible solutions:
	1. Declare 'bit_array_to_number' as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions.
	2. Declare any exception value explicitly for functions in pxd files.
performance hint: src/urh/cythonext/signal_functions.pyx:140:35: Exception check after calling 'bit_array_to_number' will always require the GIL to be acquired.
Possible solutions:
	1. Declare 'bit_array_to_number' as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions.
	2. Declare any exception value explicitly for functions in pxd files.
[ 5/11] Cythonizing src/urh/cythonext/util.pyx
performance hint: src/urh/cythonext/util.pxd:12:34: No exception value declared for 'bit_array_to_number' in pxd file.
Users cimporting this function and calling it without the gil will always require an exception check.
Suggest adding an explicit exception value.
[ 6/11] Cythonizing src/urh/dev/native/lib/airspy.pyx
[ 7/11] Cythonizing src/urh/dev/native/lib/bladerf.pyx
warning: src/urh/dev/native/lib/bladerf.pyx:27:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
warning: src/urh/dev/native/lib/bladerf.pyx:40:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
warning: src/urh/dev/native/lib/bladerf.pyx:100:4: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
warning: src/urh/dev/native/lib/bladerf.pyx:141:2: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
warning: src/urh/dev/native/lib/bladerf.pyx:148:2: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
warning: src/urh/dev/native/lib/cbladerf.pxd:42:4: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
warning: src/urh/dev/native/lib/cbladerf.pxd:64:4: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
warning: src/urh/dev/native/lib/cbladerf.pxd:76:4: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
warning: src/urh/dev/native/lib/cbladerf.pxd:83:4: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
warning: src/urh/dev/native/lib/cbladerf.pxd:90:4: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
warning: src/urh/dev/native/lib/cbladerf.pxd:97:4: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
warning: src/urh/dev/native/lib/cbladerf.pxd:101:4: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
warning: src/urh/dev/native/lib/cbladerf.pxd:121:4: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
warning: src/urh/dev/native/lib/cbladerf.pxd:129:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
[ 8/11] Cythonizing src/urh/dev/native/lib/hackrf.pyx
warning: src/urh/dev/native/lib/hackrf.pyx:43:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
warning: src/urh/dev/native/lib/chackrf.pxd:80:4: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
warning: src/urh/dev/native/lib/chackrf.pxd:82:28: 'hackrf_device_list' redeclared 
[ 9/11] Cythonizing src/urh/dev/native/lib/limesdr.pyx
[10/11] Cythonizing src/urh/dev/native/lib/plutosdr.pyx
[11/11] Cythonizing src/urh/dev/native/lib/rtlsdr.pyx
warning: src/urh/dev/native/lib/rtlsdr.pyx:17:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
warning: src/urh/dev/native/lib/crtlsdr.pxd:33:4: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/__init__.py:94: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!

        ********************************************************************************
        Requirements should be satisfied by a PEP 517 installer.
        If you are using pip, you can try `pip install --use-pep517`.
        ********************************************************************************

!!
  dist.fetch_build_eggs(dist.setup_requires)
/nix/store/c9m6yd8fg1flz2j5r4bif1ib5j20a0cy-python3-3.12.8/bin/python3.12: No module named pip
Traceback (most recent call last):
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/installer.py", line 103, in _fetch_build_egg_no_warn
    subprocess.check_call(cmd)
  File "/nix/store/c9m6yd8fg1flz2j5r4bif1ib5j20a0cy-python3-3.12.8/lib/python3.12/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/nix/store/c9m6yd8fg1flz2j5r4bif1ib5j20a0cy-python3-3.12.8/bin/python3.12', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/build/tmp43y8qzec', '--quiet', 'numpy<2.0.0']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/build/source/nix_run_setup", line 8, in <module>
    exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))
  File "setup.py", line 157, in <module>
    setup(
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/__init__.py", line 116, in setup
    _install_setup_requires(attrs)
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/__init__.py", line 89, in _install_setup_requires
    _fetch_build_eggs(dist)
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/__init__.py", line 94, in _fetch_build_eggs
    dist.fetch_build_eggs(dist.setup_requires)
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/dist.py", line 664, in fetch_build_eggs
    return _fetch_build_eggs(self, requires)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/installer.py", line 40, in _fetch_build_eggs
    resolved_dists = pkg_resources.working_set.resolve(
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/pkg_resources/__init__.py", line 897, in resolve
    dist = self._resolve_dist(
           ^^^^^^^^^^^^^^^^^^^
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/pkg_resources/__init__.py", line 933, in _resolve_dist
    dist = best[req.key] = env.best_match(
                           ^^^^^^^^^^^^^^^
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/pkg_resources/__init__.py", line 1271, in best_match
    return self.obtain(req, installer)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/pkg_resources/__init__.py", line 1307, in obtain
    return installer(requirement) if installer else None
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/installer.py", line 105, in _fetch_build_egg_no_warn
    raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['/nix/store/c9m6yd8fg1flz2j5r4bif1ib5j20a0cy-python3-3.12.8/bin/python3.12', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/build/tmp43y8qzec', '--quiet', 'numpy<2.0.0']' returned non-zero exit status 1.

Additional context

Broken in nixos-unstable somewhere between 3f00369 and 7cc0bff, probably because of the numpy upgrade in 5bfacde.

Upstream has pinned to numpy < 2.0.0. I have not looked into how hard it would be to update it to support numpy 2.

Metadata

  • system: "x86_64-linux"
  • host os: Linux 6.6.63, NixOS, 25.05 (Warbler), 25.05.git.61253596816c
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.24.11
  • channels(root): ""
  • nixpkgs: /etc/nixos/aij/unstable

Notify maintainers

@fpletz @natsukium


Note for maintainers: Please tag this issue in your PR.


Add a 👍 reaction to issues you find important.

@aij aij added the 0.kind: build failure A package fails to build label Jan 5, 2025
@victorhooi
Copy link

I'm still seeing this as well =(.

❯ nix run ./#build-switch
warning: Git tree '/Users/foobar/nixos-config' is dirty
Running build-switch for aarch64-darwin
Starting build...
warning: Git tree '/Users/foobar/nixos-config' is dirty
error: builder for '/nix/store/bxy857w5hvplglii7ryqj2rikcwi7bdl-urh-2.9.8.drv' failed with exit code 1;
       last 25 log lines:
       >   File "/nix/store/xch4sx19ibdl7gl9wwya4xa0gsm92d59-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/__init__.py", line 89, in _install_setup_requires
       >     _fetch_build_eggs(dist)
       >   File "/nix/store/xch4sx19ibdl7gl9wwya4xa0gsm92d59-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/__init__.py", line 94, in _fetch_build_eggs
       >     dist.fetch_build_eggs(dist.setup_requires)
       >   File "/nix/store/xch4sx19ibdl7gl9wwya4xa0gsm92d59-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/dist.py", line 664, in fetch_build_eggs
       >     return _fetch_build_eggs(self, requires)
       >            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       >   File "/nix/store/xch4sx19ibdl7gl9wwya4xa0gsm92d59-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/installer.py", line 40, in _fetch_build_eggs
       >     resolved_dists = pkg_resources.working_set.resolve(
       >                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       >   File "/nix/store/xch4sx19ibdl7gl9wwya4xa0gsm92d59-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/pkg_resources/__init__.py", line 897, in resolve
       >     dist = self._resolve_dist(
       >            ^^^^^^^^^^^^^^^^^^^
       >   File "/nix/store/xch4sx19ibdl7gl9wwya4xa0gsm92d59-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/pkg_resources/__init__.py", line 933, in _resolve_dist
       >     dist = best[req.key] = env.best_match(
       >                            ^^^^^^^^^^^^^^^
       >   File "/nix/store/xch4sx19ibdl7gl9wwya4xa0gsm92d59-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/pkg_resources/__init__.py", line 1271, in best_match
       >     return self.obtain(req, installer)
       >            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
       >   File "/nix/store/xch4sx19ibdl7gl9wwya4xa0gsm92d59-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/pkg_resources/__init__.py", line 1307, in obtain
       >     return installer(requirement) if installer else None
       >            ^^^^^^^^^^^^^^^^^^^^^^
       >   File "/nix/store/xch4sx19ibdl7gl9wwya4xa0gsm92d59-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/installer.py", line 105, in _fetch_build_egg_no_warn
       >     raise DistutilsError(str(e)) from e
       > distutils.errors.DistutilsError: Command '['/nix/store/ffxlyz7jrxxyxg70cn3h961lr91lan2j-python3-3.12.8/bin/python3.12', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/private/tmp/nix-build-urh-2.9.8.drv-0/tmpmdlvw1xq', '--quiet', 'numpy<2.0.0']' returned non-zero exit status 1.
       For full logs, run 'nix log /nix/store/bxy857w5hvplglii7ryqj2rikcwi7bdl-urh-2.9.8.drv'.
error: 1 dependencies of derivation '/nix/store/00vwzq6l5q4vkgbyp6awc0xjb6zxps3g-home-manager-applications.drv' failed to build
error: 1 dependencies of derivation '/nix/store/3vqyb5h0345kcdkxc7zw8l76j86nva0d-home-manager-fonts.drv' failed to build
error: 1 dependencies of derivation '/nix/store/jgr83xaz8hn6plfwxmirip68nsn25m02-home-manager-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/iij727in30d7nh3mlxnfhn897ndq8n98-man-paths.drv' failed to build
error: 1 dependencies of derivation '/nix/store/7gh4qsk12ihdrilhy2kz17p1k4nbq7dk-system-applications.drv' failed to build
error: 1 dependencies of derivation '/nix/store/gjap1m952lghkrqq0r3wzmymr0msrzll-urh-2.9.8-fish-completions.drv' failed to build
error: 1 dependencies of derivation '/nix/store/5lrhj6g788vgzipgkr8m0vi1i6wxbzkq-darwin-system-25.05.65cc1fa.drv' failed to build

There is an upstream issue about adding numpy 2 support:

jopohl/urh#1149

but apparently there's still issues there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build
Projects
None yet
Development

No branches or pull requests

2 participants