pyzmq icon indicating copy to clipboard operation
pyzmq copied to clipboard

Documentation libzmq version typo

Open bmcdonald3 opened this issue 2 years ago • 2 comments

Looking at the documentation, I am seeing that libzmq versions (≥ 3.2.2, ≥ 4.0.1 ) are supported (https://pyzmq.readthedocs.io/en/latest/#supported-libzmq), but am seeing zmq.error.ZMQVersionError: zmq.has requires libzmq >= 4.1, have 4.0.4 on my machine. This is confusing to me, since this fits the constraints of the docs, but is being displayed as an error.

Is this a typo with the documentation or a mischecking by the error? (possibly 4.1.0 was meant, instead of 4.0.1 in the docs?)

Edit: This is pyzmq version 24.0.1 (did not see this error on 24.0.0)

bmcdonald3 avatar Sep 21 '22 14:09 bmcdonald3

This is not a typo. zmq.has is a binding for libzmq's zmq_has, which was introduced in libzmq 4.1. PyZMQ builds against lots of different libzmq versions, but the features available depend on the underlying libzmq.

minrk avatar Sep 21 '22 18:09 minrk

What's zmq.zmq_version() in your 24.0.0 and 24.0.1 installs? 4.0 is 8 years out of date, so it's a bit surprising to see it in 2022.

minrk avatar Sep 21 '22 18:09 minrk