Please try and execute the following:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
Keep on getting errors that socket.AF_INET and socket.SOCK_STREAM doesn't exist, when obviously it does.
I have removed/readded the python interpreter/grammer. Moved the piece of code in and out of classes/packages, removed everything and had a simple script. Same thing. I'm running on Centos 5.4, python 2.4.3. I can execute those statements fro the commandline, so I do have the packages. Eclipse Galileo. Checked the system PYTHONPATH and it does include the socket.py. I can browse the socket.py source from the IDE by pressing F3 while standing on the import socket keyword.
Is 'socket' on your forced builtins? (see http://pydev.org/manual_101_interpreter.html)
What's your platform?
Thank you very much, that sorted the problem. I didn't quite understand what the builtins we're supposed to do, but I get it now.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.