Bug#1028729: arpys: FTBFS: AttributeError: module 'numpy' has no attribute 'complex'
Lucas Nussbaum
lucas at debian.org
Sat Jan 14 12:37:56 GMT 2023
Source: arpys
Version: 2.0.2-3
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20230113 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> debian/rules build
> dh build --with python3 --buildsystem=pybuild
> dh_update_autotools_config -O--buildsystem=pybuild
> dh_autoreconf -O--buildsystem=pybuild
> dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:240: python3.10 setup.py config
> running config
> I: pybuild base:240: python3.11 setup.py config
> running config
> dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:240: /usr/bin/python3.10 setup.py build
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_arpys/build/arpys
> copying arpys/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_arpys/build/arpys
> copying arpys/postprocessing.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_arpys/build/arpys
> copying arpys/dataloaders.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_arpys/build/arpys
> copying arpys/fit2d.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_arpys/build/arpys
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_arpys/build/arpys/utilities
> copying arpys/utilities/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_arpys/build/arpys/utilities
> copying arpys/utilities/kolormap.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_arpys/build/arpys/utilities
> copying arpys/utilities/plotting.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_arpys/build/arpys/utilities
> copying arpys/utilities/functions.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_arpys/build/arpys/utilities
> copying arpys/utilities/constants.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_arpys/build/arpys/utilities
> running egg_info
> creating arpys.egg-info
> writing arpys.egg-info/PKG-INFO
> writing dependency_links to arpys.egg-info/dependency_links.txt
> writing requirements to arpys.egg-info/requires.txt
> writing top-level names to arpys.egg-info/top_level.txt
> writing manifest file 'arpys.egg-info/SOURCES.txt'
> reading manifest file 'arpys.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> adding license file 'LICENSE-3RD-PARTY.txt'
> adding license file 'COPYING'
> adding license file 'COPYING.LESSER'
> writing manifest file 'arpys.egg-info/SOURCES.txt'
> /usr/lib/python3/dist-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'arpys.utilities.cmaps' as data is deprecated, please list it in `packages`.
> !!
>
>
> ############################
> # Package would be ignored #
> ############################
> Python recognizes 'arpys.utilities.cmaps' as an importable package,
> but it is not listed in the `packages` configuration of setuptools.
>
> 'arpys.utilities.cmaps' has been automatically added to the distribution only
> because it may contain data files, but this behavior is likely to change
> in future versions of setuptools (and therefore is considered deprecated).
>
> Please make sure that 'arpys.utilities.cmaps' is included as a package by using
> the `packages` configuration field or the proper discovery methods
> (for example by using `find_namespace_packages(...)`/`find_namespace:`
> instead of `find_packages(...)`/`find:`).
>
> You can read more about "package discovery" and "data files" on setuptools
> documentation page.
>
>
> !!
>
> check.warn(importable)
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_arpys/build/arpys/utilities/cmaps
> copying arpys/utilities/cmaps/hanin.dat -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_arpys/build/arpys/utilities/cmaps
> copying arpys/utilities/cmaps/kocean_red.dat -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_arpys/build/arpys/utilities/cmaps
> copying arpys/utilities/cmaps/mslice.dat -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_arpys/build/arpys/utilities/cmaps
> copying arpys/utilities/cmaps/ocean_k.dat -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_arpys/build/arpys/utilities/cmaps
> copying arpys/utilities/cmaps/ocean_k_tail.dat -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_arpys/build/arpys/utilities/cmaps
> copying arpys/utilities/cmaps/ocean_k_tail_rgb.dat -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_arpys/build/arpys/utilities/cmaps
> copying arpys/utilities/cmaps/ocean_r.dat -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_arpys/build/arpys/utilities/cmaps
> copying arpys/utilities/cmaps/ocean_red_tail.dat -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_arpys/build/arpys/utilities/cmaps
> copying arpys/utilities/cmaps/ocean_red_tail_rgb.dat -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_arpys/build/arpys/utilities/cmaps
> copying arpys/utilities/cmaps/rainbow_light.dat -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_arpys/build/arpys/utilities/cmaps
> copying arpys/utilities/cmaps/unknown.dat -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_arpys/build/arpys/utilities/cmaps
> I: pybuild base:240: /usr/bin/python3 setup.py build
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_arpys/build/arpys
> copying arpys/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_arpys/build/arpys
> copying arpys/postprocessing.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_arpys/build/arpys
> copying arpys/dataloaders.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_arpys/build/arpys
> copying arpys/fit2d.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_arpys/build/arpys
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_arpys/build/arpys/utilities
> copying arpys/utilities/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_arpys/build/arpys/utilities
> copying arpys/utilities/kolormap.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_arpys/build/arpys/utilities
> copying arpys/utilities/plotting.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_arpys/build/arpys/utilities
> copying arpys/utilities/functions.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_arpys/build/arpys/utilities
> copying arpys/utilities/constants.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_arpys/build/arpys/utilities
> running egg_info
> writing arpys.egg-info/PKG-INFO
> writing dependency_links to arpys.egg-info/dependency_links.txt
> writing requirements to arpys.egg-info/requires.txt
> writing top-level names to arpys.egg-info/top_level.txt
> reading manifest file 'arpys.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> adding license file 'LICENSE-3RD-PARTY.txt'
> adding license file 'COPYING'
> adding license file 'COPYING.LESSER'
> writing manifest file 'arpys.egg-info/SOURCES.txt'
> /usr/lib/python3/dist-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'arpys.utilities.cmaps' as data is deprecated, please list it in `packages`.
> !!
>
>
> ############################
> # Package would be ignored #
> ############################
> Python recognizes 'arpys.utilities.cmaps' as an importable package,
> but it is not listed in the `packages` configuration of setuptools.
>
> 'arpys.utilities.cmaps' has been automatically added to the distribution only
> because it may contain data files, but this behavior is likely to change
> in future versions of setuptools (and therefore is considered deprecated).
>
> Please make sure that 'arpys.utilities.cmaps' is included as a package by using
> the `packages` configuration field or the proper discovery methods
> (for example by using `find_namespace_packages(...)`/`find_namespace:`
> instead of `find_packages(...)`/`find:`).
>
> You can read more about "package discovery" and "data files" on setuptools
> documentation page.
>
>
> !!
>
> check.warn(importable)
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_arpys/build/arpys/utilities/cmaps
> copying arpys/utilities/cmaps/hanin.dat -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_arpys/build/arpys/utilities/cmaps
> copying arpys/utilities/cmaps/kocean_red.dat -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_arpys/build/arpys/utilities/cmaps
> copying arpys/utilities/cmaps/mslice.dat -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_arpys/build/arpys/utilities/cmaps
> copying arpys/utilities/cmaps/ocean_k.dat -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_arpys/build/arpys/utilities/cmaps
> copying arpys/utilities/cmaps/ocean_k_tail.dat -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_arpys/build/arpys/utilities/cmaps
> copying arpys/utilities/cmaps/ocean_k_tail_rgb.dat -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_arpys/build/arpys/utilities/cmaps
> copying arpys/utilities/cmaps/ocean_r.dat -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_arpys/build/arpys/utilities/cmaps
> copying arpys/utilities/cmaps/ocean_red_tail.dat -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_arpys/build/arpys/utilities/cmaps
> copying arpys/utilities/cmaps/ocean_red_tail_rgb.dat -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_arpys/build/arpys/utilities/cmaps
> copying arpys/utilities/cmaps/rainbow_light.dat -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_arpys/build/arpys/utilities/cmaps
> copying arpys/utilities/cmaps/unknown.dat -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_arpys/build/arpys/utilities/cmaps
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:240: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_arpys/build; python3.10 -m unittest discover -v
> arpys (unittest.loader._FailedTest) ... ERROR
>
> ======================================================================
> ERROR: arpys (unittest.loader._FailedTest)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: arpys
> Traceback (most recent call last):
> File "/usr/lib/python3.10/unittest/loader.py", line 470, in _find_test_path
> package = self._get_module_from_name(name)
> File "/usr/lib/python3.10/unittest/loader.py", line 377, in _get_module_from_name
> __import__(name)
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_arpys/build/arpys/__init__.py", line 3, in <module>
> import arpys.dataloaders as dataloader
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_arpys/build/arpys/dataloaders.py", line 64, in <module>
> from igor import binarywave
> File "/usr/lib/python3/dist-packages/igor/binarywave.py", line 110, in <module>
> 1:_numpy.complex, # NT_CMPLX, makes number complex.
> File "/usr/lib/python3/dist-packages/numpy/__init__.py", line 284, in __getattr__
> raise AttributeError("module {!r} has no attribute "
> AttributeError: module 'numpy' has no attribute 'complex'
>
>
> ----------------------------------------------------------------------
> Ran 1 test in 0.000s
>
> FAILED (errors=1)
> E: pybuild pybuild:388: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_arpys/build; python3.10 -m unittest discover -v
> I: pybuild base:240: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_arpys/build; python3.11 -m unittest discover -v
> arpys (unittest.loader._FailedTest.arpys) ... ERROR
>
> ======================================================================
> ERROR: arpys (unittest.loader._FailedTest.arpys)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: arpys
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 440, in _find_test_path
> package = self._get_module_from_name(name)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3.11/unittest/loader.py", line 350, in _get_module_from_name
> __import__(name)
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_arpys/build/arpys/__init__.py", line 3, in <module>
> import arpys.dataloaders as dataloader
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_arpys/build/arpys/dataloaders.py", line 64, in <module>
> from igor import binarywave
> File "/usr/lib/python3/dist-packages/igor/binarywave.py", line 110, in <module>
> 1:_numpy.complex, # NT_CMPLX, makes number complex.
> ^^^^^^^^^^^^^^
> File "/usr/lib/python3/dist-packages/numpy/__init__.py", line 284, in __getattr__
> raise AttributeError("module {!r} has no attribute "
> AttributeError: module 'numpy' has no attribute 'complex'
>
>
> ----------------------------------------------------------------------
> Ran 1 test in 0.000s
>
> FAILED (errors=1)
> E: pybuild pybuild:388: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_arpys/build; python3.11 -m unittest discover -v
> dh_auto_test: error: pybuild --test -i python{version} -p "3.10 3.11" returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2023/01/13/arpys_2.0.2-3_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230113;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230113&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
More information about the debian-science-maintainers
mailing list