#1114718 python-pymeasure: FTBFS with NumPy 2.3

#1114718#5
Date:
2025-09-08 19:44:38 UTC
From:
To:
Dear maintainer,

During a test rebuild for NumPy 2.3, python-pymeasure failed to rebuild.

Log Summary:
-------------------------------------------------------------------------------
[...]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <pymeasure.adapters.protocol.ProtocolAdapter object at 0x7f30c72ee4e0>
header_bytes = 0, termination_bytes = None, dtype = <class 'numpy.uint8'>
kwargs = {}, binary = b'DAT2,#9000000002\x01\x01\n\n'
data = b'DAT2,#9000000002\x01\x01\n\n'

    def read_binary_values(self, header_bytes=0, termination_bytes=None,
                           dtype=np.float32, **kwargs):
        """ Returns a numpy array from a query for binary data

        :param int header_bytes: Number of bytes to ignore in header.
        :param int termination_bytes: Number of bytes to strip at end of message or None.
        :param dtype: The NumPy data type to format the values with.
        :param \\**kwargs: Further arguments for the NumPy fromstring method.
        :returns: NumPy array of values
        """
        binary = self.read_bytes(-1)
        # header = binary[:header_bytes]
        data = binary[header_bytes:termination_bytes]
pymeasure/adapters/adapter.py:232: ValueError
------------------------------ Captured log call -------------------------------
INFO     pymeasure.instruments.instrument:instrument.py:104 Initializing LeCroy T3DSO1204 Oscilloscope.

tests/instruments/test_instrument.py:234:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pymeasure/instruments/common_base.py:434: in binary_values
    return self.read_binary_values(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pymeasure/instruments/instrument.py:196: in read_binary_values
    return self.adapter.read_binary_values(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <pymeasure.adapters.protocol.ProtocolAdapter object at 0x7f30cfac9e20>
header_bytes = 0, termination_bytes = None, dtype = <class 'numpy.float32'>
kwargs = {}, binary = b'abcdefgh', data = b'abcdefgh'

    def read_binary_values(self, header_bytes=0, termination_bytes=None,
                           dtype=np.float32, **kwargs):
        """ Returns a numpy array from a query for binary data

        :param int header_bytes: Number of bytes to ignore in header.
        :param int termination_bytes: Number of bytes to strip at end of message or None.
        :param dtype: The NumPy data type to format the values with.
        :param \\**kwargs: Further arguments for the NumPy fromstring method.
        :returns: NumPy array of values
        """
        binary = self.read_bytes(-1)
        # header = binary[:header_bytes]
        data = binary[header_bytes:termination_bytes]
pymeasure/adapters/adapter.py:232: ValueError
------------------------------ Captured log setup ------------------------------
INFO     pymeasure.instruments.instrument:instrument.py:104 Initializing faked.
=============================== warnings summary ===============================
tests/experiment/test_procedure.py::test_procedure_wrapper
tests/experiment/test_results.py::test_procedure_filestorage
  <frozen importlib._bootstrap>:530: DeprecationWarning: the load_module() method is deprecated and slated for removal in Python 3.15; use exec_module() instead

tests/instruments/activetechnologies/test_AWG401x.py: 3 warnings
tests/instruments/advantest/test_advantestR624X.py: 3 warnings
tests/instruments/agilent/test_agilent33500.py: 31 warnings
tests/instruments/aimtti/test_aimttl.py: 8 warnings
tests/instruments/ametek/test_ametek7270.py: 107 warnings
tests/instruments/anritsu/test_anritsuMG3692C.py: 7 warnings
tests/instruments/anritsu/test_anritsuMS2090A.py: 3 warnings
tests/instruments/anritsu/test_anritsuMS464xB.py: 12 warnings
tests/instruments/hp/test_hp33120A.py: 23 warnings
tests/instruments/hp/test_hp34401a.py: 68 warnings
tests/instruments/keithley/test_keithley2000.py: 5 warnings
tests/instruments/keithley/test_keithley2200.py: 4 warnings
tests/instruments/keithley/test_keithley2306.py: 6 warnings
tests/instruments/lakeshore/test_lakeshore211.py: 7 warnings
tests/instruments/lecroy/test_lecroyT3DSO1204.py: 21 warnings
tests/instruments/lecroy/test_lecroyT3DSO1204_with_device.py: 1 warning
tests/instruments/parker/test_parkerGV6.py: 1 warning
tests/instruments/pendulum/test_cnt91.py: 27 warnings
tests/instruments/siglenttechnologies/test_siglent_spd1168x.py: 8 warnings
tests/instruments/siglenttechnologies/test_siglent_spd1305x.py: 5 warnings
tests/instruments/tektronix/test_afg3152.py: 2 warnings
tests/instruments/teledyne/test_teledyneMAUI.py: 5 warnings
tests/instruments/temptronic/test_temptronic_base.py: 1 warning
tests/instruments/test_all_instruments.py: 280 warnings
  /build/reproducible-path/python-pymeasure-0.14.0/.pybuild/cpython3_3.13_pymeasure/build/pymeasure/instruments/generic_types.py:110: FutureWarning: It is not known whether this device support SCPI commands or not. Please inform the pymeasure maintainers if you know the answer.
    warn("It is not known whether this device support SCPI commands or not. Please inform "

tests/instruments/activetechnologies/test_AWG401x.py: 3 warnings
tests/instruments/test_all_instruments.py: 1 warning
tests/instruments/test_channel.py: 10 warnings
tests/instruments/test_connection_configuration.py: 2 warnings
tests/instruments/test_instrument.py: 20 warnings
tests/test_expected_protocol.py: 10 warnings
tests/test_generator.py: 5 warnings
  /build/reproducible-path/python-pymeasure-0.14.0/.pybuild/cpython3_3.13_pymeasure/build/pymeasure/instruments/instrument.py:95: FutureWarning: It is deprecated to specify `includeSCPI` implicitly, use `includeSCPI=False` or inherit the `SCPIMixin` class instead.
    warn("It is deprecated to specify `includeSCPI` implicitly, use "

tests/instruments/thyracont/test_smartline_v2.py: 37 warnings
  /build/reproducible-path/python-pymeasure-0.14.0/.pybuild/cpython3_3.13_pymeasure/build/pymeasure/adapters/protocol.py:143: UserWarning: Breaking on termination character in `read_bytes` cannot be tested. You have to separate the message parts in the com_pairs.
    warn(("Breaking on termination character in `read_bytes` cannot be tested. "

tests/instruments/toptica/test_ibeamsmart.py::test_setting_failed
  /build/reproducible-path/python-pymeasure-0.14.0/.pybuild/cpython3_3.13_pymeasure/build/pymeasure/instruments/toptica/ibeamsmart.py:57: FutureWarning: This property is deprecated, use channels instead.
    warn("This property is deprecated, use channels instead.", FutureWarning)

tests/test_process.py::test_process_stopping
tests/test_process.py::test__process_joining
  /usr/lib/python3.13/multiprocessing/popen_fork.py:67: DeprecationWarning: This process (pid=107) is multi-threaded, use of fork() may lead to deadlocks in the child.
    self.pid = os.fork()
-------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/debian/developers-roehling.numpy/artifact/2455444/

About the archive rebuild: The build was made on debusine.debian.net,
using sbuild.

You can find the build task here:
https://debusine.debian.net/debian/developers-roehling.numpy/work-request/163938/

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.

Cheers
Timo

#1114718#12
Date:
2026-09-14 11:49:10 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
python-pymeasure, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1114718@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael R. Crusoe <crusoe@debian.org> (supplier of updated python-pymeasure package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 14 Sep 2026 13:25:28 +0200
Source: python-pymeasure
Architecture: source
Version: 0.16.0-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Changed-By: Michael R. Crusoe <crusoe@debian.org>
Closes: 1114718 1138141
Changes:
 python-pymeasure (0.16.0-1) unstable; urgency=medium
 .
   * New upstream version adds support for NumPy 2.3. Closes: #1114718
   * Standards-Version: 4.7.2 (routine-update)
   * d/control: remove Ghislain Vaillant; thank you for your
     maintainership! Closes: #1138141
   * Standards-Version: 4.7.4 (routine-update)
   * Remove Priority field (cme)
   * Drop 'Rules-Requires-Root: no' from d/control (routine-update)
   * Set upstream metadata fields: Documentation, Repository, Repository-Browse.
   * Refreshed patches
   * Routine-update added me as new Uploader (routine-update)
   * d/control: docs now need python3-sphinx-autodoc-typehints
   * d/control: new build-dep, python3-qtpy & python3-pyqtgraph; new deps for
     the optional tcp feature: python3-zmq & python3-cloudpickle
Checksums-Sha1:
 8fed0f5d89640c2a6a34e42c198552378056b6ae 2671 python-pymeasure_0.16.0-1.dsc
 54034d4316b0c2b2d37efe9ca59aea0dec5f269b 4034506 python-pymeasure_0.16.0.orig.tar.gz
 337dbfa28ed9423a2e853add7e0ddccf7529c05a 6428 python-pymeasure_0.16.0-1.debian.tar.xz
 9c4dbfee0c3577b533b3451435250784e28a0e1f 15640 python-pymeasure_0.16.0-1_source.buildinfo
Checksums-Sha256:
 a803ad837a9504a1092ec3de004e47b534b4f8ffaaef6f61bc9aed2308644c7e 2671 python-pymeasure_0.16.0-1.dsc
 36bf875ced4fbec8977408417a839f04bd2dd7949f851aa9c906d1fca0f2e3d4 4034506 python-pymeasure_0.16.0.orig.tar.gz
 c89b26314952332c86bbd79d59dd5b755c1a245d392ee81085dd7370ed48285b 6428 python-pymeasure_0.16.0-1.debian.tar.xz
 185138675bf6a69c8ce98d0159554103d56dab6ee7540c3cade9ed27ccbc8469 15640 python-pymeasure_0.16.0-1_source.buildinfo
Files:
 4979360f3b6bb1595ea5805d4ad95afb 2671 python optional python-pymeasure_0.16.0-1.dsc
 7446da7fbed7b10335e954d9ea11036f 4034506 python optional python-pymeasure_0.16.0.orig.tar.gz
 8361c5b94838f7af8bd6a30259a77420 6428 python optional python-pymeasure_0.16.0-1.debian.tar.xz
 ae631584c70be253bf75b1b312d6e75e 15640 python optional python-pymeasure_0.16.0-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEck1gkzcRPHEFUNdHPCZ2P2xn5uIFAmqn28sACgkQPCZ2P2xn
5uI2pw/+PhPD6rCDijdb/Bx4PsTkXQdY8eaKbZsNo4DfhzGjjh5I7Ghr/JH5ihJb
h5o7vxSFf91UXIJdRvjuSYF7G1o0DAwj+REnvUmU6m7sqPJKd/TJc/HxZZEk7BeX
Z7fUFmY5WsbH1JSkq2jxrlQyjEkbY4usxg3OHMSV4VbpgOcfr9B+WM2fpY33OxIL
oQDXhodtzr+64r7plUiLFb3jw/87mWSkT5Y/csQxOTrjnToP3Ant9ZWjCa8tYLPP
vxUAFIxdp9r1044qdNgJa90cqcOf82tInRLkxXNqA+O+HoEQ5ePANBEFxk0C0OVN
YMXabgrRvLP6V75Ufd6gsmkZWtGh6vZx7QLJC+04NGi5QYwkLLj+HscKi1qcLeU4
NsGFQeml5ewldrBUerlUxievgQbDJj9UpozrysxPD0G3KdWOdjzQrHK18f7otfzX
uJDVTGDMshGN2VdzPE0pJaW3FNu+r1ixJXHEFMn404MC2yDf5YZLJXKG/CO/o0N9
X4BQb568KXLpwsNBOREsrYHBjAh2dytCLM3/moXv9H6987PwvR3fgZAuaNf1rcvI
6M2n9jmBAOktHST1xoPxpPvTpm/pRGnFog6KAC8NR2t3NTpBAfxDbmvTX5pzJ7/A
bEkLZKUKFQk9aJ+BV2JCj0yU8b7JFk3ouuIlgUAxKvo5ncrmJqw=
=drNU
-----END PGP SIGNATURE-----