Repository navigation
Closed
Labels
0.kind: build failureA package fails to build6.topic: pythonPython is a high-level, general-purpose programming language.
Description
Nixpkgs version
- Unstable (26.11)
Steps to reproduce
Updated and rebuilt to the latest version.
Can Hydra reproduce this build failure?
Yes, Hydra can reproduce this build failure.
Link to Hydra build job
Relevant log output
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pypa-build-hook
Using pypaBuildPhase
Sourcing python-runtime-deps-check-hook
Using pythonRuntimeDepsCheckHook
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing pytest-check-hook
Using pytestCheckPhase
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/ln215zfhwvzn80425jbpfi7shd7kdilw-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file "source/tox.ini"
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
no configure script, doing nothing
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Executing pypaBuildPhase
Creating a wheel...
pypa build flags: --no-isolation --outdir dist/ --wheel
* Getting build dependencies for wheel...
* Building wheel...
Successfully built paho_mqtt-2.1.0-py3-none-any.whl
Finished creating a wheel...
Finished executing pypaBuildPhase
Running phase: pythonRuntimeDepsCheckHook
@nix { "action": "setPhase", "phase": "pythonRuntimeDepsCheckHook" }
Executing pythonRuntimeDepsCheck
Checking runtime dependencies for paho_mqtt-2.1.0-py3-none-any.whl
Finished executing pythonRuntimeDepsCheck
Running phase: installPhase
@nix { "action": "setPhase", "phase": "installPhase" }
Executing pypaInstallPhase
Successfully installed paho_mqtt-2.1.0-py3-none-any.whl
Finished executing pypaInstallPhase
Running phase: pythonOutputDistPhase
@nix { "action": "setPhase", "phase": "pythonOutputDistPhase" }
Executing pythonOutputDistPhase
Finished executing pythonOutputDistPhase
Running phase: fixupPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }
shrinking RPATHs of ELF executables and libraries in /nix/store/sbj26lca8mgrvgfwmzgmbxd28vnsbiz8-python3.14-paho-mqtt-2.1.0
checking for references to /build/ in /nix/store/sbj26lca8mgrvgfwmzgmbxd28vnsbiz8-python3.14-paho-mqtt-2.1.0...
patching script interpreter paths in /nix/store/sbj26lca8mgrvgfwmzgmbxd28vnsbiz8-python3.14-paho-mqtt-2.1.0
stripping (with command strip and flags -S -p) in /nix/store/sbj26lca8mgrvgfwmzgmbxd28vnsbiz8-python3.14-paho-mqtt-2.1.0/lib
shrinking RPATHs of ELF executables and libraries in /nix/store/inqm9nfs2fhafag0c94nh3kphlgdnxax-python3.14-paho-mqtt-2.1.0-dist
checking for references to /build/ in /nix/store/inqm9nfs2fhafag0c94nh3kphlgdnxax-python3.14-paho-mqtt-2.1.0-dist...
patching script interpreter paths in /nix/store/inqm9nfs2fhafag0c94nh3kphlgdnxax-python3.14-paho-mqtt-2.1.0-dist
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
Running phase: installCheckPhase
@nix { "action": "setPhase", "phase": "installCheckPhase" }
no Makefile or custom installCheckPhase, doing nothing
Running phase: pythonCatchConflictsPhase
@nix { "action": "setPhase", "phase": "pythonCatchConflictsPhase" }
Running phase: pythonRemoveBinBytecodePhase
@nix { "action": "setPhase", "phase": "pythonRemoveBinBytecodePhase" }
Running phase: pythonImportsCheckPhase
@nix { "action": "setPhase", "phase": "pythonImportsCheckPhase" }
Executing pythonImportsCheckPhase
Check whether the following modules can be imported: paho.mqtt
Running phase: pytestCheckPhase
@nix { "action": "setPhase", "phase": "pytestCheckPhase" }
Executing pytestCheckPhase
/build/source/tests/ssl /build/source
Can't load /build/tmp.ccvH30DFKh/.rnd into RNG
4017E9F7FF7F0000:error:12000079:random number generator:RAND_load_file:Cannot open file:crypto/rand/randfile.c:106:Filename=/build/tmp.ccvH30DFKh/.rnd
Using configuration from openssl.cnf
Check that the request matches the signature
Signature ok
Certificate Details:
Serial Number: 1 (0x1)
Validity
Not Before: Jul 16 13:34:49 2026 GMT
Not After : Jul 15 13:34:49 2031 GMT
Subject:
countryName = GB
stateOrProvinceName = Derbyshire
organizationName = Paho Project
organizationalUnitName = Testing
commonName = Signing CA
X509v3 extensions:
X509v3 Subject Key Identifier:
82:54:F5:60:94:23:86:19:CC:67:E8:14:DB:48:18:88:21:55:A8:08
X509v3 Authority Key Identifier:
D7:67:71:7B:D2:9D:39:22:BC:6C:94:56:C5:AD:CF:98:F1:87:1A:77
X509v3 Basic Constraints:
CA:TRUE
Certificate is to be certified until Jul 15 13:34:49 2031 GMT (1825 days)
Write out database with 1 new entries
Database updated
Using configuration from openssl.cnf
Check that the request matches the signature
Signature ok
Certificate Details:
Serial Number: 2 (0x2)
Validity
Not Before: Jul 16 13:34:49 2026 GMT
Not After : Jul 15 13:34:49 2031 GMT
Subject:
countryName = GB
stateOrProvinceName = Derbyshire
organizationName = Paho Project
organizationalUnitName = Testing
commonName = Alternative Signing CA
X509v3 extensions:
X509v3 Subject Key Identifier:
E1:70:44:B0:1D:1A:29:E9:BD:AB:06:2B:56:2C:72:63:A7:69:6B:87
X509v3 Authority Key Identifier:
D7:67:71:7B:D2:9D:39:22:BC:6C:94:56:C5:AD:CF:98:F1:87:1A:77
X509v3 Basic Constraints:
CA:TRUE
Certificate is to be certified until Jul 15 13:34:49 2031 GMT (1825 days)
Write out database with 1 new entries
Database updated
Using configuration from openssl.cnf
Check that the request matches the signature
Signature ok
Certificate Details:
Serial Number: 1 (0x1)
Validity
Not Before: Jul 16 13:34:50 2026 GMT
Not After : Jul 15 13:34:50 2031 GMT
Subject:
countryName = GB
stateOrProvinceName = Nottinghamshire
localityName = Nottingham
organizationName = Server
organizationalUnitName = Production
commonName = localhost
X509v3 extensions:
X509v3 Basic Constraints:
CA:FALSE
Netscape Comment:
OpenSSL Generated Certificate
X509v3 Subject Key Identifier:
E7:4B:06:C2:0F:C8:93:B4:5D:A7:78:56:B2:79:61:BA:F1:A1:9E:51
X509v3 Authority Key Identifier:
82:54:F5:60:94:23:86:19:CC:67:E8:14:DB:48:18:88:21:55:A8:08
Certificate is to be certified until Jul 15 13:34:50 2031 GMT (1825 days)
Write out database with 1 new entries
Database updated
Warning: Ignoring -days without -x509; not generating a certificate
Using configuration from openssl.cnf
Warning: -enddate or -not_after option overriding -days option
Check that the request matches the signature
Signature ok
Certificate Details:
Serial Number: 1 (0x1)
Validity
Not Before: Aug 20 00:00:00 2012 GMT
Not After : Aug 21 00:00:00 2012 GMT
Subject:
countryName = GB
stateOrProvinceName = Nottinghamshire
localityName = Nottingham
organizationName = Server
organizationalUnitName = Production
commonName = localhost
X509v3 extensions:
X509v3 Basic Constraints:
CA:FALSE
Netscape Comment:
OpenSSL Generated Certificate
X509v3 Subject Key Identifier:
E7:4B:06:C2:0F:C8:93:B4:5D:A7:78:56:B2:79:61:BA:F1:A1:9E:51
X509v3 Authority Key Identifier:
82:54:F5:60:94:23:86:19:CC:67:E8:14:DB:48:18:88:21:55:A8:08
Certificate is to be certified until Aug 21 00:00:00 2012 GMT (-5077 days)
Write out database with 1 new entries
Database updated
Using configuration from openssl.cnf
Check that the request matches the signature
Signature ok
Certificate Details:
Serial Number: 2 (0x2)
Validity
Not Before: Jul 16 13:34:51 2026 GMT
Not After : Jul 15 13:34:51 2031 GMT
Subject:
countryName = GB
stateOrProvinceName = Nottinghamshire
localityName = Nottingham
organizationName = Server
organizationalUnitName = Production
commonName = test client
X509v3 extensions:
X509v3 Basic Constraints:
CA:FALSE
Netscape Comment:
OpenSSL Generated Certificate
X509v3 Subject Key Identifier:
62:BB:4A:7A:AD:29:49:48:C0:D9:79:D0:0C:D9:62:77:BE:1D:B9:15
X509v3 Authority Key Identifier:
82:54:F5:60:94:23:86:19:CC:67:E8:14:DB:48:18:88:21:55:A8:08
Certificate is to be certified until Jul 15 13:34:51 2031 GMT (1825 days)
Write out database with 1 new entries
Database updated
Warning: Ignoring -days without -x509; not generating a certificate
Using configuration from openssl.cnf
Warning: -enddate or -not_after option overriding -days option
Check that the request matches the signature
Signature ok
Certificate Details:
Serial Number: 3 (0x3)
Validity
Not Before: Aug 20 00:00:00 2012 GMT
Not After : Aug 21 00:00:00 2012 GMT
Subject:
countryName = GB
stateOrProvinceName = Nottinghamshire
localityName = Nottingham
organizationName = Server
organizationalUnitName = Production
commonName = test client expired
X509v3 extensions:
X509v3 Basic Constraints:
CA:FALSE
Netscape Comment:
OpenSSL Generated Certificate
X509v3 Subject Key Identifier:
62:BB:4A:7A:AD:29:49:48:C0:D9:79:D0:0C:D9:62:77:BE:1D:B9:15
X509v3 Authority Key Identifier:
82:54:F5:60:94:23:86:19:CC:67:E8:14:DB:48:18:88:21:55:A8:08
Certificate is to be certified until Aug 21 00:00:00 2012 GMT (-5077 days)
Write out database with 1 new entries
Database updated
Using configuration from openssl.cnf
Check that the request matches the signature
Signature ok
Certificate Details:
Serial Number: 4 (0x4)
Validity
Not Before: Jul 16 13:34:51 2026 GMT
Not After : Jul 15 13:34:51 2031 GMT
Subject:
countryName = GB
stateOrProvinceName = Nottinghamshire
localityName = Nottingham
organizationName = Server
organizationalUnitName = Production
commonName = test client with password
X509v3 extensions:
X509v3 Basic Constraints:
CA:FALSE
Netscape Comment:
OpenSSL Generated Certificate
X509v3 Subject Key Identifier:
B9:E1:C8:14:5E:55:81:67:E5:9A:23:AC:B4:CE:46:F5:17:D7:B8:4B
X509v3 Authority Key Identifier:
82:54:F5:60:94:23:86:19:CC:67:E8:14:DB:48:18:88:21:55:A8:08
Certificate is to be certified until Jul 15 13:34:51 2031 GMT (1825 days)
Write out database with 1 new entries
Database updated
Warning: Ignoring -days without -x509; not generating a certificate
Using configuration from openssl.cnf
Check that the request matches the signature
Signature ok
Certificate Details:
Serial Number: 5 (0x5)
Validity
Not Before: Jul 16 13:34:52 2026 GMT
Not After : Jul 15 13:34:52 2031 GMT
Subject:
countryName = GB
stateOrProvinceName = Nottinghamshire
localityName = Nottingham
organizationName = Server
organizationalUnitName = Production
commonName = test client revoked
X509v3 extensions:
X509v3 Basic Constraints:
CA:FALSE
Netscape Comment:
OpenSSL Generated Certificate
X509v3 Subject Key Identifier:
78:95:DC:43:B6:28:94:BC:86:DD:5E:CC:2A:A7:6F:92:7D:D2:50:7F
X509v3 Authority Key Identifier:
82:54:F5:60:94:23:86:19:CC:67:E8:14:DB:48:18:88:21:55:A8:08
Certificate is to be certified until Jul 15 13:34:52 2031 GMT (1825 days)
Write out database with 1 new entries
Database updated
Using configuration from openssl.cnf
Revoking Certificate 05.
Database updated
Using configuration from openssl.cnf
/build/source
pytest flags: -m pytest -k not\ \(test_01_zero_length_clientid\)
============================= test session starts ==============================
platform linux -- Python 3.14.6, pytest-9.0.3, pluggy-1.6.0
rootdir: /build/source
configfile: pyproject.toml
testpaths: tests, src
collected 163 items / 1 deselected / 162 selected
tests/lib/test_01_asyncio.py . [ 0%]
tests/lib/test_01_decorators.py . [ 1%]
tests/lib/test_01_keepalive_pingreq.py . [ 1%]
tests/lib/test_01_no_clean_session.py . [ 2%]
tests/lib/test_01_reconnect_on_failure.py .. [ 3%]
tests/lib/test_01_unpwd_empty_password_set.py . [ 4%]
tests/lib/test_01_unpwd_empty_set.py . [ 4%]
tests/lib/test_01_unpwd_set.py . [ 5%]
tests/lib/test_01_unpwd_unicode_set.py . [ 6%]
tests/lib/test_01_will_set.py . [ 6%]
tests/lib/test_01_will_unpwd_set.py . [ 7%]
tests/lib/test_02_subscribe_qos0.py . [ 8%]
tests/lib/test_02_subscribe_qos1.py . [ 8%]
tests/lib/test_02_subscribe_qos2.py . [ 9%]
tests/lib/test_02_unsubscribe.py . [ 9%]
tests/lib/test_03_publish_b2c_qos1.py . [ 10%]
tests/lib/test_03_publish_b2c_qos2.py . [ 11%]
tests/lib/test_03_publish_c2b_qos1_disconnect.py . [ 11%]
tests/lib/test_03_publish_c2b_qos2_disconnect.py . [ 12%]
tests/lib/test_03_publish_fill_inflight.py x [ 12%]
tests/lib/test_03_publish_helper_qos0.py .E [ 13%]
tests/lib/test_03_publish_helper_qos0_v5.py .E [ 14%]
tests/lib/test_03_publish_helper_qos1_disconnect.py . [ 14%]
tests/lib/test_03_publish_qos0.py . [ 15%]
tests/lib/test_03_publish_qos0_no_payload.py . [ 16%]
tests/lib/test_04_retain_qos0.py . [ 16%]
tests/lib/test_08_ssl_bad_cacert.py . [ 17%]
tests/lib/test_08_ssl_connect_alpn.py . [ 17%]
tests/lib/test_08_ssl_connect_cert_auth.py . [ 18%]
tests/lib/test_08_ssl_connect_cert_auth_pw.py . [ 19%]
tests/lib/test_08_ssl_connect_no_auth.py . [ 19%]
tests/lib/test_08_ssl_fake_cacert.py .E [ 20%]
tests/test_client.py ................................................... [ 51%]
............FF. [ 61%]
tests/test_matcher.py ................. [ 71%]
tests/test_mqttv5.py ..................... [ 84%]
tests/test_reasoncodes.py ... [ 86%]
tests/test_websocket_integration.py .................. [ 97%]
tests/test_websockets.py .... [100%]
==================================== ERRORS ====================================
_______________ ERROR at teardown of test_03_publish_helper_qos0 _______________
def fin():
stop_process(proc)
if proc.returncode != expected_returncode:
> raise RuntimeError(f"Client {name} exited with code {proc.returncode}, expected {expected_returncode}")
E RuntimeError: Client 03-publish-helper-qos0.py exited with code -2, expected 0
tests/lib/conftest.py:75: RuntimeError
--------------------------- Captured stderr teardown ---------------------------
Traceback (most recent call last):
File "/build/source/tests/lib/clients/03-publish-helper-qos0.py", line 6, in <module>
paho.mqtt.publish.single(
~~~~~~~~~~~~~~~~~~~~~~~~^
"pub/qos0/test",
^^^^^^^^^^^^^^^^
...<4 lines>...
client_id="publish-helper-qos0-test",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/nix/store/sbj26lca8mgrvgfwmzgmbxd28vnsbiz8-python3.14-paho-mqtt-2.1.0/lib/python3.14/site-packages/paho/mqtt/publish.py", line 305, in single
multiple([msg], hostname, port, client_id, keepalive, will, auth, tls,
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
protocol, transport, proxy_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/sbj26lca8mgrvgfwmzgmbxd28vnsbiz8-python3.14-paho-mqtt-2.1.0/lib/python3.14/site-packages/paho/mqtt/publish.py", line 228, in multiple
client.loop_forever()
~~~~~~~~~~~~~~~~~~~^^
File "/nix/store/sbj26lca8mgrvgfwmzgmbxd28vnsbiz8-python3.14-paho-mqtt-2.1.0/lib/python3.14/site-packages/paho/mqtt/client.py", line 2297, in loop_forever
rc = self._loop(timeout)
File "/nix/store/sbj26lca8mgrvgfwmzgmbxd28vnsbiz8-python3.14-paho-mqtt-2.1.0/lib/python3.14/site-packages/paho/mqtt/client.py", line 1703, in _loop
rc = self.loop_write()
File "/nix/store/sbj26lca8mgrvgfwmzgmbxd28vnsbiz8-python3.14-paho-mqtt-2.1.0/lib/python3.14/site-packages/paho/mqtt/client.py", line 2121, in loop_write
rc = self._packet_write()
File "/nix/store/sbj26lca8mgrvgfwmzgmbxd28vnsbiz8-python3.14-paho-mqtt-2.1.0/lib/python3.14/site-packages/paho/mqtt/client.py", line 3230, in _packet_write
self._sock_close()
~~~~~~~~~~~~~~~~^^
File "/nix/store/sbj26lca8mgrvgfwmzgmbxd28vnsbiz8-python3.14-paho-mqtt-2.1.0/lib/python3.14/site-packages/paho/mqtt/client.py", line 1135, in _sock_close
sock.close()
~~~~~~~~~~^^
File "/nix/store/jxyrvv4gbpnp3ap5iy7wxwl1sg4x2x88-python3-3.14.6/lib/python3.14/socket.py", line 511, in close
self._real_close()
~~~~~~~~~~~~~~~~^^
File "/nix/store/jxyrvv4gbpnp3ap5iy7wxwl1sg4x2x88-python3-3.14.6/lib/python3.14/socket.py", line 505, in _real_close
_ss.close(self)
~~~~~~~~~^^^^^^
KeyboardInterrupt
_____________ ERROR at teardown of test_03_publish_helper_qos0_v5 ______________
def fin():
stop_process(proc)
if proc.returncode != expected_returncode:
> raise RuntimeError(f"Client {name} exited with code {proc.returncode}, expected {expected_returncode}")
E RuntimeError: Client 03-publish-helper-qos0-v5.py exited with code -2, expected 0
tests/lib/conftest.py:75: RuntimeError
--------------------------- Captured stderr teardown ---------------------------
Traceback (most recent call last):
File "/build/source/tests/lib/clients/03-publish-helper-qos0-v5.py", line 7, in <module>
paho.mqtt.publish.single(
~~~~~~~~~~~~~~~~~~~~~~~~^
"pub/qos0/test",
^^^^^^^^^^^^^^^^
...<5 lines>...
protocol=paho.mqtt.client.MQTTv5,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/nix/store/sbj26lca8mgrvgfwmzgmbxd28vnsbiz8-python3.14-paho-mqtt-2.1.0/lib/python3.14/site-packages/paho/mqtt/publish.py", line 305, in single
multiple([msg], hostname, port, client_id, keepalive, will, auth, tls,
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
protocol, transport, proxy_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/sbj26lca8mgrvgfwmzgmbxd28vnsbiz8-python3.14-paho-mqtt-2.1.0/lib/python3.14/site-packages/paho/mqtt/publish.py", line 228, in multiple
client.loop_forever()
~~~~~~~~~~~~~~~~~~~^^
File "/nix/store/sbj26lca8mgrvgfwmzgmbxd28vnsbiz8-python3.14-paho-mqtt-2.1.0/lib/python3.14/site-packages/paho/mqtt/client.py", line 2297, in loop_forever
rc = self._loop(timeout)
File "/nix/store/sbj26lca8mgrvgfwmzgmbxd28vnsbiz8-python3.14-paho-mqtt-2.1.0/lib/python3.14/site-packages/paho/mqtt/client.py", line 1703, in _loop
rc = self.loop_write()
File "/nix/store/sbj26lca8mgrvgfwmzgmbxd28vnsbiz8-python3.14-paho-mqtt-2.1.0/lib/python3.14/site-packages/paho/mqtt/client.py", line 2121, in loop_write
rc = self._packet_write()
File "/nix/store/sbj26lca8mgrvgfwmzgmbxd28vnsbiz8-python3.14-paho-mqtt-2.1.0/lib/python3.14/site-packages/paho/mqtt/client.py", line 3230, in _packet_write
self._sock_close()
~~~~~~~~~~~~~~~~^^
File "/nix/store/sbj26lca8mgrvgfwmzgmbxd28vnsbiz8-python3.14-paho-mqtt-2.1.0/lib/python3.14/site-packages/paho/mqtt/client.py", line 1135, in _sock_close
sock.close()
~~~~~~~~~~^^
File "/nix/store/jxyrvv4gbpnp3ap5iy7wxwl1sg4x2x88-python3-3.14.6/lib/python3.14/socket.py", line 511, in close
self._real_close()
~~~~~~~~~~~~~~~~^^
File "/nix/store/jxyrvv4gbpnp3ap5iy7wxwl1sg4x2x88-python3-3.14.6/lib/python3.14/socket.py", line 505, in _real_close
_ss.close(self)
~~~~~~~~~^^^^^^
KeyboardInterrupt
_________________ ERROR at teardown of test_08_ssl_fake_cacert _________________
def fin():
stop_process(proc)
if proc.returncode != expected_returncode:
> raise RuntimeError(f"Client {name} exited with code {proc.returncode}, expected {expected_returncode}")
E RuntimeError: Client 08-ssl-fake-cacert.py exited with code -2, expected 0
tests/lib/conftest.py:75: RuntimeError
----------------------------- Captured stderr call -----------------------------
/build/source/tests/lib/clients/08-ssl-fake-cacert.py:13: DeprecationWarning: Callback API version 1 is deprecated, update to latest version
mqttc = mqtt.Client(mqtt.CallbackAPIVersion.VERSION1, "08-ssl-fake-cacert")
--------------------------- Captured stderr teardown ---------------------------
Traceback (most recent call last):
File "/build/source/tests/lib/clients/08-ssl-fake-cacert.py", line 23, in <module>
mqttc.connect("localhost", get_test_server_port())
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/sbj26lca8mgrvgfwmzgmbxd28vnsbiz8-python3.14-paho-mqtt-2.1.0/lib/python3.14/site-packages/paho/mqtt/client.py", line 1435, in connect
return self.reconnect()
~~~~~~~~~~~~~~^^
File "/nix/store/sbj26lca8mgrvgfwmzgmbxd28vnsbiz8-python3.14-paho-mqtt-2.1.0/lib/python3.14/site-packages/paho/mqtt/client.py", line 1598, in reconnect
self._sock = self._create_socket()
~~~~~~~~~~~~~~~~~~~^^
File "/nix/store/sbj26lca8mgrvgfwmzgmbxd28vnsbiz8-python3.14-paho-mqtt-2.1.0/lib/python3.14/site-packages/paho/mqtt/client.py", line 4612, in _create_socket
sock = self._ssl_wrap_socket(sock)
File "/nix/store/sbj26lca8mgrvgfwmzgmbxd28vnsbiz8-python3.14-paho-mqtt-2.1.0/lib/python3.14/site-packages/paho/mqtt/client.py", line 4671, in _ssl_wrap_socket
ssl_sock.do_handshake()
~~~~~~~~~~~~~~~~~~~~~^^
File "/nix/store/jxyrvv4gbpnp3ap5iy7wxwl1sg4x2x88-python3-3.14.6/lib/python3.14/ssl.py", line 1372, in do_handshake
self._sslobj.do_handshake()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
KeyboardInterrupt
=================================== FAILURES ===================================
________________ TestCompatibility.test_callback_v1_mqtt3[unix] ________________
self = <tests.test_client.TestCompatibility object at 0x7ffff5557820>
fake_broker = <tests.testsupport.broker.FakeBroker object at 0x7ffff4fce2e0>
def test_callback_v1_mqtt3(self, fake_broker):
callback_called = []
with pytest.deprecated_call():
mqttc = client.Client(
CallbackAPIVersion.VERSION1,
"client-id",
userdata=callback_called,
transport=fake_broker.transport,
)
def on_connect(cl, userdata, flags, rc):
assert isinstance(cl, client.Client)
assert isinstance(flags, dict)
assert isinstance(flags["session present"], int)
assert isinstance(rc, int)
userdata.append("on_connect")
cl.subscribe([("topic", 0)])
def on_subscribe(cl, userdata, mid, granted_qos):
assert isinstance(cl, client.Client)
assert isinstance(mid, int)
assert isinstance(granted_qos, tuple)
assert isinstance(granted_qos[0], int)
userdata.append("on_subscribe")
cl.publish("topic", "payload", 2)
def on_publish(cl, userdata, mid):
assert isinstance(cl, client.Client)
assert isinstance(mid, int)
userdata.append("on_publish")
def on_message(cl, userdata, message):
assert isinstance(cl, client.Client)
assert isinstance(message, client.MQTTMessage)
userdata.append("on_message")
cl.unsubscribe("topic")
def on_unsubscribe(cl, userdata, mid):
assert isinstance(cl, client.Client)
assert isinstance(mid, int)
userdata.append("on_unsubscribe")
cl.disconnect()
def on_disconnect(cl, userdata, rc):
assert isinstance(cl, client.Client)
assert isinstance(rc, int)
userdata.append("on_disconnect")
mqttc.on_connect = on_connect
mqttc.on_subscribe = on_subscribe
mqttc.on_publish = on_publish
mqttc.on_message = on_message
mqttc.on_unsubscribe = on_unsubscribe
mqttc.on_disconnect = on_disconnect
mqttc.enable_logger()
mqttc.connect_async("localhost", fake_broker.port)
mqttc.loop_start()
try:
fake_broker.start()
connect_packet = paho_test.gen_connect(
"client-id", keepalive=60)
fake_broker.expect_packet("connect", connect_packet)
connack_packet = paho_test.gen_connack(rc=0)
count = fake_broker.send_packet(connack_packet)
assert count # Check connection was not closed
assert count == len(connack_packet)
subscribe_packet = paho_test.gen_subscribe(1, "topic", 0)
fake_broker.expect_packet("subscribe", subscribe_packet)
suback_packet = paho_test.gen_suback(1, 0)
count = fake_broker.send_packet(suback_packet)
assert count # Check connection was not closed
assert count == len(suback_packet)
publish_packet = paho_test.gen_publish("topic", 2, "payload", mid=2)
fake_broker.expect_packet("publish", publish_packet)
pubrec_packet = paho_test.gen_pubrec(mid=2)
count = fake_broker.send_packet(pubrec_packet)
assert count # Check connection was not closed
assert count == len(pubrec_packet)
pubrel_packet = paho_test.gen_pubrel(mid=2)
fake_broker.expect_packet("pubrel", pubrel_packet)
pubcomp_packet = paho_test.gen_pubcomp(mid=2)
count = fake_broker.send_packet(pubcomp_packet)
assert count # Check connection was not closed
assert count == len(pubcomp_packet)
publish_from_broker_packet = paho_test.gen_publish("topic", qos=0, payload="payload", mid=99)
count = fake_broker.send_packet(publish_from_broker_packet)
assert count # Check connection was not closed
assert count == len(publish_from_broker_packet)
unsubscribe_packet = paho_test.gen_unsubscribe(mid=3, topic="topic")
fake_broker.expect_packet("unsubscribe", unsubscribe_packet)
suback_packet = paho_test.gen_unsuback(mid=3)
count = fake_broker.send_packet(suback_packet)
assert count # Check connection was not closed
assert count == len(suback_packet)
disconnect_packet = paho_test.gen_disconnect()
fake_broker.expect_packet("disconnect", disconnect_packet)
> assert callback_called == [
"on_connect",
"on_subscribe",
"on_publish",
"on_message",
"on_unsubscribe",
"on_disconnect",
]
E AssertionError: assert ['on_connect'..._unsubscribe'] == ['on_connect'...n_disconnect']
E
E Right contains one more item: 'on_disconnect'
E Use -v to get more diff
tests/test_client.py:867: AssertionError
________________ TestCompatibility.test_callback_v2_mqtt3[tcp] _________________
self = <tests.test_client.TestCompatibility object at 0x7ffff4e59010>
fake_broker = <tests.testsupport.broker.FakeBroker object at 0x7ffff5434fa0>
def test_callback_v2_mqtt3(self, fake_broker):
callback_called = []
mqttc = client.Client(
CallbackAPIVersion.VERSION2,
"client-id",
userdata=callback_called,
transport=fake_broker.transport,
)
def on_connect(cl, userdata, flags, reason, properties):
assert isinstance(cl, client.Client)
assert isinstance(flags, client.ConnectFlags)
assert isinstance(reason, ReasonCode)
assert isinstance(properties, Properties)
assert reason == 0
assert properties.isEmpty()
userdata.append("on_connect")
cl.subscribe([("topic", 0)])
def on_subscribe(cl, userdata, mid, reason_code_list, properties):
assert isinstance(cl, client.Client)
assert isinstance(mid, int)
assert isinstance(reason_code_list, list)
assert isinstance(reason_code_list[0], ReasonCode)
assert isinstance(properties, Properties)
assert properties.isEmpty()
userdata.append("on_subscribe")
cl.publish("topic", "payload", 2)
def on_publish(cl, userdata, mid, reason_code, properties):
assert isinstance(cl, client.Client)
assert isinstance(mid, int)
assert isinstance(reason_code, ReasonCode)
assert isinstance(properties, Properties)
assert properties.isEmpty()
userdata.append("on_publish")
def on_message(cl, userdata, message):
assert isinstance(cl, client.Client)
assert isinstance(message, client.MQTTMessage)
userdata.append("on_message")
cl.unsubscribe("topic")
def on_unsubscribe(cl, userdata, mid, reason_code_list, properties):
assert isinstance(cl, client.Client)
assert isinstance(mid, int)
assert isinstance(reason_code_list, list)
assert len(reason_code_list) == 0
assert isinstance(properties, Properties)
assert properties.isEmpty()
userdata.append("on_unsubscribe")
cl.disconnect()
def on_disconnect(cl, userdata, flags, reason_code, properties):
assert isinstance(cl, client.Client)
assert isinstance(flags, client.DisconnectFlags)
assert isinstance(reason_code, ReasonCode)
assert isinstance(properties, Properties)
assert properties.isEmpty()
userdata.append("on_disconnect")
mqttc.on_connect = on_connect
mqttc.on_subscribe = on_subscribe
mqttc.on_publish = on_publish
mqttc.on_message = on_message
mqttc.on_unsubscribe = on_unsubscribe
mqttc.on_disconnect = on_disconnect
mqttc.enable_logger()
mqttc.connect_async("localhost", fake_broker.port)
mqttc.loop_start()
try:
fake_broker.start()
connect_packet = paho_test.gen_connect(
"client-id", keepalive=60)
fake_broker.expect_packet("connect", connect_packet)
connack_packet = paho_test.gen_connack(rc=0)
count = fake_broker.send_packet(connack_packet)
assert count # Check connection was not closed
assert count == len(connack_packet)
subscribe_packet = paho_test.gen_subscribe(1, "topic", 0)
fake_broker.expect_packet("subscribe", subscribe_packet)
suback_packet = paho_test.gen_suback(1, 0)
count = fake_broker.send_packet(suback_packet)
assert count # Check connection was not closed
assert count == len(suback_packet)
publish_packet = paho_test.gen_publish("topic", 2, "payload", mid=2)
fake_broker.expect_packet("publish", publish_packet)
pubrec_packet = paho_test.gen_pubrec(mid=2)
count = fake_broker.send_packet(pubrec_packet)
assert count # Check connection was not closed
assert count == len(pubrec_packet)
pubrel_packet = paho_test.gen_pubrel(mid=2)
fake_broker.expect_packet("pubrel", pubrel_packet)
pubcomp_packet = paho_test.gen_pubcomp(mid=2)
count = fake_broker.send_packet(pubcomp_packet)
assert count # Check connection was not closed
assert count == len(pubcomp_packet)
publish_from_broker_packet = paho_test.gen_publish("topic", qos=0, payload="payload", mid=99)
count = fake_broker.send_packet(publish_from_broker_packet)
assert count # Check connection was not closed
assert count == len(publish_from_broker_packet)
unsubscribe_packet = paho_test.gen_unsubscribe(mid=3, topic="topic")
fake_broker.expect_packet("unsubscribe", unsubscribe_packet)
suback_packet = paho_test.gen_unsuback(mid=3)
count = fake_broker.send_packet(suback_packet)
assert count # Check connection was not closed
assert count == len(suback_packet)
disconnect_packet = paho_test.gen_disconnect()
fake_broker.expect_packet("disconnect", disconnect_packet)
> assert callback_called == [
"on_connect",
"on_subscribe",
"on_publish",
"on_message",
"on_unsubscribe",
"on_disconnect",
]
E AssertionError: assert ['on_connect'..._unsubscribe'] == ['on_connect'...n_disconnect']
E
E Right contains one more item: 'on_disconnect'
E Use -v to get more diff
tests/test_client.py:1007: AssertionError
=========================== short test summary info ============================
XFAIL tests/lib/test_03_publish_fill_inflight.py::test_03_publish_fill_inflight
= 2 failed, 159 passed, 1 deselected, 1 xfailed, 3 errors in 142.09s (0:02:22) =Additional context
This is a dependency of quodlibet-full, thus it breaks quodlibet for me.
System metadata
- system:
"x86_64-linux" - host os:
Linux 6.18.38, NixOS, 26.11 (Zokor), 26.11.20260705.d407951 - multi-user?:
yes - sandbox:
yes - version:
nix-env (Lix, like Nix) 2.95.2 System type: x86_64-linux Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/bs/.config/nix/nix.conf:/nix/store/s2w5s3i0qg8f85g6c8rh69c0pl77b7pm-plasma-workspace-6.7.2/etc/xdg/nix/nix.conf:/nix/store/6cb3zjnwz0v3dz0cxralv4ym8y9al7hd-kglobalacceld-6.7.2/etc/xdg/nix/nix.conf:/nix/store/vah0fry2dsj8n2ai17ig7lb90xkw4sk5-baloo-6.27.0/etc/xdg/nix/nix.conf:/home/bs/.config/kdedefaults/nix/nix.conf:/home/bs/.config/kdedefaults/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/bs/.local/share/flatpak/exports/etc/xdg/nix/nix.conf:/var/lib/flatpak/exports/etc/xdg/nix/nix.conf:/home/bs/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/bs/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/bs/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/vjdi2nfyh74xnych9c6hk51il4jch2c6-lix-2.95.2/share - nixpkgs:
/nix/store/ifpab9hxqmk2biwy594da8ipxzsp3y4s-source
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
- I assert that I have read the automation/AI policy and that this issue report complies with it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Reacted by Krystian, Bazyli Cyran, Robert Cambridge, Gorelabo, Samuel Holland, Leo Collins, Jascha, Dillon Beliveau, PierreBorine, León and 11 more
Metadata
Metadata
Assignees
Labels
0.kind: build failureA package fails to build6.topic: pythonPython is a high-level, general-purpose programming language.
Activity
dotlambda commentedon Jul 16, 2026
The tests seem to be flaky and since I can't reproduce this it would be nice if everyone could post the exact list of tests resulting in an ERROR or FAIL for them.
dotlambda commentedon Jul 16, 2026
In OP's case this would be
ERROR at teardown of test_03_publish_helper_qos0ERROR at teardown of test_03_publish_helper_qos0_v5ERROR at teardown of test_08_ssl_fake_cacertTestCompatibility.test_callback_v1_mqtt3[unix]TestCompatibility.test_callback_v2_mqtt3[tcp]sadorowo commentedon Jul 17, 2026
in my case:
ERROR at teardown of test_03_publish_helper_qos1_disconnectTestCompatibility.test_callback_v1_mqtt3[tcp]TestCompatibility.test_callback_v1_mqtt3[unix]TestCompatibility.test_callback_v2_mqtt3[tcp]TestCompatibility.test_callback_v2_mqtt3[unix]x123 commentedon Jul 17, 2026
ERROR at teardown of test_01_no_clean_sessionTestCompatibility.test_callback_v1_mqtt3[unix]leonbohn commentedon Jul 22, 2026
ERROR at teardown of test_03_publish_helper_qos0ERROR at teardown of test_03_publish_helper_qos0_v5ERROR at teardown of test_03_publish_helper_qos1_disconnectERROR at teardown of test_08_ssl_fake_cacertfix(zeta): disable paho-mqtt's flaky test suite
chore: update flake inputs (#519)
JamieMagee commentedon Jul 24, 2026
I think I fixed this upstream: eclipse-paho/paho.mqtt.python#934
dotlambda commentedon Jul 24, 2026
@JamieMagee Mind making a PR that applies your patch to our package?
python3Package.paho-mqtt: backport fix for flaky tests
leonbohn commentedon Jul 24, 2026
I've tried creating one here #545193. There was some interference with the other patch which is applied before, so I had to create a patch manually.
This solves the failing tests for me and I can locally build the package again.
python3Package.paho-mqtt: backport fix for flaky tests
python3Package.paho-mqtt: backport fix for flaky tests
python3Package.paho-mqtt: backport fix for flaky tests