Bug#1026513: python-jsondiff: FTBFS: TypeError: The only supported seed types are: None,

Lucas Nussbaum lucas at debian.org
Tue Dec 20 16:49:34 GMT 2022


Source: python-jsondiff
Version: 1.3.1-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20221220 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.11 setup.py config 
> running config
> I: pybuild base:240: python3.10 setup.py config 
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:240: /usr/bin/python3.11 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_jsondiff/build/jsondiff
> copying jsondiff/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_jsondiff/build/jsondiff
> copying jsondiff/cli.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_jsondiff/build/jsondiff
> copying jsondiff/symbols.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_jsondiff/build/jsondiff
> I: pybuild base:240: /usr/bin/python3 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_jsondiff/build/jsondiff
> copying jsondiff/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_jsondiff/build/jsondiff
> copying jsondiff/cli.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_jsondiff/build/jsondiff
> copying jsondiff/symbols.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_jsondiff/build/jsondiff
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:240: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_jsondiff/build; python3.11 -m unittest discover -v 
> test_a (tests.JsonDiffTests.test_a) ... ok
> test_compact_syntax (tests.JsonDiffTests.test_compact_syntax) ... ERROR
> test_dump (tests.JsonDiffTests.test_dump) ... ERROR
> test_explicit_syntax (tests.JsonDiffTests.test_explicit_syntax) ... ERROR
> test_long_arrays (tests.JsonDiffTests.test_long_arrays) ... ok
> test_marshal (tests.JsonDiffTests.test_marshal) ... ok
> test_symmetric_syntax (tests.JsonDiffTests.test_symmetric_syntax) ... ERROR
> 
> ======================================================================
> ERROR: test_compact_syntax (tests.JsonDiffTests.test_compact_syntax)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/nose_random/__init__.py", line 62, in randomized_test
>     rng = Random(rseed)
>           ^^^^^^^^^^^^^
>   File "/usr/lib/python3.11/random.py", line 125, in __init__
>     self.seed(x)
>   File "/usr/lib/python3.11/random.py", line 160, in seed
>     raise TypeError('The only supported seed types are: None,\n'
> TypeError: The only supported seed types are: None,
> int, float, str, bytes, and bytearray.
> 
> ======================================================================
> ERROR: test_dump (tests.JsonDiffTests.test_dump)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/nose_random/__init__.py", line 62, in randomized_test
>     rng = Random(rseed)
>           ^^^^^^^^^^^^^
>   File "/usr/lib/python3.11/random.py", line 125, in __init__
>     self.seed(x)
>   File "/usr/lib/python3.11/random.py", line 160, in seed
>     raise TypeError('The only supported seed types are: None,\n'
> TypeError: The only supported seed types are: None,
> int, float, str, bytes, and bytearray.
> 
> ======================================================================
> ERROR: test_explicit_syntax (tests.JsonDiffTests.test_explicit_syntax)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/nose_random/__init__.py", line 62, in randomized_test
>     rng = Random(rseed)
>           ^^^^^^^^^^^^^
>   File "/usr/lib/python3.11/random.py", line 125, in __init__
>     self.seed(x)
>   File "/usr/lib/python3.11/random.py", line 160, in seed
>     raise TypeError('The only supported seed types are: None,\n'
> TypeError: The only supported seed types are: None,
> int, float, str, bytes, and bytearray.
> 
> ======================================================================
> ERROR: test_symmetric_syntax (tests.JsonDiffTests.test_symmetric_syntax)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/nose_random/__init__.py", line 62, in randomized_test
>     rng = Random(rseed)
>           ^^^^^^^^^^^^^
>   File "/usr/lib/python3.11/random.py", line 125, in __init__
>     self.seed(x)
>   File "/usr/lib/python3.11/random.py", line 160, in seed
>     raise TypeError('The only supported seed types are: None,\n'
> TypeError: The only supported seed types are: None,
> int, float, str, bytes, and bytearray.
> 
> ----------------------------------------------------------------------
> Ran 7 tests in 0.023s
> 
> FAILED (errors=4)
> E: pybuild pybuild:386: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_jsondiff/build; python3.11 -m unittest discover -v 
> I: pybuild base:240: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_jsondiff/build; python3.10 -m unittest discover -v 
> test_a (tests.JsonDiffTests) ... ok
> test_compact_syntax (tests.JsonDiffTests) ... /usr/lib/python3.10/random.py:125: DeprecationWarning: Seeding based on hashing is deprecated
> since Python 3.9 and will be removed in a subsequent version. The only 
> supported seed types are: None, int, float, str, bytes, and bytearray.
>   self.seed(x)
> ok
> test_dump (tests.JsonDiffTests) ... ok
> test_explicit_syntax (tests.JsonDiffTests) ... ok
> test_long_arrays (tests.JsonDiffTests) ... ok
> test_marshal (tests.JsonDiffTests) ... ok
> test_symmetric_syntax (tests.JsonDiffTests) ... ok
> 
> ----------------------------------------------------------------------
> Ran 7 tests in 0.041s
> 
> OK
> dh_auto_test: error: pybuild --test -i python{version} -p "3.11 3.10" returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2022/12/20/python-jsondiff_1.3.1-2_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20221220;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20221220&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