Source: python-vulndb
Version: 0.1.3-2
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: [email protected]
Usertags: ftbfs-20230925 ftbfs-trixie
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:291: python3.11 setup.py config
> /usr/lib/python3/dist-packages/setuptools/__init__.py:84:
> _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are
> deprecated.
> !!
>
>
> ********************************************************************************
> Requirements should be satisfied by a PEP 517 installer.
> If you are using pip, you can try `pip install --use-pep517`.
>
> ********************************************************************************
>
> !!
> dist.fetch_build_eggs(dist.setup_requires)
> WARNING: The wheel package is not available.
> running config
> dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:291: /usr/bin/python3 setup.py build
> /usr/lib/python3/dist-packages/setuptools/__init__.py:84:
> _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are
> deprecated.
> !!
>
>
> ********************************************************************************
> Requirements should be satisfied by a PEP 517 installer.
> If you are using pip, you can try `pip install --use-pep517`.
>
> ********************************************************************************
>
> !!
> dist.fetch_build_eggs(dist.setup_requires)
> WARNING: The wheel package is not available.
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/vulndb
> copying vulndb/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/vulndb
> copying vulndb/db_vuln.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/vulndb
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/vulndb/tests
> copying vulndb/tests/test_load_all_json.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/vulndb/tests
> copying vulndb/tests/test_db_vuln.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/vulndb/tests
> copying vulndb/tests/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/vulndb/tests
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/vulndb/constants
> copying vulndb/constants/wasc.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/vulndb/constants
> copying vulndb/constants/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/vulndb/constants
> copying vulndb/constants/cwe.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/vulndb/constants
> copying vulndb/constants/owasp.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/vulndb/constants
> running egg_info
> creating vulndb.egg-info
> writing vulndb.egg-info/PKG-INFO
> writing dependency_links to vulndb.egg-info/dependency_links.txt
> writing top-level names to vulndb.egg-info/top_level.txt
> writing manifest file 'vulndb.egg-info/SOURCES.txt'
> reading manifest file 'vulndb.egg-info/SOURCES.txt'
> adding license file 'LICENSE'
> writing manifest file 'vulndb.egg-info/SOURCES.txt'
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:291: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build;
> python3.11 -m unittest discover -v
> test_basic (vulndb.tests.test_db_vuln.TestDBVuln.test_basic) ... ok
> test_from_file (vulndb.tests.test_db_vuln.TestDBVuln.test_from_file) ... ERROR
> test_from_id (vulndb.tests.test_db_vuln.TestDBVuln.test_from_id) ... ERROR
> test_get_cwe_url (vulndb.tests.test_db_vuln.TestDBVuln.test_get_cwe_url) ...
> ok
> test_get_owasp_top_10_url
> (vulndb.tests.test_db_vuln.TestDBVuln.test_get_owasp_top_10_url) ... ok
> test_get_wasc_url (vulndb.tests.test_db_vuln.TestDBVuln.test_get_wasc_url)
> ... ok
> test_load_es_lang (vulndb.tests.test_db_vuln.TestDBVuln.test_load_es_lang)
> ... ERROR
> test_from_file
> (vulndb.tests.test_load_all_json.TestLoadAllJSON.test_from_file) ... ERROR
>
> ======================================================================
> ERROR: test_from_file (vulndb.tests.test_db_vuln.TestDBVuln.test_from_file)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/vulndb/tests/test_db_vuln.py",
> line 68, in test_from_file
> dbv_1 = DBVuln.from_file(_file)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/vulndb/db_vuln.py",
> line 86, in from_file
> data = DBVuln.load_from_json(db_file, language=language)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/vulndb/db_vuln.py",
> line 202, in load_from_json
> raw = json.loads(open(db_file).read())
> ^^^^^^^^^^^^^
> FileNotFoundError: [Errno 2] No such file or directory:
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/vulndb/tests/db/en/123-spec-example.json'
>
> ======================================================================
> ERROR: test_from_id (vulndb.tests.test_db_vuln.TestDBVuln.test_from_id)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/vulndb/tests/test_db_vuln.py",
> line 75, in test_from_id
> dbv = DBVuln.from_id(123)
> ^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/vulndb/db_vuln.py",
> line 95, in from_id
> db_file = DBVuln.get_file_for_id(_id, language=language)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/vulndb/db_vuln.py",
> line 119, in get_file_for_id
> for _file in os.listdir(json_path):
> ^^^^^^^^^^^^^^^^^^^^^
> FileNotFoundError: [Errno 2] No such file or directory:
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/vulndb/tests/db/en'
>
> ======================================================================
> ERROR: test_load_es_lang
> (vulndb.tests.test_db_vuln.TestDBVuln.test_load_es_lang)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/vulndb/tests/test_db_vuln.py",
> line 123, in test_load_es_lang
> dbv_1 = DBVuln.from_file(_file, language=language)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/vulndb/db_vuln.py",
> line 86, in from_file
> data = DBVuln.load_from_json(db_file, language=language)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/vulndb/db_vuln.py",
> line 202, in load_from_json
> raw = json.loads(open(db_file).read())
> ^^^^^^^^^^^^^
> FileNotFoundError: [Errno 2] No such file or directory:
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/vulndb/tests/db/es/123-spec-example.json'
>
> ======================================================================
> ERROR: test_from_file
> (vulndb.tests.test_load_all_json.TestLoadAllJSON.test_from_file)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/vulndb/tests/test_load_all_json.py",
> line 18, in test_from_file
> for language in DBVuln.get_all_languages():
> ^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/vulndb/db_vuln.py",
> line 69, in get_all_languages
> return os.listdir(DBVuln.DB_PATH)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^
> FileNotFoundError: [Errno 2] No such file or directory:
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/vulndb/db'
>
> ----------------------------------------------------------------------
> Ran 8 tests in 0.002s
>
> FAILED (errors=4)
> E: pybuild pybuild:395: test: plugin distutils failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build; python3.11 -m unittest
> discover -v
> dh_auto_test: error: pybuild --test -i python{version} -p 3.11 returned exit
> code 13
The full build log is available from:
http://qa-logs.debian.net/2023/09/25/python-vulndb_0.1.3-2_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230925;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230925&[email protected]&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.