Python does not find the member "wait_read" in "Gevent.socket"

Asked

Viewed 34 times

1

import gevent

from gevent import socket

from gevent.pool import Pool

from gevent.event import Event

.

.

.

def __receive__(self):

        """ 
        receive response packets 
        """
        while not self.die_event.is_set():
            # wait till we can recv
            try:
                socket.wait_read(self.socket.fileno())
            except socket.error, (errno,msg):
                if errno == socket.EBADF:
                    print "interrupting wait_read"
                    return
                # reraise original exceptions
                print "re-throwing socket exception on wait_read()"
                raise

Error: [E1101]187: Gping.receive:Module socket has no wait_read Member

  • You’re not redefining the name socket somewhere in the code, is?

  • It would be this here: 'self.socket = socket.socket(socket.AF_INET, socket.SOCK_RAW, icmp)' ?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.