socket error
Duke
mad at sympatico.ca
Wed Jul 5 23:09:32 EDT 2000
I'm using Python 1.5.2 for Windows 98, and am trying to do some socket
stuff. Copying an example right out of the manual (section 7.2.2), I get
the following error:
Traceback (innermost last):
File "C:\Programming\Python\Tools\idle\ScriptBinding.py", line 131, in
run_module_event
execfile(filename, mod.__dict__)
File "C:/Programming/Python/socket.py", line 5, in ?
s = socket (AF_INET, SOCK_STREAM)
NameError: socket
Here are the first 5 lines in the script:
# Test server script
from socket import *
HOST = ''
PORT = 50007
s = socket (AF_INET, SOCK_STREAM)
The example I'm using works fine on my Linux box Python interpreter, version
1.5.2.
Any ideas?
If you need more info on hardware or software, let me know.
Thanks,
-- Duke.
More information about the Python-list
mailing list