[Python-modules-team] Bug#972377: pyasn FTBFS: FileNotFoundError in tests

Adrian Bunk bunk at debian.org
Sat Oct 17 11:25:31 BST 2020


Source: pyasn
Version: 1.6.1-1
Severity: serious
Tags: ftbfs

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

...
I: pybuild base:217: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build; python3.8 -m nose -v tests
Checks compatibility of PyASN 1.2 results with current pyasn for all 2014 ipasn dbs . ... SKIPPING - Python 2 or PyASN 1.2 not present ... ok
Failure: FileNotFoundError ([Errno 2] No such file or directory: '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build/tests/../data/ipasn_20140513.dat.gz') ... ERROR
Tests pyasn.mrtx.parse_mrt_file() - converts a full (TD1) RIB file, and compares ... SKIPPING - full dump doesn't exist.ok
Tests pyasn.mrtx.parse_mrt_file() - converts a full (TD2) RIB file, and compares ... SKIPPING - full dump doesn't exist.ok
Tests pyasn.mrtx.parse_mrt_file() - converts a full (TD2) RIB file with IPv6; ... SKIPPING - full dump doesn't exist.ok
Tests pyasn.mrtx internal classes by converting start of an RIB6 TD2 file (IPv6) ... ERROR
Tests pyasn.mrtx internal classes by converting start of an RIB TD1 file ... ERROR
Tests pyasn.mrtx internal classes by converting start of an RIB TD2 file ... ERROR
Tests pyasn.mrtx.parse_mrt_file() with repeated prefixes causing errros (bug #39) ... SKIPPING - full dump doesn't exist.ok
Tests pyasn.mrtx.parse_mrt_file() with routeviews WIDE archive TD1 (bug #42) ... SKIPPING - full dump doesn't exist.ok
Tests pyasn.mrtx.parse_mrt_file() with skip_record_on_error set to True ... ERROR
Tests pyasn.mrtx.parse_mrt_file() with skip_record_on_error set to default(False); ... ERROR
Failure: FileNotFoundError ([Errno 2] No such file or directory: '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build/tests/../data/ipasn_20140513.dat.gz') ... ERROR

======================================================================
ERROR: Failure: FileNotFoundError ([Errno 2] No such file or directory: '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build/tests/../data/ipasn_20140513.dat.gz')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/usr/lib/python3/dist-packages/nose/loader.py", line 416, in loadTestsFromName
    module = self.importer.importFromPath(
  File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/lib/python3.8/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/usr/lib/python3.8/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 702, in _load
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build/tests/test_comparative.py", line 39, in <module>
    class TestCorrectness(TestCase):
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build/tests/test_comparative.py", line 40, in TestCorrectness
    asndb = pyasn.pyasn(IPASN_DB_PATH)
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build/pyasn/__init__.py", line 64, in __init__
    f = gzip.open(ipasn_file, 'rt')  # Py2.6 doesn't support 'with' for gzip
  File "/usr/lib/python3.8/gzip.py", line 58, in open
    binary_file = GzipFile(filename, gz_mode, compresslevel)
  File "/usr/lib/python3.8/gzip.py", line 173, in __init__
    fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build/tests/../data/ipasn_20140513.dat.gz'

======================================================================
ERROR: Tests pyasn.mrtx internal classes by converting start of an RIB6 TD2 file (IPv6)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build/tests/test_mrtx.py", line 309, in test_mrt6_table_dump_v2
    f = BZ2File(RIB6_TD2_PARTDUMP, 'rb')
  File "/usr/lib/python3.8/bz2.py", line 96, in __init__
    self._fp = _builtin_open(filename, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build/tests/../data/rib6.20151101.0600_firstMB.bz2'

======================================================================
ERROR: Tests pyasn.mrtx internal classes by converting start of an RIB TD1 file
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build/tests/test_mrtx.py", line 135, in test_mrt_table_dump_v1
    f = BZ2File(RIB_TD1_PARTDUMP, 'rb')
  File "/usr/lib/python3.8/bz2.py", line 96, in __init__
    self._fp = _builtin_open(filename, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build/tests/../data/rib.20080501.0644_firstMB.bz2'

======================================================================
ERROR: Tests pyasn.mrtx internal classes by converting start of an RIB TD2 file
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build/tests/test_mrtx.py", line 50, in test_mrt_table_dump_v2
    f = BZ2File(RIB_TD2_PARTDUMP, 'rb')
  File "/usr/lib/python3.8/bz2.py", line 96, in __init__
    self._fp = _builtin_open(filename, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build/tests/../data/rib.20140523.0600_firstMB.bz2'

======================================================================
ERROR: Tests pyasn.mrtx.parse_mrt_file() with skip_record_on_error set to True
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build/tests/test_mrtx.py", line 478, in test_read_all_line_on_single_error_with_boolean_true
    res = parse_mrt_file(RIB_TD2_RECORD_FAIL_PARTDUMP, skip_record_on_error=True)
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build/pyasn/mrtx.py", line 89, in parse_mrt_file
    mrt_file = open_archive(mrt_file)
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build/pyasn/mrtx.py", line 63, in open_archive
    with open(fpath, mode) as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build/tests/../data/bview.20140112.1600_3samples.bz2'

======================================================================
ERROR: Tests pyasn.mrtx.parse_mrt_file() with skip_record_on_error set to default(False);
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build/tests/test_mrtx.py", line 472, in test_skip_all_line_on_single_error_with_boolean_false
    self.assertRaises(IndexError, parse_mrt_file, RIB_TD2_RECORD_FAIL_PARTDUMP)
  File "/usr/lib/python3.8/unittest/case.py", line 816, in assertRaises
    return context.handle('assertRaises', args, kwargs)
  File "/usr/lib/python3.8/unittest/case.py", line 202, in handle
    callable_obj(*args, **kwargs)
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build/pyasn/mrtx.py", line 89, in parse_mrt_file
    mrt_file = open_archive(mrt_file)
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build/pyasn/mrtx.py", line 63, in open_archive
    with open(fpath, mode) as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build/tests/../data/bview.20140112.1600_3samples.bz2'

======================================================================
ERROR: Failure: FileNotFoundError ([Errno 2] No such file or directory: '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build/tests/../data/ipasn_20140513.dat.gz')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/usr/lib/python3/dist-packages/nose/loader.py", line 416, in loadTestsFromName
    module = self.importer.importFromPath(
  File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/lib/python3.8/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/usr/lib/python3.8/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 702, in _load
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build/tests/test_simple.py", line 34, in <module>
    class TestSimple(TestCase):
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build/tests/test_simple.py", line 38, in TestSimple
    asndb = pyasn(IPASN_DB_PATH)
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build/pyasn/__init__.py", line 64, in __init__
    f = gzip.open(ipasn_file, 'rt')  # Py2.6 doesn't support 'with' for gzip
  File "/usr/lib/python3.8/gzip.py", line 58, in open
    binary_file = GzipFile(filename, gz_mode, compresslevel)
  File "/usr/lib/python3.8/gzip.py", line 173, in __init__
    fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build/tests/../data/ipasn_20140513.dat.gz'

----------------------------------------------------------------------
Ran 13 tests in 0.057s

FAILED (errors=7)
E: pybuild pybuild:352: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyasn/build; python3.8 -m nose -v tests
dh_auto_test: error: pybuild --test --test-nose -i python{version} -p "3.9 3.8" returned exit code 13
make[1]: *** [debian/rules:14: override_dh_auto_test] Error 25



More information about the Python-modules-team mailing list