Source: cerealizer
Version: 0.8.1-4
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@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):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> PYBUILD_SYSTEM=custom \
> PYBUILD_TEST_ARGS="{interpreter} test/regtest.py" dh_auto_test
> dh_auto_test: warning: Compatibility levels before 10 are deprecated (level 7 
> in use)
> I: pybuild base:240: python3.11 test/regtest.py
> /<<PKGBUILDDIR>>/test/regtest.py:13: DeprecationWarning: the imp module is 
> deprecated in favour of importlib and slated for removal in Python 3.12; see 
> the module's documentation for alternative uses
>   import imp
> .............................E..........EE...E
> ======================================================================
> ERROR: test_obj_slot (__main__.TestBasicType.test_obj_slot)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/test/regtest.py", line 172, in test_obj_slot
>     self.loads_dumps_and_compare(o)
>   File "/<<PKGBUILDDIR>>/test/regtest.py", line 20, in loads_dumps_and_compare
>     obj2 = cerealizer.loads(cerealizer.dumps(obj1))
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/cerealizer/__init__.py", line 
> 602, in loads
>     return Dumper().undump(BytesIO(string))
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/cerealizer/__init__.py", line 
> 174, in undump
>     for obj in self.id2obj: _HANDLERS_[obj.__class__].undump_data(obj, self, 
> s)
>                             
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/cerealizer/__init__.py", line 
> 432, in undump_data
>     for slot in self.Class_slots: setattr(obj, slot, state[slot])
>                                                      ~~~~~^^^^^^
> TypeError: tuple indices must be integers or slices, not str
> 
> ======================================================================
> ERROR: test_getstate_hacked (__main__.TestSecurity.test_getstate_hacked)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/test/regtest.py", line 274, in test_getstate_hacked
>     cerealizer.loads(cerealizer.dumps(o))
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/cerealizer/__init__.py", line 
> 602, in loads
>     return Dumper().undump(BytesIO(string))
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/cerealizer/__init__.py", line 
> 174, in undump
>     for obj in self.id2obj: _HANDLERS_[obj.__class__].undump_data(obj, self, 
> s)
>                             
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/cerealizer/__init__.py", line 
> 406, in undump_data
>     else:                   obj.__dict__ =           dumper.undump_ref(s)
>                             ^^^^^^^^^^^^
> TypeError: __dict__ must be set to a dictionary, not a 'NoneType'
> 
> ======================================================================
> ERROR: test_new_hacked (__main__.TestSecurity.test_new_hacked)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/test/regtest.py", line 281, in test_new_hacked
>     cerealizer.loads(cerealizer.dumps(o))
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/cerealizer/__init__.py", line 
> 602, in loads
>     return Dumper().undump(BytesIO(string))
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/cerealizer/__init__.py", line 
> 174, in undump
>     for obj in self.id2obj: _HANDLERS_[obj.__class__].undump_data(obj, self, 
> s)
>                             
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/cerealizer/__init__.py", line 
> 406, in undump_data
>     else:                   obj.__dict__ =           dumper.undump_ref(s)
>                             ^^^^^^^^^^^^
> TypeError: __dict__ must be set to a dictionary, not a 'NoneType'
> 
> ======================================================================
> ERROR: test_setstate_hacked (__main__.TestSecurity.test_setstate_hacked)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/test/regtest.py", line 267, in test_setstate_hacked
>     cerealizer.loads(cerealizer.dumps(o))
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/cerealizer/__init__.py", line 
> 602, in loads
>     return Dumper().undump(BytesIO(string))
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/cerealizer/__init__.py", line 
> 174, in undump
>     for obj in self.id2obj: _HANDLERS_[obj.__class__].undump_data(obj, self, 
> s)
>                             
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/cerealizer/__init__.py", line 
> 406, in undump_data
>     else:                   obj.__dict__ =           dumper.undump_ref(s)
>                             ^^^^^^^^^^^^
> TypeError: __dict__ must be set to a dictionary, not a 'NoneType'
> 
> ----------------------------------------------------------------------
> Ran 46 tests in 0.009s
> 
> FAILED (errors=4)
> E: pybuild pybuild:386: test: plugin custom failed with: exit code=1: 
> python3.11 test/regtest.py
> I: pybuild base:240: python3.10 test/regtest.py
> /<<PKGBUILDDIR>>/test/regtest.py:13: DeprecationWarning: the imp module is 
> deprecated in favour of importlib and slated for removal in Python 3.12; see 
> the module's documentation for alternative uses
>   import imp
> ..............................................
> ----------------------------------------------------------------------
> Ran 46 tests in 0.005s
> 
> 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/cerealizer_0.8.1-4_unstable.log

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

Reply via email to