Hi
Does anyone know why using version 1.4.2 final the following error occurs?
from socket import *
serverHost = ''
serverPort = 2000
s = socket(AF_INET, SOCK_STREAM) # create a TCP socket
s.connect((serverHost, serverPort)) # connect to server on the port
This results in an error on the s.connect() call:
error: (22, 'Invalid argument')
A similar error occurs if you call s.bind()
both scripts work fine in other environments.
I am also not sure why some standard library modules are
missing for example all
of BaseHTTPServer and SocketServer are not available.
Anyone have any ideas?
Regards

Reply With Quote

