(10093, 'Successful WSAStartup() not yet performed') ?

j vickroy jim.vickroy at noaa.gov
Wed Mar 6 15:50:22 EST 2002


I'm using Python 2.2 on a Win 2k machine.  My socket script is generating
the following error:

   (10004, 'Interrupted system call')

Thereafter, the following error is generated until the script is stopped:

 (10093, 'Successful WSAStartup() not yet performed')

Could someone shed some light on this?


Here is the code snippet:
>
>#----------------------------------------
>class Interface(goes12_sxi.announcement.Publisher):
>
>   def __init__(self):
>      self.name = 'pre-processor interface'
>      self.host = generic.IPC.Visible_Local_Socket_Host_Name()
>      self.port = Socket_Port()
>      self.stop_signal   = threading.Event()
>      self.server_socket = generic.IPC.socket_listener(self.port)
>
>   def _receive_messages(self):
>
>      journal.put(goes12_sxi.journal.Note(self, 'started'))
>
>      while not self.stop_signal.isSet():
>
>         try:
>            # the following statement is causing the exception
###############
>            transmitter = self.server_socket.accept() # blocks till
something arrives
>            .....
>         except Exception, details:
>            .....
>#----------------------------------------
>






More information about the Python-list mailing list