Bug#1028825: python-igor: FTBFS: AttributeError: module 'numpy' has no attribute 'complex'
Lucas Nussbaum
lucas at debian.org
Sat Jan 14 12:43:47 GMT 2023
Source: python-igor
Version: 0.3-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
> I: pybuild base:240: python3.11 setup.py config
> dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:240: /usr/bin/python3.10 setup.py build
> I: pybuild base:240: /usr/bin/python3 setup.py build
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:240: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_igor/build; python3.10 -m unittest discover -v
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_igor/build/igor/util.py:54: SyntaxWarning: "is" with a literal. Did you mean "=="?
> elif spaces is 1:
> igor.record (unittest.loader._FailedTest) ... ERROR
>
> ======================================================================
> ERROR: igor.record (unittest.loader._FailedTest)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: igor.record
> 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_igor/build/igor/record/__init__.py", line 22, in <module>
> from .variables import VariablesRecord
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_igor/build/igor/record/variables.py", line 21, in <module>
> from ..binarywave import TYPE_TABLE as _TYPE_TABLE
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_igor/build/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.001s
>
> FAILED (errors=1)
> E: pybuild pybuild:388: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_igor/build; python3.10 -m unittest discover -v
> I: pybuild base:240: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_igor/build; python3.11 -m unittest discover -v
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_igor/build/igor/util.py:54: SyntaxWarning: "is" with a literal. Did you mean "=="?
> elif spaces is 1:
> igor.record (unittest.loader._FailedTest.igor.record) ... ERROR
>
> ======================================================================
> ERROR: igor.record (unittest.loader._FailedTest.igor.record)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: igor.record
> 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_igor/build/igor/record/__init__.py", line 22, in <module>
> from .variables import VariablesRecord
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_igor/build/igor/record/variables.py", line 21, in <module>
> from ..binarywave import TYPE_TABLE as _TYPE_TABLE
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_igor/build/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_igor/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/python-igor_0.3-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