[zeromq-dev] Hilarious(?) weird error when using PyZMQ 14.1.1 + zmq.auth.create_certificates()

Jonas Thiem jonasthiem at googlemail.com
Sat Mar 29 04:12:16 CET 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I installed PyZMQ 14.1.1 through pip, but had a libzmq 3.x installed
system-wide (package manager). For some reason it didn't care to
install libzmq 4.x too or say anything about it, so that is why things
broke as it appears!

Now I removed the libzmq 3.x and forced a reinstall of PyZMQ 14.1.1
through pip, and now it has also installed a proper libzmq 4.x along
with it and things work again.

On 03/28/2014 11:43 PM, MinRK wrote:
> That is indeed an interesting failure. How did you install libzmq
> and libsodium? What is the output of a simple:
> 
> python -c 'import zmq; print(zmq.curve_keypair())'
> 
> -MinRK
> 
> 
> On Fri, Mar 28, 2014 at 2:23 AM, Jonas Thiem
> <jonasthiem at googlemail.com <mailto:jonasthiem at googlemail.com>>
> wrote:
> 
> Hi *,
> 
> Traceback (most recent call last): File "./keycertgen.py", line 44,
> in <module> zmq.auth.create_certificates(path, "key") File
> "/usr/lib64/python3.3/site-packages/zmq/auth/certs.py", line 67, in
> create_certificates public_key, secret_key = zmq.curve_keypair() 
> File "utils.pyx", line 51, in
> zmq.backend.cython.utils.curve_keypair 
> (zmq/backend/cython/utils.c:801) File
> "/usr/lib64/python3.3/site-packages/zmq/error.py", line 127, in 
> _check_rc raise ZMQError(errno) zmq.error.ZMQError: Success
> 
> It is quite amusing in a way, but still I would prefer if it
> actually worked. Same problem when calling zmq.curve_keypair()
> directly (not really surprising since that is also what
> zmq.auth.create_certificates appears to use from the callback).
> 
> Any ideas what I need to do so zmq.curve_keypair() works properly?
> 
> Regards, Jonas Thiem 
> _______________________________________________ zeromq-dev mailing
> list zeromq-dev at lists.zeromq.org
> <mailto:zeromq-dev at lists.zeromq.org> 
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> 
> 
> 
> 
> _______________________________________________ zeromq-dev mailing
> list zeromq-dev at lists.zeromq.org 
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJTNjoHAAoJEBIDTbbx8YkeJrMP/AluGVbTpa52u/0gzDZ+hIu0
JDtX6ipL4clu8Mg3zm/p+8tGrkNQGFzU9+6SPnM2QoXn7wfliGLNiiMefcsZ228S
uYaoakLl+6OF5i3467pS0aEnGkk9H/tSneBMjqkwV13fZ2OuRD/g27mZnGsTidGU
sDVT8iJMb6gYg0axod2W3fzjno0BSjQ/lRVe3UkCtrHwZfMwPjxgpG8thbmmMQml
/KioKJT9RxqfvTu/kKzB0XHWUFlDORXvjZpILdssF2lB4PAwWA/eEo/4F+Tppmsa
oJfTjKNJ5E9zxfQnk3RVVCMmJ8dMQFFpKNxrYp5ewsLrWAtd9hSXpAzQiLB3NYzg
eukJMKCRTl3lZ0WqzaWuAx3NNSCzTjA8RYqiHg7DRMyI1dSxI3uE1WzLykZ0+j/f
Jr7wopBtHWOBlwIsIjOf1U88ps08LqfWW4X/ZKeDm/Dsbb+3C4NX6eeXFJiEFUWq
8QeS+4+19u1N9Z2omUbSZqQ6LWbCpqb9ugfqJJgYnf4pUpcP7qxkmEj1x42pSf01
ylCYKMqrfwH+1EYXeyUEyxhEqj+zBrueSll8SpPuhzs7z1yzyabpNbKORBx+6/PT
0SmawPQO30a51L0g+hQyGNSthOcpKG2itUWbr+0gGTUYQyPVSOiS2v62UlXLnDSN
hrZQb/u3dZYURsuN6cdv
=TaoV
-----END PGP SIGNATURE-----



More information about the zeromq-dev mailing list