Source: binoculars
Version: 0.0.12-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: [email protected]
Usertags: ftbfs-20230120 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_test -- --system=custom --test-args='{interpreter} -m unittest
> discover -s tests -t {dir} -v'
> pybuild --test -i python{version} -p 3.11 --system=custom
> "--test-args={interpreter} -m unittest discover -s tests -t {dir} -v"
> I: pybuild base:240: python3.11 -m unittest discover -s tests -t
> /<<PKGBUILDDIR>> -v
> test_IO (tests.test_cfg.TestCase.test_IO) ... ok
> test_IO (tests.test_id03.TestCase.test_IO) ...
> /<<PKGBUILDDIR>>/binoculars/backends/id03.py:1177: FutureWarning: In the
> future `np.bool` will be defined as the corresponding NumPy scalar. (This
> may have returned Python scalars in past versions.
> return numpy.array(numpy.load(filename), dtype=numpy.bool)
> ERROR
> test_IO (tests.test_metadata.MetaDataTestCase.test_IO) ... expected failure
>
> ======================================================================
> ERROR: test_IO (tests.test_id03.TestCase.test_IO)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/<<PKGBUILDDIR>>/tests/test_id03.py", line 24, in setUp
> self.id03input = id03.EH2(cfg_unparsed)
> ^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/binoculars/util.py", line 744, in __init__
> self.parse_config(config)
> File "/<<PKGBUILDDIR>>/binoculars/backends/id03.py", line 909, in
> parse_config
> super(EH2, self).parse_config(config)
> File "/<<PKGBUILDDIR>>/binoculars/backends/id03.py", line 478, in
> parse_config
> self.config.maskmatrix = load_matrix(
> ^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/binoculars/backends/id03.py", line 1177, in
> load_matrix
> return numpy.array(numpy.load(filename), dtype=numpy.bool)
> ^^^^^^^^^^
> 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 'bool'. Unable to parse
> configuration option 'maskmatrix'. The error can quite likely be solved by
> modifying the option in the configuration file.
>
> ----------------------------------------------------------------------
> Ran 3 tests in 0.065s
>
> FAILED (errors=1, expected failures=1)
> ConfigFile{
> [dispatcher]
> destination = b'demo_{first}-{last}.hdf5'
> overwrite = b'true'
> type = b'local'
> [projection]
> resolution = b'0.002, 0.002, 1'
> type = b'id03:hklprojection'
> [input]
> centralpixel = b'40, 255'
> imagefolder = b'/path/to/data/images/{rUCCD[0]}/'
> pixelsize = b'0.055, 0.055'
> sdd = b'1050'
> specfile = b'/path/to/data/file.spec'
> target_weight = b'4000'
> type = b'id03:eh1'
> xmask = b'50-235'
> ymask = b'185-253,262-400'
> }
> origin = test.hdf5
> command =
> MetaBase{
> [first]
> string = string
> numpy.array = [0 1 2 3 4 5 6 7 8 9]
> list = range(0, 10)
> tuple = (0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
> }
>
> Space (3 dimensions, 1331 points, 20.8 kB) {
> Axis h (min=0.0, max=10.0, res=1.0, count=11)
> Axis k (min=0.0, max=10.0, res=1.0, count=11)
> Axis l (min=0.0, max=10.0, res=1.0, count=11)
> }
> E: pybuild pybuild:388: test: plugin custom failed with: exit code=1:
> python3.11 -m unittest discover -s tests -t /<<PKGBUILDDIR>> -v
> rm -fr -- /tmp/dh-xdg-rundir-D4gM_IpQ
> dh_auto_test: error: pybuild --test -i python{version} -p 3.11
> --system=custom "--test-args={interpreter} -m unittest discover -s tests -t
> {dir} -v" returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2023/01/20/binoculars_0.0.12-1_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230120;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230120&[email protected]&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.