Bug#997498: qiskit-ibmq-provider: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9 returned exit code 13

Lucas Nussbaum lucas at debian.org
Sat Oct 23 21:41:15 BST 2021


Source: qiskit-ibmq-provider
Version: 0.4.6-3
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20211023 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> dpkg-buildpackage
> -----------------
> 
> Command: dpkg-buildpackage -us -uc -sa -rfakeroot
> dpkg-buildpackage: info: source package qiskit-ibmq-provider
> dpkg-buildpackage: info: source version 0.4.6-3
> dpkg-buildpackage: info: source distribution unstable
> dpkg-buildpackage: info: source changed by Nilesh Patra <npatra974 at gmail.com>
>  dpkg-source --before-build .
> dpkg-buildpackage: info: host architecture amd64
> dpkg-source: info: using options from qiskit-ibmq-provider-0.4.6/debian/source/options: --extend-diff-ignore=^[^/]*[.]egg-info/
>  debian/rules clean
> dh clean --with python3 --buildsystem=pybuild
>    dh_auto_clean -O--buildsystem=pybuild
> I: pybuild base:232: python3.9 setup.py clean 
> running clean
> removing '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build' (and everything under it)
> 'build/bdist.linux-x86_64' does not exist -- can't clean it
> 'build/scripts-3.9' does not exist -- can't clean it
>    dh_autoreconf_clean -O--buildsystem=pybuild
>    dh_clean -O--buildsystem=pybuild
>  dpkg-source -b .
> dpkg-source: info: using options from qiskit-ibmq-provider-0.4.6/debian/source/options: --extend-diff-ignore=^[^/]*[.]egg-info/
> dpkg-source: info: using source format '3.0 (quilt)'
> dpkg-source: info: building qiskit-ibmq-provider using existing ./qiskit-ibmq-provider_0.4.6.orig.tar.gz
> dpkg-source: info: using patch list from debian/patches/series
> dpkg-source: info: building qiskit-ibmq-provider in qiskit-ibmq-provider_0.4.6-3.debian.tar.xz
> dpkg-source: info: building qiskit-ibmq-provider in qiskit-ibmq-provider_0.4.6-3.dsc
>  debian/rules binary
> dh binary --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:232: python3.9 setup.py config 
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:232: /usr/bin/python3 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq
> copying qiskit/providers/ibmq/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq
> copying qiskit/providers/ibmq/ibmqbackend.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq
> copying qiskit/providers/ibmq/ibmqfactory.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq
> copying qiskit/providers/ibmq/backendjoblimit.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq
> copying qiskit/providers/ibmq/accountprovider.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq
> copying qiskit/providers/ibmq/version.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq
> copying qiskit/providers/ibmq/exceptions.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq
> copying qiskit/providers/ibmq/apiconstants.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq
> copying qiskit/providers/ibmq/ibmqbackendservice.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/api
> copying qiskit/providers/ibmq/api/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/api
> copying qiskit/providers/ibmq/api/session.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/api
> copying qiskit/providers/ibmq/api/exceptions.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/api
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/api/clients
> copying qiskit/providers/ibmq/api/clients/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/api/clients
> copying qiskit/providers/ibmq/api/clients/auth.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/api/clients
> copying qiskit/providers/ibmq/api/clients/websocket.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/api/clients
> copying qiskit/providers/ibmq/api/clients/account.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/api/clients
> copying qiskit/providers/ibmq/api/clients/version.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/api/clients
> copying qiskit/providers/ibmq/api/clients/base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/api/clients
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/api/rest
> copying qiskit/providers/ibmq/api/rest/version_finder.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/api/rest
> copying qiskit/providers/ibmq/api/rest/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/api/rest
> copying qiskit/providers/ibmq/api/rest/validation.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/api/rest
> copying qiskit/providers/ibmq/api/rest/auth.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/api/rest
> copying qiskit/providers/ibmq/api/rest/root.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/api/rest
> copying qiskit/providers/ibmq/api/rest/job.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/api/rest
> copying qiskit/providers/ibmq/api/rest/base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/api/rest
> copying qiskit/providers/ibmq/api/rest/backend.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/api/rest
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/credentials
> copying qiskit/providers/ibmq/credentials/environ.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/credentials
> copying qiskit/providers/ibmq/credentials/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/credentials
> copying qiskit/providers/ibmq/credentials/hubgroupproject.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/credentials
> copying qiskit/providers/ibmq/credentials/configrc.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/credentials
> copying qiskit/providers/ibmq/credentials/exceptions.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/credentials
> copying qiskit/providers/ibmq/credentials/qconfig.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/credentials
> copying qiskit/providers/ibmq/credentials/credentials.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/credentials
> copying qiskit/providers/ibmq/credentials/updater.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/credentials
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/job
> copying qiskit/providers/ibmq/job/ibmqjob.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/job
> copying qiskit/providers/ibmq/job/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/job
> copying qiskit/providers/ibmq/job/schema.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/job
> copying qiskit/providers/ibmq/job/exceptions.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/job
> copying qiskit/providers/ibmq/job/queueinfo.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/job
> copying qiskit/providers/ibmq/job/utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/job
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/managed
> copying qiskit/providers/ibmq/managed/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/managed
> copying qiskit/providers/ibmq/managed/managedresults.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/managed
> copying qiskit/providers/ibmq/managed/ibmqjobmanager.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/managed
> copying qiskit/providers/ibmq/managed/exceptions.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/managed
> copying qiskit/providers/ibmq/managed/managedjob.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/managed
> copying qiskit/providers/ibmq/managed/utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/managed
> copying qiskit/providers/ibmq/managed/managedjobset.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/managed
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/utils
> copying qiskit/providers/ibmq/utils/qobj_utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/utils
> copying qiskit/providers/ibmq/utils/fields.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/utils
> copying qiskit/providers/ibmq/utils/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/utils
> copying qiskit/providers/ibmq/utils/utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq/utils
> running egg_info
> writing qiskit_ibmq_provider.egg-info/PKG-INFO
> writing dependency_links to qiskit_ibmq_provider.egg-info/dependency_links.txt
> writing requirements to qiskit_ibmq_provider.egg-info/requires.txt
> writing top-level names to qiskit_ibmq_provider.egg-info/top_level.txt
> reading manifest file 'qiskit_ibmq_provider.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> adding license file 'LICENSE.txt'
> writing manifest file 'qiskit_ibmq_provider.egg-info/SOURCES.txt'
> copying qiskit/providers/ibmq/VERSION.txt -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/qiskit/providers/ibmq
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:232: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build; python3.9 -m pytest /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build/test/ibmq -k "not TestIBMQFactoryEnableAccount" --ignore=test/ibmq/test_proxies.py
> ============================= test session starts ==============================
> platform linux -- Python 3.9.7, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>
> collected 206 items / 7 deselected / 199 selected
> 
> test/ibmq/test_account_client.py ssssssssssssssssssssssssssss            [ 14%]
> test/ibmq/test_filter_backends.py ssss                                   [ 16%]
> test/ibmq/test_ibmq_backend.py .                                         [ 16%]
> test/ibmq/test_ibmq_backends.py ssssss                                   [ 19%]
> test/ibmq/test_ibmq_factory.py s.ss....sss                               [ 25%]
> test/ibmq/test_ibmq_integration.py sssssss                               [ 28%]
> test/ibmq/test_ibmq_job.py ssssssssssssssssssssssssss                    [ 41%]
> test/ibmq/test_ibmq_job_attributes.py sssssssssssssssss                  [ 50%]
> test/ibmq/test_ibmq_job_model.py ...s.                                   [ 52%]
> test/ibmq/test_ibmq_job_states.py ........................               [ 64%]
> test/ibmq/test_ibmq_jobmanager.py ssssssssssssss.ssss                    [ 74%]
> test/ibmq/test_ibmq_provider.py ssssssssssssss                           [ 81%]
> test/ibmq/test_ibmq_qasm_simulator.py ssss                               [ 83%]
> test/ibmq/test_registration.py .................                         [ 91%]
> test/ibmq/websocket/test_websocket.py ........E                          [ 95%]
> test/ibmq/websocket/test_websocket_integration.py ssssssss               [100%]
> 
> ==================================== ERRORS ====================================
> __ ERROR at teardown of TestWebsocketClientMock.test_websocket_retry_success ___
> 
> cls = <class 'test.ibmq.websocket.test_websocket.TestWebsocketClientMock'>
> 
>     @classmethod
>     def tearDownClass(cls):
>         super().tearDownClass()
>     
>         # Close the mock server.
>         loop = asyncio.get_event_loop()
>         loop.stop()
>     
>         with warnings.catch_warnings():
>             # Suppress websockets deprecation warning
>             warnings.filterwarnings("ignore", category=PendingDeprecationWarning)
>             # Manually cancel any pending asyncio tasks.
> >           pending = asyncio.all_tasks()
> 
> test/ibmq/websocket/test_websocket.py:75: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> 
> loop = None
> 
>     def all_tasks(loop=None):
>         """Return a set of all tasks for the loop."""
>         if loop is None:
> >           loop = events.get_running_loop()
> E           RuntimeError: no running event loop
> 
> /usr/lib/python3.9/asyncio/tasks.py:44: RuntimeError
> =============================== warnings summary ===============================
> ../../../../../../usr/lib/python3/dist-packages/qiskit/__init__.py:53
>   /usr/lib/python3/dist-packages/qiskit/__init__.py:53: RuntimeWarning: Could not import the Aer provider from the qiskit-aer package. Install qiskit-aer or check your installation.
>     warnings.warn('Could not import the Aer provider from the qiskit-aer '
> 
> ../../../../../../usr/lib/python3/dist-packages/marshmallow/fields.py:181: 14 warnings
>   /usr/lib/python3/dist-packages/marshmallow/fields.py:181: RemovedInMarshmallow4Warning: The 'missing' argument to fields is deprecated. Use 'load_default' instead.
>     warnings.warn(
> 
> .pybuild/cpython3_3.9_qiskit-ibmq-provider/build/test/ibmq/test_ibmq_job_model.py::TestIBMQJobModel::test_invalid_enum
>   /usr/lib/python3/dist-packages/marshmallow/fields.py:295: RemovedInMarshmallow4Warning: `Field.fail` is deprecated. Use `raise self.make_error("invalid", ...)` instead.
>     warnings.warn(
> 
> .pybuild/cpython3_3.9_qiskit-ibmq-provider/build/test/ibmq/test_registration.py::TestCredentialsKwargs::test_malformed_ntlm_params
> .pybuild/cpython3_3.9_qiskit-ibmq-provider/build/test/ibmq/test_registration.py::TestCredentialsKwargs::test_proxies_param_with_ntlm
> .pybuild/cpython3_3.9_qiskit-ibmq-provider/build/test/ibmq/test_registration.py::TestCredentialsKwargs::test_proxy_param
>   /usr/lib/python3.9/unittest/case.py:550: DeprecationWarning: Proxy URLs without protocols (e.g. 'http://') will no longer be supported in the future release.
>     method()
> 
> .pybuild/cpython3_3.9_qiskit-ibmq-provider/build/test/ibmq/websocket/test_websocket.py::TestWebsocketClientMock::test_invalid_response
>   /usr/lib/python3.9/asyncio/base_events.py:1460: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
>     infos = await tasks.gather(*fs, loop=self)
> 
> .pybuild/cpython3_3.9_qiskit-ibmq-provider/build/test/ibmq/websocket/test_websocket.py::TestWebsocketClientMock::test_invalid_response
>   /usr/lib/python3.9/asyncio/base_events.py:1518: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
>     await tasks.sleep(0, loop=self)
> 
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> =========================== short test summary info ============================
> ERROR test/ibmq/websocket/test_websocket.py::TestWebsocketClientMock::test_websocket_retry_success
> ===== 60 passed, 139 skipped, 7 deselected, 21 warnings, 1 error in 47.47s =====
> E: pybuild pybuild:354: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_qiskit-ibmq-provider/build; python3.9 -m pytest {build_dir}/test/ibmq -k "not TestIBMQFactoryEnableAccount" --ignore=test/ibmq/test_proxies.py
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9 returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2021/10/23/qiskit-ibmq-provider_0.4.6-3_unstable.log

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.



More information about the debian-science-maintainers mailing list