[Python-modules-team] Bug#902762: py-ubjson FTBFS with Python 3.7: NameError: name 'TYPE_INT8' is not defined

Adrian Bunk bunk at debian.org
Sat Jun 30 16:02:33 BST 2018


Source: py-ubjson
Version: 0.8.5-2
Severity: serious

https://buildd.debian.org/status/package.php?p=py-ubjson&suite=sid

...
======================================================================
ERROR: test (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test
Traceback (most recent call last):
  File "/usr/lib/python3.7/unittest/loader.py", line 434, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python3.7/unittest/loader.py", line 375, in _get_module_from_name
    __import__(name)
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_ubjson/build/test/test.py", line 24, in <module>
    from ubjson import dump as ubjdump, dumpb as ubjdumpb, loadb as ubjloadb, EncoderException, DecoderException
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_ubjson/build/ubjson/__init__.py", line 29, in <module>
    from .encoder import dump, dumpb, EncoderException  # noqa
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_ubjson/build/ubjson/encoder.py", line 33, in <module>
    __SMALL_INTS_ENCODED = {i: TYPE_INT8 + pack('>b', i) for i in range(-128, 128)}
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_ubjson/build/ubjson/encoder.py", line 33, in <dictcomp>
    __SMALL_INTS_ENCODED = {i: TYPE_INT8 + pack('>b', i) for i in range(-128, 128)}
NameError: name 'TYPE_INT8' is not defined


----------------------------------------------------------------------
Ran 1 test in 0.000s

FAILED (errors=1)
E: pybuild pybuild:336: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_ubjson/build; python3.7 -m unittest discover -v test/
dh_auto_test: pybuild --test -i python{version} -p "3.7 3.6" returned exit code 13
make: *** [debian/rules:7: build-arch] Error 25



More information about the Python-modules-team mailing list