[zeromq-dev] zeromq-2.0-alpha3 python binding error:Function notimplemented fd != -1 (fd_signaler.cpp:43)

Martin Sustrik sustrik at fastmq.com
Fri Oct 23 13:09:32 CEST 2009


Ah, I see! It looks like you are using 0MQ/1.0 python wrapper instead of 
0MQ/2.0 one. Delete all old pyzmq libraries and try again.

Martin

bawbaw hu wrote:
> hi,
> it is 0MQ/2.0
> 
> My test program
> 
> import libpyzmq
> print dir(libpyzmq)
> ctx = libpyzmq.Context (1, 1)
> s = libpyzmq.Socket (ctx, libpyzmq.REP)
> 
> 
> 2009/10/23 Martin Sustrik <sustrik at fastmq.com <mailto:sustrik at fastmq.com>>
> 
>     bawbaw hu wrote:
> 
>         When i update the 0MQ ,i can use --disable-eventfd configure option
> 
>         but python lib seen some error
> 
>         the code
>         import sys
>         import time
>         import libpyzmq
>         print dir(libpyzmq)
>         ctx = libpyzmq.Context (1, 1);  s = libpyzmq.Socket (ctx,
>         libpyzmq.REP)
> 
>         the console show
> 
>         sudo python test_zmq_send.py
>         ['MESSAGE_DATA', 'MESSAGE_GAP', 'NO_LIMIT', 'NO_SWAP',
>         'SCOPE_GLOBAL', 'SCOPE_LOCAL', 'STYLE_DATA_DISTRIBUTION',
>         'STYLE_LOAD_BALANCING', 'Zmq', '__doc__', '__file__', '__name__']
>         Traceback (most recent call last):
>          File "test_zmq_send.py", line 7, in <module>
>            ctx = libpyzmq.Context (1, 1);  AttributeError: 'module'
>         object has no attribute 'Context'
> 
> 
>     Hm. That's the current version of 0MQ/2.0, right? Python biding
>     seems working on my box. Can you possibly post your test program?
> 
>     Martin
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev




More information about the zeromq-dev mailing list