Source: python-astor
Version: 0.8.1-3
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20220917 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 
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:240: /usr/bin/python3 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_astor/build/astor
> copying astor/__init__.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_astor/build/astor
> copying astor/codegen.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_astor/build/astor
> copying astor/code_gen.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_astor/build/astor
> copying astor/tree_walk.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_astor/build/astor
> copying astor/file_util.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_astor/build/astor
> copying astor/node_util.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_astor/build/astor
> copying astor/source_repr.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_astor/build/astor
> copying astor/string_repr.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_astor/build/astor
> copying astor/op_util.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_astor/build/astor
> copying astor/rtrip.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_astor/build/astor
> running egg_info
> writing astor.egg-info/PKG-INFO
> writing dependency_links to astor.egg-info/dependency_links.txt
> writing top-level names to astor.egg-info/top_level.txt
> reading manifest file 'astor.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no files found matching 'CHANGES'
> adding license file 'LICENSE'
> adding license file 'AUTHORS'
> writing manifest file 'astor.egg-info/SOURCES.txt'
> copying astor/VERSION -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_astor/build/astor
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:240: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_astor/build; 
> python3.10 -m pytest -k 'not test_convert_stdlib'
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.10.7, pytest-7.1.2, pluggy-1.0.0+repack
> rootdir: /<<PKGBUILDDIR>>
> collected 55 items / 1 deselected / 54 selected
> 
> tests/test_code_gen.py .............s.............F..................    [ 
> 85%]
> tests/test_misc.py .......s                                              
> [100%]
> 
> =================================== FAILURES 
> ===================================
> ________________________ CodegenTestCase.test_huge_int 
> _________________________
> 
> self = <tests.test_code_gen.CodegenTestCase testMethod=test_huge_int>
> 
>     def test_huge_int(self):
>         for n in (10**10000,
>                   
> 0xdfa21cd2a530ccc8c870aa60d9feb3b35deeab81c3215a96557abbd683d21f4600f38e475d87100da9a4404220eeb3bb5584e5a2b5b48ffda58530ea19104a32577d7459d91e76aa711b241050f4cc6d5327ccee254f371bcad3be56d46eb5919b73f20dbdb1177b700f00891c5bf4ed128bb90ed541b778288285bcfa28432ab5cbcb8321b6e24760e998e0daa519f093a631e44276d7dd252ce0c08c75e2ab28a7349ead779f97d0f20a6d413bf3623cd216dc35375f6366690bcc41e3b2d5465840ec7ee0dc7e3f1c101d674a0c7dbccbc3942788b111396add2f8153b46a0e4b50d66e57ee92958f1c860dd97cc0e40e32febff915343ed53573142bdf4b):
> >           self.assertEqual(astornum(n), n)
> 
> tests/test_code_gen.py:290: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> tests/test_code_gen.py:31: in astornum
>     return astorexpr(ast.Num(n=x))
> tests/test_code_gen.py:28: in astorexpr
>     return eval(astor.to_source(ast.Expression(body=x)))
> astor/code_gen.py:63: in to_source
>     generator.visit(node)
> astor/node_util.py:143: in visit
>     return visitor(node)
> astor/code_gen.py:883: in visit_Expression
>     self.visit(node.body)
> astor/node_util.py:143: in visit
>     return visitor(node)
> astor/code_gen.py:556: in visit_Constant
>     self._handle_numeric_constant(value)
> astor/code_gen.py:677: in _handle_numeric_constant
>     real = part(x.real if isinstance(x, complex) else x, imaginary=False)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> p = <[ValueError('Exceeds the limit (4300) for integer string conversion') 
> raised in repr()] int object at 0x556a03b67200>
> imaginary = False
> 
>     def part(p, imaginary):
>         # Represent infinity as 1e1000 and NaN as 1e1000-1e1000.
>         s = 'j' if imaginary else ''
>         try:
>             if math.isinf(p):
>                 if p < 0:
>                     return '-1e1000' + s
>                 return '1e1000' + s
>             if math.isnan(p):
>                 return '(1e1000%s-1e1000%s)' % (s, s)
>         except OverflowError:
>             # math.isinf will raise this when given an integer
>             # that's too large to convert to a float.
>             pass
> >       return repr(p) + s
> E       ValueError: Exceeds the limit (4300) for integer string conversion
> 
> astor/code_gen.py:675: ValueError
> =========================== short test summary info 
> ============================
> FAILED tests/test_code_gen.py::CodegenTestCase::test_huge_int - ValueError: 
> E...
> ============ 1 failed, 51 passed, 2 skipped, 1 deselected in 0.22s 
> =============
> E: pybuild pybuild:379: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_astor/build; python3.10 -m pytest -k 
> 'not test_convert_stdlib'
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.10 
> returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2022/09/17/python-astor_0.8.1-3_unstable.log

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