Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zmsg import failure #20

Open
mhaberler opened this issue Feb 12, 2014 · 0 comments
Open

zmsg import failure #20

mhaberler opened this issue Feb 12, 2014 · 0 comments

Comments

@mhaberler
Copy link
Member

I'm using czmq e831fffe5 + libzmq ecb9770, pyczmq 8ad9d50 (all latest and greatest)

$ python
Python 2.7.6 (default, Jan 11 2014, 17:06:02)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.

from pyczmq import zmq, zctx, zsocket, zmsg, zframe, zbeacon, zstr
Traceback (most recent call last):
File "", line 1, in
File "build/bdist.linux-i686/egg/pyczmq/zmsg.py", line 66, in
File "build/bdist.linux-i686/egg/pyczmq/_cffi.py", line 17, in cdef
File "/usr/local/lib/python2.7/dist-packages/cffi/api.py", line 102, in cdef
self._parser.parse(csource, override=override)
File "/usr/local/lib/python2.7/dist-packages/cffi/cparser.py", line 154, in parse
self._internal_parse(csource)
File "/usr/local/lib/python2.7/dist-packages/cffi/cparser.py", line 159, in _internal_parse
ast, macros = self._parse(csource)
File "/usr/local/lib/python2.7/dist-packages/cffi/cparser.py", line 126, in _parse
self.convert_pycparser_error(e, csource)
File "/usr/local/lib/python2.7/dist-packages/cffi/cparser.py", line 148, in convert_pycparser_error
raise api.CDefError(msg)
cffi.api.CDefError: cannot parse "int zmsg_push (zmsg_t *self, zframe_t *frame);"
:8:30: before: zframe_t

if I add

cdef('typedef struct _zframe_t zframe_t;')

to zmsg.py, the error's gone; not sure this is the right fix though.

-m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant