Bug#1071812: qiskit-ibmq-provider: FTBFS: E AttributeError: module 'numpy' has no attribute 'float'.

Santiago Vila sanvila at debian.org
Sat May 25 01:33:43 BST 2024


Package: src:qiskit-ibmq-provider
Version: 0.4.6-4
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
  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:311: python3.12 setup.py config
running config
I: pybuild base:311: python3.11 setup.py config
running config
    dh_auto_build -O--buildsystem=pybuild
I: pybuild base:311: /usr/bin/python3.12 setup.py build
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_qiskit-ibmq-provider/build/qiskit

[... snipped ...]

     raise AttributeError(__former_attrs__[attr])
E   AttributeError: module 'numpy' has no attribute 'float'.
E   `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
E   The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
E       https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'cfloat'?
_ ERROR collecting .pybuild/cpython3_3.12_qiskit-ibmq-provider/build/test/ibmq/test_registration.py _
test/ibmq/test_registration.py:27: in <module>
     from qiskit.providers.ibmq import IBMQ, IBMQFactory
/usr/lib/python3/dist-packages/qiskit/__init__.py:31: in <module>
     from qiskit.circuit import ClassicalRegister
/usr/lib/python3/dist-packages/qiskit/circuit/__init__.py:58: in <module>
     from .quantumcircuit import QuantumCircuit
/usr/lib/python3/dist-packages/qiskit/circuit/quantumcircuit.py:24: in <module>
     from qiskit.circuit.instruction import Instruction
/usr/lib/python3/dist-packages/qiskit/circuit/instruction.py:45: in <module>
     from qiskit.qobj.models.qasm import QasmQobjInstruction
/usr/lib/python3/dist-packages/qiskit/qobj/models/qasm.py:20: in <module>
     from qiskit.validation.fields import List, Integer, InstructionParameter, Nested
/usr/lib/python3/dist-packages/qiskit/validation/fields/__init__.py:43: in <module>
     from .custom import Complex, InstructionParameter, DictParameters
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:61: in <module>
     class InstructionParameter(ModelTypeValidator):
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:76: in InstructionParameter
     numpy.integer, numpy.float,
/usr/lib/python3/dist-packages/numpy/__init__.py:324: in __getattr__
     raise AttributeError(__former_attrs__[attr])
E   AttributeError: module 'numpy' has no attribute 'float'.
E   `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
E   The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
E       https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'cfloat'?
_ ERROR collecting .pybuild/cpython3_3.12_qiskit-ibmq-provider/build/test/ibmq/websocket/test_websocket_integration.py _
test/ibmq/websocket/test_websocket_integration.py:21: in <module>
     from qiskit import ClassicalRegister, QuantumCircuit, QuantumRegister
/usr/lib/python3/dist-packages/qiskit/__init__.py:31: in <module>
     from qiskit.circuit import ClassicalRegister
/usr/lib/python3/dist-packages/qiskit/circuit/__init__.py:58: in <module>
     from .quantumcircuit import QuantumCircuit
/usr/lib/python3/dist-packages/qiskit/circuit/quantumcircuit.py:24: in <module>
     from qiskit.circuit.instruction import Instruction
/usr/lib/python3/dist-packages/qiskit/circuit/instruction.py:45: in <module>
     from qiskit.qobj.models.qasm import QasmQobjInstruction
/usr/lib/python3/dist-packages/qiskit/qobj/models/qasm.py:20: in <module>
     from qiskit.validation.fields import List, Integer, InstructionParameter, Nested
/usr/lib/python3/dist-packages/qiskit/validation/fields/__init__.py:43: in <module>
     from .custom import Complex, InstructionParameter, DictParameters
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:61: in <module>
     class InstructionParameter(ModelTypeValidator):
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:76: in InstructionParameter
     numpy.integer, numpy.float,
/usr/lib/python3/dist-packages/numpy/__init__.py:324: in __getattr__
     raise AttributeError(__former_attrs__[attr])
E   AttributeError: module 'numpy' has no attribute 'float'.
E   `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
E   The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
E       https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'cfloat'?
=========================== short test summary info ============================
ERROR test/ibmq/test_account_client.py - AttributeError: module 'numpy' has n...
ERROR test/ibmq/test_filter_backends.py - AttributeError: module 'numpy' has ...
ERROR test/ibmq/test_ibmq_backend.py - AttributeError: module 'numpy' has no ...
ERROR test/ibmq/test_ibmq_backends.py - AttributeError: module 'numpy' has no...
ERROR test/ibmq/test_ibmq_factory.py - AttributeError: module 'numpy' has no ...
ERROR test/ibmq/test_ibmq_integration.py - AttributeError: module 'numpy' has...
ERROR test/ibmq/test_ibmq_job.py - AttributeError: module 'numpy' has no attr...
ERROR test/ibmq/test_ibmq_job_attributes.py - AttributeError: module 'numpy' ...
ERROR test/ibmq/test_ibmq_job_model.py - AttributeError: module 'numpy' has n...
ERROR test/ibmq/test_ibmq_job_states.py - AttributeError: module 'numpy' has ...
ERROR test/ibmq/test_ibmq_jobmanager.py - AttributeError: module 'numpy' has ...
ERROR test/ibmq/test_ibmq_provider.py - AttributeError: module 'numpy' has no...
ERROR test/ibmq/test_ibmq_qasm_simulator.py - AttributeError: module 'numpy' ...
ERROR test/ibmq/test_registration.py - AttributeError: module 'numpy' has no ...
ERROR test/ibmq/websocket/test_websocket_integration.py - AttributeError: mod...
!!!!!!!!!!!!!!!!!!! Interrupted: 15 errors during collection !!!!!!!!!!!!!!!!!!!
============================== 15 errors in 1.28s ==============================
E: pybuild pybuild:389: test: plugin distutils failed with: exit code=2: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_qiskit-ibmq-provider/build; python3.12 -m pytest {build_dir}/test/ibmq -k "not TestIBMQFactoryEnableAccount" --ignore=test/ibmq/test_proxies.py --ignore=test/ibmq/websocket/test_websocket.py
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_qiskit-ibmq-provider/build; python3.11 -m pytest /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_qiskit-ibmq-provider/build/test/ibmq -k "not TestIBMQFactoryEnableAccount" --ignore=test/ibmq/test_proxies.py --ignore=test/ibmq/websocket/test_websocket.py
============================= test session starts ==============================
platform linux -- Python 3.11.9, pytest-8.1.2, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>
collected 0 items / 15 errors

==================================== ERRORS ====================================
_ ERROR collecting .pybuild/cpython3_3.11_qiskit-ibmq-provider/build/test/ibmq/test_account_client.py _
test/ibmq/test_account_client.py:26: in <module>
     from qiskit.circuit import ClassicalRegister, QuantumCircuit, QuantumRegister
/usr/lib/python3/dist-packages/qiskit/__init__.py:31: in <module>
     from qiskit.circuit import ClassicalRegister
/usr/lib/python3/dist-packages/qiskit/circuit/__init__.py:58: in <module>
     from .quantumcircuit import QuantumCircuit
/usr/lib/python3/dist-packages/qiskit/circuit/quantumcircuit.py:24: in <module>
     from qiskit.circuit.instruction import Instruction
/usr/lib/python3/dist-packages/qiskit/circuit/instruction.py:45: in <module>
     from qiskit.qobj.models.qasm import QasmQobjInstruction
/usr/lib/python3/dist-packages/qiskit/qobj/__init__.py:73: in <module>
     from .models.base import (QobjInstruction, QobjExperimentHeader, QobjExperimentConfig,
/usr/lib/python3/dist-packages/qiskit/qobj/models/base.py:20: in <module>
     from qiskit.validation.fields import String, Nested, Integer
/usr/lib/python3/dist-packages/qiskit/validation/fields/__init__.py:43: in <module>
     from .custom import Complex, InstructionParameter, DictParameters
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:61: in <module>
     class InstructionParameter(ModelTypeValidator):
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:76: in InstructionParameter
     numpy.integer, numpy.float,
/usr/lib/python3/dist-packages/numpy/__init__.py:324: in __getattr__
     raise AttributeError(__former_attrs__[attr])
E   AttributeError: module 'numpy' has no attribute 'float'.
E   `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
E   The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
E       https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
_ ERROR collecting .pybuild/cpython3_3.11_qiskit-ibmq-provider/build/test/ibmq/test_filter_backends.py _
test/ibmq/test_filter_backends.py:17: in <module>
     from qiskit.providers.ibmq import least_busy
/usr/lib/python3/dist-packages/qiskit/__init__.py:31: in <module>
     from qiskit.circuit import ClassicalRegister
/usr/lib/python3/dist-packages/qiskit/circuit/__init__.py:58: in <module>
     from .quantumcircuit import QuantumCircuit
/usr/lib/python3/dist-packages/qiskit/circuit/quantumcircuit.py:24: in <module>
     from qiskit.circuit.instruction import Instruction
/usr/lib/python3/dist-packages/qiskit/circuit/instruction.py:45: in <module>
     from qiskit.qobj.models.qasm import QasmQobjInstruction
/usr/lib/python3/dist-packages/qiskit/qobj/models/qasm.py:20: in <module>
     from qiskit.validation.fields import List, Integer, InstructionParameter, Nested
/usr/lib/python3/dist-packages/qiskit/validation/fields/__init__.py:43: in <module>
     from .custom import Complex, InstructionParameter, DictParameters
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:61: in <module>
     class InstructionParameter(ModelTypeValidator):
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:76: in InstructionParameter
     numpy.integer, numpy.float,
/usr/lib/python3/dist-packages/numpy/__init__.py:324: in __getattr__
     raise AttributeError(__former_attrs__[attr])
E   AttributeError: module 'numpy' has no attribute 'float'.
E   `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
E   The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
E       https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
_ ERROR collecting .pybuild/cpython3_3.11_qiskit-ibmq-provider/build/test/ibmq/test_ibmq_backend.py _
test/ibmq/test_ibmq_backend.py:18: in <module>
     from qiskit.providers.ibmq.ibmqbackend import IBMQBackend
/usr/lib/python3/dist-packages/qiskit/__init__.py:31: in <module>
     from qiskit.circuit import ClassicalRegister
/usr/lib/python3/dist-packages/qiskit/circuit/__init__.py:58: in <module>
     from .quantumcircuit import QuantumCircuit
/usr/lib/python3/dist-packages/qiskit/circuit/quantumcircuit.py:24: in <module>
     from qiskit.circuit.instruction import Instruction
/usr/lib/python3/dist-packages/qiskit/circuit/instruction.py:45: in <module>
     from qiskit.qobj.models.qasm import QasmQobjInstruction
/usr/lib/python3/dist-packages/qiskit/qobj/models/qasm.py:20: in <module>
     from qiskit.validation.fields import List, Integer, InstructionParameter, Nested
/usr/lib/python3/dist-packages/qiskit/validation/fields/__init__.py:43: in <module>
     from .custom import Complex, InstructionParameter, DictParameters
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:61: in <module>
     class InstructionParameter(ModelTypeValidator):
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:76: in InstructionParameter
     numpy.integer, numpy.float,
/usr/lib/python3/dist-packages/numpy/__init__.py:324: in __getattr__
     raise AttributeError(__former_attrs__[attr])
E   AttributeError: module 'numpy' has no attribute 'float'.
E   `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
E   The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
E       https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
_ ERROR collecting .pybuild/cpython3_3.11_qiskit-ibmq-provider/build/test/ibmq/test_ibmq_backends.py _
test/ibmq/test_ibmq_backends.py:17: in <module>
     from qiskit import (BasicAer, ClassicalRegister, QuantumCircuit,
/usr/lib/python3/dist-packages/qiskit/__init__.py:31: in <module>
     from qiskit.circuit import ClassicalRegister
/usr/lib/python3/dist-packages/qiskit/circuit/__init__.py:58: in <module>
     from .quantumcircuit import QuantumCircuit
/usr/lib/python3/dist-packages/qiskit/circuit/quantumcircuit.py:24: in <module>
     from qiskit.circuit.instruction import Instruction
/usr/lib/python3/dist-packages/qiskit/circuit/instruction.py:45: in <module>
     from qiskit.qobj.models.qasm import QasmQobjInstruction
/usr/lib/python3/dist-packages/qiskit/qobj/models/qasm.py:20: in <module>
     from qiskit.validation.fields import List, Integer, InstructionParameter, Nested
/usr/lib/python3/dist-packages/qiskit/validation/fields/__init__.py:43: in <module>
     from .custom import Complex, InstructionParameter, DictParameters
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:61: in <module>
     class InstructionParameter(ModelTypeValidator):
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:76: in InstructionParameter
     numpy.integer, numpy.float,
/usr/lib/python3/dist-packages/numpy/__init__.py:324: in __getattr__
     raise AttributeError(__former_attrs__[attr])
E   AttributeError: module 'numpy' has no attribute 'float'.
E   `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
E   The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
E       https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
_ ERROR collecting .pybuild/cpython3_3.11_qiskit-ibmq-provider/build/test/ibmq/test_ibmq_factory.py _
test/ibmq/test_ibmq_factory.py:20: in <module>
     from qiskit.providers.ibmq.accountprovider import AccountProvider
/usr/lib/python3/dist-packages/qiskit/__init__.py:31: in <module>
     from qiskit.circuit import ClassicalRegister
/usr/lib/python3/dist-packages/qiskit/circuit/__init__.py:58: in <module>
     from .quantumcircuit import QuantumCircuit
/usr/lib/python3/dist-packages/qiskit/circuit/quantumcircuit.py:24: in <module>
     from qiskit.circuit.instruction import Instruction
/usr/lib/python3/dist-packages/qiskit/circuit/instruction.py:45: in <module>
     from qiskit.qobj.models.qasm import QasmQobjInstruction
/usr/lib/python3/dist-packages/qiskit/qobj/models/qasm.py:20: in <module>
     from qiskit.validation.fields import List, Integer, InstructionParameter, Nested
/usr/lib/python3/dist-packages/qiskit/validation/fields/__init__.py:43: in <module>
     from .custom import Complex, InstructionParameter, DictParameters
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:61: in <module>
     class InstructionParameter(ModelTypeValidator):
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:76: in InstructionParameter
     numpy.integer, numpy.float,
/usr/lib/python3/dist-packages/numpy/__init__.py:324: in __getattr__
     raise AttributeError(__former_attrs__[attr])
E   AttributeError: module 'numpy' has no attribute 'float'.
E   `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
E   The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
E       https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
_ ERROR collecting .pybuild/cpython3_3.11_qiskit-ibmq-provider/build/test/ibmq/test_ibmq_integration.py _
test/ibmq/test_ibmq_integration.py:16: in <module>
     from qiskit import ClassicalRegister, QuantumCircuit, QuantumRegister
/usr/lib/python3/dist-packages/qiskit/__init__.py:31: in <module>
     from qiskit.circuit import ClassicalRegister
/usr/lib/python3/dist-packages/qiskit/circuit/__init__.py:58: in <module>
     from .quantumcircuit import QuantumCircuit
/usr/lib/python3/dist-packages/qiskit/circuit/quantumcircuit.py:24: in <module>
     from qiskit.circuit.instruction import Instruction
/usr/lib/python3/dist-packages/qiskit/circuit/instruction.py:45: in <module>
     from qiskit.qobj.models.qasm import QasmQobjInstruction
/usr/lib/python3/dist-packages/qiskit/qobj/models/qasm.py:20: in <module>
     from qiskit.validation.fields import List, Integer, InstructionParameter, Nested
/usr/lib/python3/dist-packages/qiskit/validation/fields/__init__.py:43: in <module>
     from .custom import Complex, InstructionParameter, DictParameters
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:61: in <module>
     class InstructionParameter(ModelTypeValidator):
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:76: in InstructionParameter
     numpy.integer, numpy.float,
/usr/lib/python3/dist-packages/numpy/__init__.py:324: in __getattr__
     raise AttributeError(__former_attrs__[attr])
E   AttributeError: module 'numpy' has no attribute 'float'.
E   `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
E   The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
E       https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
_ ERROR collecting .pybuild/cpython3_3.11_qiskit-ibmq-provider/build/test/ibmq/test_ibmq_job.py _
test/ibmq/test_ibmq_job.py:25: in <module>
     from qiskit import ClassicalRegister, QuantumCircuit, QuantumRegister
/usr/lib/python3/dist-packages/qiskit/__init__.py:31: in <module>
     from qiskit.circuit import ClassicalRegister
/usr/lib/python3/dist-packages/qiskit/circuit/__init__.py:58: in <module>
     from .quantumcircuit import QuantumCircuit
/usr/lib/python3/dist-packages/qiskit/circuit/quantumcircuit.py:24: in <module>
     from qiskit.circuit.instruction import Instruction
/usr/lib/python3/dist-packages/qiskit/circuit/instruction.py:45: in <module>
     from qiskit.qobj.models.qasm import QasmQobjInstruction
/usr/lib/python3/dist-packages/qiskit/qobj/models/qasm.py:20: in <module>
     from qiskit.validation.fields import List, Integer, InstructionParameter, Nested
/usr/lib/python3/dist-packages/qiskit/validation/fields/__init__.py:43: in <module>
     from .custom import Complex, InstructionParameter, DictParameters
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:61: in <module>
     class InstructionParameter(ModelTypeValidator):
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:76: in InstructionParameter
     numpy.integer, numpy.float,
/usr/lib/python3/dist-packages/numpy/__init__.py:324: in __getattr__
     raise AttributeError(__former_attrs__[attr])
E   AttributeError: module 'numpy' has no attribute 'float'.
E   `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
E   The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
E       https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
_ ERROR collecting .pybuild/cpython3_3.11_qiskit-ibmq-provider/build/test/ibmq/test_ibmq_job_attributes.py _
test/ibmq/test_ibmq_job_attributes.py:22: in <module>
     from qiskit import ClassicalRegister, QuantumCircuit, QuantumRegister
/usr/lib/python3/dist-packages/qiskit/__init__.py:31: in <module>
     from qiskit.circuit import ClassicalRegister
/usr/lib/python3/dist-packages/qiskit/circuit/__init__.py:58: in <module>
     from .quantumcircuit import QuantumCircuit
/usr/lib/python3/dist-packages/qiskit/circuit/quantumcircuit.py:24: in <module>
     from qiskit.circuit.instruction import Instruction
/usr/lib/python3/dist-packages/qiskit/circuit/instruction.py:45: in <module>
     from qiskit.qobj.models.qasm import QasmQobjInstruction
/usr/lib/python3/dist-packages/qiskit/qobj/models/qasm.py:20: in <module>
     from qiskit.validation.fields import List, Integer, InstructionParameter, Nested
/usr/lib/python3/dist-packages/qiskit/validation/fields/__init__.py:43: in <module>
     from .custom import Complex, InstructionParameter, DictParameters
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:61: in <module>
     class InstructionParameter(ModelTypeValidator):
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:76: in InstructionParameter
     numpy.integer, numpy.float,
/usr/lib/python3/dist-packages/numpy/__init__.py:324: in __getattr__
     raise AttributeError(__former_attrs__[attr])
E   AttributeError: module 'numpy' has no attribute 'float'.
E   `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
E   The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
E       https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
_ ERROR collecting .pybuild/cpython3_3.11_qiskit-ibmq-provider/build/test/ibmq/test_ibmq_job_model.py _
test/ibmq/test_ibmq_job_model.py:17: in <module>
     from qiskit import ClassicalRegister, QuantumCircuit, QuantumRegister
/usr/lib/python3/dist-packages/qiskit/__init__.py:31: in <module>
     from qiskit.circuit import ClassicalRegister
/usr/lib/python3/dist-packages/qiskit/circuit/__init__.py:58: in <module>
     from .quantumcircuit import QuantumCircuit
/usr/lib/python3/dist-packages/qiskit/circuit/quantumcircuit.py:24: in <module>
     from qiskit.circuit.instruction import Instruction
/usr/lib/python3/dist-packages/qiskit/circuit/instruction.py:45: in <module>
     from qiskit.qobj.models.qasm import QasmQobjInstruction
/usr/lib/python3/dist-packages/qiskit/qobj/models/qasm.py:20: in <module>
     from qiskit.validation.fields import List, Integer, InstructionParameter, Nested
/usr/lib/python3/dist-packages/qiskit/validation/fields/__init__.py:43: in <module>
     from .custom import Complex, InstructionParameter, DictParameters
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:61: in <module>
     class InstructionParameter(ModelTypeValidator):
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:76: in InstructionParameter
     numpy.integer, numpy.float,
/usr/lib/python3/dist-packages/numpy/__init__.py:324: in __getattr__
     raise AttributeError(__former_attrs__[attr])
E   AttributeError: module 'numpy' has no attribute 'float'.
E   `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
E   The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
E       https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
_ ERROR collecting .pybuild/cpython3_3.11_qiskit-ibmq-provider/build/test/ibmq/test_ibmq_job_states.py _
test/ibmq/test_ibmq_job_states.py:24: in <module>
     from qiskit.providers.ibmq.apiconstants import API_JOB_FINAL_STATES, ApiJobStatus
/usr/lib/python3/dist-packages/qiskit/__init__.py:31: in <module>
     from qiskit.circuit import ClassicalRegister
/usr/lib/python3/dist-packages/qiskit/circuit/__init__.py:58: in <module>
     from .quantumcircuit import QuantumCircuit
/usr/lib/python3/dist-packages/qiskit/circuit/quantumcircuit.py:24: in <module>
     from qiskit.circuit.instruction import Instruction
/usr/lib/python3/dist-packages/qiskit/circuit/instruction.py:45: in <module>
     from qiskit.qobj.models.qasm import QasmQobjInstruction
/usr/lib/python3/dist-packages/qiskit/qobj/models/qasm.py:20: in <module>
     from qiskit.validation.fields import List, Integer, InstructionParameter, Nested
/usr/lib/python3/dist-packages/qiskit/validation/fields/__init__.py:43: in <module>
     from .custom import Complex, InstructionParameter, DictParameters
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:61: in <module>
     class InstructionParameter(ModelTypeValidator):
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:76: in InstructionParameter
     numpy.integer, numpy.float,
/usr/lib/python3/dist-packages/numpy/__init__.py:324: in __getattr__
     raise AttributeError(__former_attrs__[attr])
E   AttributeError: module 'numpy' has no attribute 'float'.
E   `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
E   The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
E       https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
_ ERROR collecting .pybuild/cpython3_3.11_qiskit-ibmq-provider/build/test/ibmq/test_ibmq_jobmanager.py _
test/ibmq/test_ibmq_jobmanager.py:22: in <module>
     from qiskit import QuantumCircuit
/usr/lib/python3/dist-packages/qiskit/__init__.py:31: in <module>
     from qiskit.circuit import ClassicalRegister
/usr/lib/python3/dist-packages/qiskit/circuit/__init__.py:58: in <module>
     from .quantumcircuit import QuantumCircuit
/usr/lib/python3/dist-packages/qiskit/circuit/quantumcircuit.py:24: in <module>
     from qiskit.circuit.instruction import Instruction
/usr/lib/python3/dist-packages/qiskit/circuit/instruction.py:45: in <module>
     from qiskit.qobj.models.qasm import QasmQobjInstruction
/usr/lib/python3/dist-packages/qiskit/qobj/models/qasm.py:20: in <module>
     from qiskit.validation.fields import List, Integer, InstructionParameter, Nested
/usr/lib/python3/dist-packages/qiskit/validation/fields/__init__.py:43: in <module>
     from .custom import Complex, InstructionParameter, DictParameters
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:61: in <module>
     class InstructionParameter(ModelTypeValidator):
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:76: in InstructionParameter
     numpy.integer, numpy.float,
/usr/lib/python3/dist-packages/numpy/__init__.py:324: in __getattr__
     raise AttributeError(__former_attrs__[attr])
E   AttributeError: module 'numpy' has no attribute 'float'.
E   `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
E   The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
E       https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
_ ERROR collecting .pybuild/cpython3_3.11_qiskit-ibmq-provider/build/test/ibmq/test_ibmq_provider.py _
test/ibmq/test_ibmq_provider.py:20: in <module>
     from qiskit import ClassicalRegister, QuantumCircuit, QuantumRegister
/usr/lib/python3/dist-packages/qiskit/__init__.py:31: in <module>
     from qiskit.circuit import ClassicalRegister
/usr/lib/python3/dist-packages/qiskit/circuit/__init__.py:58: in <module>
     from .quantumcircuit import QuantumCircuit
/usr/lib/python3/dist-packages/qiskit/circuit/quantumcircuit.py:24: in <module>
     from qiskit.circuit.instruction import Instruction
/usr/lib/python3/dist-packages/qiskit/circuit/instruction.py:45: in <module>
     from qiskit.qobj.models.qasm import QasmQobjInstruction
/usr/lib/python3/dist-packages/qiskit/qobj/models/qasm.py:20: in <module>
     from qiskit.validation.fields import List, Integer, InstructionParameter, Nested
/usr/lib/python3/dist-packages/qiskit/validation/fields/__init__.py:43: in <module>
     from .custom import Complex, InstructionParameter, DictParameters
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:61: in <module>
     class InstructionParameter(ModelTypeValidator):
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:76: in InstructionParameter
     numpy.integer, numpy.float,
/usr/lib/python3/dist-packages/numpy/__init__.py:324: in __getattr__
     raise AttributeError(__former_attrs__[attr])
E   AttributeError: module 'numpy' has no attribute 'float'.
E   `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
E   The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
E       https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
_ ERROR collecting .pybuild/cpython3_3.11_qiskit-ibmq-provider/build/test/ibmq/test_ibmq_qasm_simulator.py _
test/ibmq/test_ibmq_qasm_simulator.py:17: in <module>
     from qiskit import ClassicalRegister, QuantumCircuit, QuantumRegister
/usr/lib/python3/dist-packages/qiskit/__init__.py:31: in <module>
     from qiskit.circuit import ClassicalRegister
/usr/lib/python3/dist-packages/qiskit/circuit/__init__.py:58: in <module>
     from .quantumcircuit import QuantumCircuit
/usr/lib/python3/dist-packages/qiskit/circuit/quantumcircuit.py:24: in <module>
     from qiskit.circuit.instruction import Instruction
/usr/lib/python3/dist-packages/qiskit/circuit/instruction.py:45: in <module>
     from qiskit.qobj.models.qasm import QasmQobjInstruction
/usr/lib/python3/dist-packages/qiskit/qobj/models/qasm.py:20: in <module>
     from qiskit.validation.fields import List, Integer, InstructionParameter, Nested
/usr/lib/python3/dist-packages/qiskit/validation/fields/__init__.py:43: in <module>
     from .custom import Complex, InstructionParameter, DictParameters
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:61: in <module>
     class InstructionParameter(ModelTypeValidator):
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:76: in InstructionParameter
     numpy.integer, numpy.float,
/usr/lib/python3/dist-packages/numpy/__init__.py:324: in __getattr__
     raise AttributeError(__former_attrs__[attr])
E   AttributeError: module 'numpy' has no attribute 'float'.
E   `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
E   The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
E       https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
_ ERROR collecting .pybuild/cpython3_3.11_qiskit-ibmq-provider/build/test/ibmq/test_registration.py _
test/ibmq/test_registration.py:27: in <module>
     from qiskit.providers.ibmq import IBMQ, IBMQFactory
/usr/lib/python3/dist-packages/qiskit/__init__.py:31: in <module>
     from qiskit.circuit import ClassicalRegister
/usr/lib/python3/dist-packages/qiskit/circuit/__init__.py:58: in <module>
     from .quantumcircuit import QuantumCircuit
/usr/lib/python3/dist-packages/qiskit/circuit/quantumcircuit.py:24: in <module>
     from qiskit.circuit.instruction import Instruction
/usr/lib/python3/dist-packages/qiskit/circuit/instruction.py:45: in <module>
     from qiskit.qobj.models.qasm import QasmQobjInstruction
/usr/lib/python3/dist-packages/qiskit/qobj/models/qasm.py:20: in <module>
     from qiskit.validation.fields import List, Integer, InstructionParameter, Nested
/usr/lib/python3/dist-packages/qiskit/validation/fields/__init__.py:43: in <module>
     from .custom import Complex, InstructionParameter, DictParameters
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:61: in <module>
     class InstructionParameter(ModelTypeValidator):
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:76: in InstructionParameter
     numpy.integer, numpy.float,
/usr/lib/python3/dist-packages/numpy/__init__.py:324: in __getattr__
     raise AttributeError(__former_attrs__[attr])
E   AttributeError: module 'numpy' has no attribute 'float'.
E   `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
E   The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
E       https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
_ ERROR collecting .pybuild/cpython3_3.11_qiskit-ibmq-provider/build/test/ibmq/websocket/test_websocket_integration.py _
test/ibmq/websocket/test_websocket_integration.py:21: in <module>
     from qiskit import ClassicalRegister, QuantumCircuit, QuantumRegister
/usr/lib/python3/dist-packages/qiskit/__init__.py:31: in <module>
     from qiskit.circuit import ClassicalRegister
/usr/lib/python3/dist-packages/qiskit/circuit/__init__.py:58: in <module>
     from .quantumcircuit import QuantumCircuit
/usr/lib/python3/dist-packages/qiskit/circuit/quantumcircuit.py:24: in <module>
     from qiskit.circuit.instruction import Instruction
/usr/lib/python3/dist-packages/qiskit/circuit/instruction.py:45: in <module>
     from qiskit.qobj.models.qasm import QasmQobjInstruction
/usr/lib/python3/dist-packages/qiskit/qobj/models/qasm.py:20: in <module>
     from qiskit.validation.fields import List, Integer, InstructionParameter, Nested
/usr/lib/python3/dist-packages/qiskit/validation/fields/__init__.py:43: in <module>
     from .custom import Complex, InstructionParameter, DictParameters
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:61: in <module>
     class InstructionParameter(ModelTypeValidator):
/usr/lib/python3/dist-packages/qiskit/validation/fields/custom.py:76: in InstructionParameter
     numpy.integer, numpy.float,
/usr/lib/python3/dist-packages/numpy/__init__.py:324: in __getattr__
     raise AttributeError(__former_attrs__[attr])
E   AttributeError: module 'numpy' has no attribute 'float'.
E   `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
E   The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
E       https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
=========================== short test summary info ============================
ERROR test/ibmq/test_account_client.py - AttributeError: module 'numpy' has n...
ERROR test/ibmq/test_filter_backends.py - AttributeError: module 'numpy' has ...
ERROR test/ibmq/test_ibmq_backend.py - AttributeError: module 'numpy' has no ...
ERROR test/ibmq/test_ibmq_backends.py - AttributeError: module 'numpy' has no...
ERROR test/ibmq/test_ibmq_factory.py - AttributeError: module 'numpy' has no ...
ERROR test/ibmq/test_ibmq_integration.py - AttributeError: module 'numpy' has...
ERROR test/ibmq/test_ibmq_job.py - AttributeError: module 'numpy' has no attr...
ERROR test/ibmq/test_ibmq_job_attributes.py - AttributeError: module 'numpy' ...
ERROR test/ibmq/test_ibmq_job_model.py - AttributeError: module 'numpy' has n...
ERROR test/ibmq/test_ibmq_job_states.py - AttributeError: module 'numpy' has ...
ERROR test/ibmq/test_ibmq_jobmanager.py - AttributeError: module 'numpy' has ...
ERROR test/ibmq/test_ibmq_provider.py - AttributeError: module 'numpy' has no...
ERROR test/ibmq/test_ibmq_qasm_simulator.py - AttributeError: module 'numpy' ...
ERROR test/ibmq/test_registration.py - AttributeError: module 'numpy' has no ...
ERROR test/ibmq/websocket/test_websocket_integration.py - AttributeError: mod...
!!!!!!!!!!!!!!!!!!! Interrupted: 15 errors during collection !!!!!!!!!!!!!!!!!!!
============================== 15 errors in 1.15s ==============================
E: pybuild pybuild:389: test: plugin distutils failed with: exit code=2: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_qiskit-ibmq-provider/build; python3.11 -m pytest {build_dir}/test/ibmq -k "not TestIBMQFactoryEnableAccount" --ignore=test/ibmq/test_proxies.py --ignore=test/ibmq/websocket/test_websocket.py
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 3.11" returned exit code 13
make: *** [debian/rules:18: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202405/

About the archive rebuild: The build was made on virtual machines
of type m6a.large and r6a.large from AWS, using sbuild and a
reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.



More information about the debian-science-maintainers mailing list