[zeromq-dev] czmq python binding test fail
Benjamin Henrion
zoobab at gmail.com
Fri Feb 5 09:34:40 CET 2016
Hi,
Czmq python binding test fail, I have got the same error with either
python2.7 or python3.4 (see below).
Also I would like to know how to properly install this binding on my
system, ">>> import czmq" works when I am in the current directory,
does not work when I am outside.
https://github.com/zeromq/czmq/issues/1345
$ python2.7 test.py
........E.
======================================================================
ERROR: test_zmsg (__main__.TestCZMQ)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test.py", line 708, in test_zmsg
buffer_size = msg.encode(buffer)
File "/home/zoobab/soft/czmq-master/bindings/python/czmq/_czmq_ctypes.py",
line 4357, in encode
return lib.zmsg_encode(self._as_parameter_,
byref(c_void_p.from_param(buffer)))
ArgumentError: argument 2: <type 'exceptions.TypeError'>: expected
LP_c_void_p instance instead of pointer to LP_c_byte
----------------------------------------------------------------------
Ran 10 tests in 2.947s
FAILED (errors=1)
--
Benjamin Henrion <bhenrion at ffii.org>
FFII Brussels - +32-484-566109 - +32-2-3500762
"In July 2005, after several failed attempts to legalise software
patents in Europe, the patent establishment changed its strategy.
Instead of explicitly seeking to sanction the patentability of
software, they are now seeking to create a central European patent
court, which would establish and enforce patentability rules in their
favor, without any possibility of correction by competing courts or
democratically elected legislators."
More information about the zeromq-dev
mailing list