[Debian-pan-maintainers] Bug#1028707: python-mrcfile: FTBFS: AssertionError: ValueError not raised

Lucas Nussbaum lucas at debian.org
Sat Jan 14 12:44:14 GMT 2023


Source: python-mrcfile
Version: 1.4.3-2
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):
> make[2]: Entering directory '/<<PKGBUILDDIR>>/docs'
> Running Sphinx v5.3.0
> making output directory... done
> loading intersphinx inventory from https://docs.python.org/3.8/objects.inv...
> loading intersphinx inventory from https://numpy.org/doc/stable/objects.inv...
> building [mo]: targets for 0 po files that are out of date
> building [man]: all manpages
> updating environment: [new config] 4 added, 0 changed, 0 removed
> reading sources... [ 25%] index
> reading sources... [ 50%] readme
> reading sources... [ 75%] source/mrcfile
> reading sources... [100%] usage_guide
> 
> looking for now-outdated files... none found
> pickling environment... done
> checking consistency... done
> writing... mrcfile.1 { readme usage_guide source/mrcfile } done
> build succeeded.
> 
> The manual pages are in _build/man.
> Running Sphinx v5.3.0
> making output directory... done
> loading pickled environment... done
> building [mo]: targets for 0 po files that are out of date
> building [html]: targets for 4 source files that are out of date
> updating environment: 0 added, 0 changed, 0 removed
> looking for now-outdated files... none found
> preparing documents... done
> writing output... [ 25%] index
> writing output... [ 50%] readme
> writing output... [ 75%] source/mrcfile
> writing output... [100%] usage_guide
> 
> generating indices... genindex py-modindex done
> writing additional pages... search done
> copying static files... done
> copying extra files... done
> dumping search index in English (code: en)... done
> dumping object inventory... done
> build succeeded.
> 
> The HTML pages are in _build/html.
> make[2]: Leaving directory '/<<PKGBUILDDIR>>/docs'
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:240: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mrcfile/build; tox -c /<<PKGBUILDDIR>>/tox.ini --sitepackages -e py310 
> GLOB sdist-make: /<<PKGBUILDDIR>>/setup.py
> py310 create: /<<PKGBUILDDIR>>/.tox/py310
> py310 inst: /<<PKGBUILDDIR>>/.tox/.tmp/package/1/mrcfile-1.4.3.zip
> WARNING: Discarding $PYTHONPATH from environment, to override specify PYTHONPATH in 'passenv' in your configuration.
> WARNING: Discarding $PYTHONPATH from environment, to override specify PYTHONPATH in 'passenv' in your configuration.
> py310 installed: alabaster==0.7.12,Babel==2.10.3,certifi==2022.9.24,chardet==5.1.0,charset-normalizer==3.0.1,distlib==0.3.6,docutils==0.17.1,filelock==3.9.0,idna==3.3,imagesize==1.4.1,Jinja2==3.0.3,MarkupSafe==2.1.1,mrcfile @ file:///<<PKGBUILDDIR>>/.tox/.tmp/package/1/mrcfile-1.4.3.zip,numpy==1.24.1,packaging==22.0,platformdirs==2.6.0,pluggy==1.0.0+repack,py==1.11.0,Pygments==2.14.0,pytz==2022.7,requests==2.28.1,roman==3.3,six==1.16.0,snowballstemmer==2.2.0,Sphinx==5.3.0,sphinx-rtd-theme==1.2.0rc1,tox==3.28.0,urllib3==1.26.12,virtualenv==20.17.1+ds
> py310 run-test-pre: PYTHONHASHSEED='1646220704'
> py310 run-test: commands[0] | python -m unittest tests
> ..................F........F................................................................................................................................F........F..........................................................................................................................................F......................................................................F.................................................................................F........F...................................................................................................................F...............................................................................................................................................................................................................
> ======================================================================
> FAIL: test_cannot_edit_extended_header_in_read_only_mode (tests.test_bzip2mrcfile.Bzip2MrcFileTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_mrcfile.py", line 219, in test_cannot_edit_extended_header_in_read_only_mode
>     with self.assertRaisesRegex(ValueError, 'read-only'):
> AssertionError: ValueError not raised
> 
> ======================================================================
> FAIL: test_data_is_not_copied_unnecessarily (tests.test_bzip2mrcfile.Bzip2MrcFileTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_mrcobject.py", line 341, in test_data_is_not_copied_unnecessarily
>     assert self.mrcobject.data is data
> AssertionError
> 
> ======================================================================
> FAIL: test_cannot_edit_extended_header_in_read_only_mode (tests.test_gzipmrcfile.GzipMrcFileTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_mrcfile.py", line 219, in test_cannot_edit_extended_header_in_read_only_mode
>     with self.assertRaisesRegex(ValueError, 'read-only'):
> AssertionError: ValueError not raised
> 
> ======================================================================
> FAIL: test_data_is_not_copied_unnecessarily (tests.test_gzipmrcfile.GzipMrcFileTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_mrcobject.py", line 341, in test_data_is_not_copied_unnecessarily
>     assert self.mrcobject.data is data
> AssertionError
> 
> ======================================================================
> FAIL: test_data_is_not_copied_unnecessarily (tests.test_mrcobject.MrcObjectTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_mrcobject.py", line 341, in test_data_is_not_copied_unnecessarily
>     assert self.mrcobject.data is data
> AssertionError
> 
> ======================================================================
> FAIL: test_data_is_not_copied_unnecessarily (tests.test_mrcinterpreter.MrcInterpreterTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_mrcobject.py", line 341, in test_data_is_not_copied_unnecessarily
>     assert self.mrcobject.data is data
> AssertionError
> 
> ======================================================================
> FAIL: test_cannot_edit_extended_header_in_read_only_mode (tests.test_mrcfile.MrcFileTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_mrcfile.py", line 219, in test_cannot_edit_extended_header_in_read_only_mode
>     with self.assertRaisesRegex(ValueError, 'read-only'):
> AssertionError: ValueError not raised
> 
> ======================================================================
> FAIL: test_data_is_not_copied_unnecessarily (tests.test_mrcfile.MrcFileTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_mrcobject.py", line 341, in test_data_is_not_copied_unnecessarily
>     assert self.mrcobject.data is data
> AssertionError
> 
> ======================================================================
> FAIL: test_cannot_edit_extended_header_in_read_only_mode (tests.test_mrcmemmap.MrcMemmapTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_mrcfile.py", line 219, in test_cannot_edit_extended_header_in_read_only_mode
>     with self.assertRaisesRegex(ValueError, 'read-only'):
> AssertionError: ValueError not raised
> 
> ----------------------------------------------------------------------
> Ran 790 tests in 16.077s
> 
> FAILED (failures=9)
> ERROR: InvocationError for command /<<PKGBUILDDIR>>/.tox/py310/bin/python -m unittest tests (exited with code 1)
> ___________________________________ summary ____________________________________
> ERROR:   py310: commands failed
> E: pybuild pybuild:388: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_mrcfile/build; tox -c /<<PKGBUILDDIR>>/tox.ini --sitepackages -e py310 
> I: pybuild base:240: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mrcfile/build; tox -c /<<PKGBUILDDIR>>/tox.ini --sitepackages -e py311 
> GLOB sdist-make: /<<PKGBUILDDIR>>/setup.py
> py311 create: /<<PKGBUILDDIR>>/.tox/py311
> py311 inst: /<<PKGBUILDDIR>>/.tox/.tmp/package/1/mrcfile-1.4.3.zip
> WARNING: Discarding $PYTHONPATH from environment, to override specify PYTHONPATH in 'passenv' in your configuration.
> WARNING: Discarding $PYTHONPATH from environment, to override specify PYTHONPATH in 'passenv' in your configuration.
> py311 installed: alabaster==0.7.12,Babel==2.10.3,certifi==2022.9.24,chardet==5.1.0,charset-normalizer==3.0.1,distlib==0.3.6,docutils==0.17.1,filelock==3.9.0,idna==3.3,imagesize==1.4.1,Jinja2==3.0.3,MarkupSafe==2.1.1,mrcfile @ file:///<<PKGBUILDDIR>>/.tox/.tmp/package/1/mrcfile-1.4.3.zip,numpy==1.24.1,packaging==22.0,platformdirs==2.6.0,pluggy==1.0.0+repack,py==1.11.0,Pygments==2.14.0,pytz==2022.7,requests==2.28.1,roman==3.3,six==1.16.0,snowballstemmer==2.2.0,Sphinx==5.3.0,sphinx-rtd-theme==1.2.0rc1,tox==3.28.0,urllib3==1.26.12,virtualenv==20.17.1+ds
> py311 run-test-pre: PYTHONHASHSEED='1409580729'
> py311 run-test: commands[0] | python -m unittest tests
> ..................F........F................................................................................................................................F........F..........................................................................................................................................F......................................................................F.................................................................................F........F...................................................................................................................F...............................................................................................................................................................................................................
> ======================================================================
> FAIL: test_cannot_edit_extended_header_in_read_only_mode (tests.test_bzip2mrcfile.Bzip2MrcFileTest.test_cannot_edit_extended_header_in_read_only_mode)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_mrcfile.py", line 219, in test_cannot_edit_extended_header_in_read_only_mode
>     with self.assertRaisesRegex(ValueError, 'read-only'):
> AssertionError: ValueError not raised
> 
> ======================================================================
> FAIL: test_data_is_not_copied_unnecessarily (tests.test_bzip2mrcfile.Bzip2MrcFileTest.test_data_is_not_copied_unnecessarily)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_mrcobject.py", line 341, in test_data_is_not_copied_unnecessarily
>     assert self.mrcobject.data is data
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
> AssertionError
> 
> ======================================================================
> FAIL: test_cannot_edit_extended_header_in_read_only_mode (tests.test_gzipmrcfile.GzipMrcFileTest.test_cannot_edit_extended_header_in_read_only_mode)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_mrcfile.py", line 219, in test_cannot_edit_extended_header_in_read_only_mode
>     with self.assertRaisesRegex(ValueError, 'read-only'):
> AssertionError: ValueError not raised
> 
> ======================================================================
> FAIL: test_data_is_not_copied_unnecessarily (tests.test_gzipmrcfile.GzipMrcFileTest.test_data_is_not_copied_unnecessarily)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_mrcobject.py", line 341, in test_data_is_not_copied_unnecessarily
>     assert self.mrcobject.data is data
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
> AssertionError
> 
> ======================================================================
> FAIL: test_data_is_not_copied_unnecessarily (tests.test_mrcobject.MrcObjectTest.test_data_is_not_copied_unnecessarily)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_mrcobject.py", line 341, in test_data_is_not_copied_unnecessarily
>     assert self.mrcobject.data is data
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
> AssertionError
> 
> ======================================================================
> FAIL: test_data_is_not_copied_unnecessarily (tests.test_mrcinterpreter.MrcInterpreterTest.test_data_is_not_copied_unnecessarily)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_mrcobject.py", line 341, in test_data_is_not_copied_unnecessarily
>     assert self.mrcobject.data is data
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
> AssertionError
> 
> ======================================================================
> FAIL: test_cannot_edit_extended_header_in_read_only_mode (tests.test_mrcfile.MrcFileTest.test_cannot_edit_extended_header_in_read_only_mode)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_mrcfile.py", line 219, in test_cannot_edit_extended_header_in_read_only_mode
>     with self.assertRaisesRegex(ValueError, 'read-only'):
> AssertionError: ValueError not raised
> 
> ======================================================================
> FAIL: test_data_is_not_copied_unnecessarily (tests.test_mrcfile.MrcFileTest.test_data_is_not_copied_unnecessarily)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_mrcobject.py", line 341, in test_data_is_not_copied_unnecessarily
>     assert self.mrcobject.data is data
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
> AssertionError
> 
> ======================================================================
> FAIL: test_cannot_edit_extended_header_in_read_only_mode (tests.test_mrcmemmap.MrcMemmapTest.test_cannot_edit_extended_header_in_read_only_mode)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_mrcfile.py", line 219, in test_cannot_edit_extended_header_in_read_only_mode
>     with self.assertRaisesRegex(ValueError, 'read-only'):
> AssertionError: ValueError not raised
> 
> ----------------------------------------------------------------------
> Ran 790 tests in 15.219s
> 
> FAILED (failures=9)
> ERROR: InvocationError for command /<<PKGBUILDDIR>>/.tox/py311/bin/python -m unittest tests (exited with code 1)
> ___________________________________ summary ____________________________________
> ERROR:   py311: commands failed
> E: pybuild pybuild:388: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_mrcfile/build; tox -c /<<PKGBUILDDIR>>/tox.ini --sitepackages -e py311 
> dh_auto_test: error: pybuild --test --test-tox -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-mrcfile_1.4.3-2_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-pan-maintainers mailing list