Apologies if this is really basic stuff...
I run python inside cygwin on my windows98 box. (I have recently
upgraded from python 2.1 to 2.2, but I don't know if that is the
problem because I haven't tried to use socket.py until now). I traced
my problem down to the python library socket. Here is a session:
Python 2.2.2 (#1, Dec 31 2002, 12:24:34)
[GCC 3.2 20020927 (prerelease)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.2/socket.py", line 41, in ?
from _socket import *
ImportError: dlopen: Win32 error 1157
I found out that _socket is meant to be built-in so I did this:
('__builtin__', '__main__', '_sre', '_symtable', 'errno',
'gc', 'imp', 'marshal', 'new', 'posix', 'signal', 'sys', 'thread',
(Apparently '_socket' should appear above).
So what's going on? Is my installation totally mangled, or is there
some easy fix? I have no _socket.py, but I do have a _socket.dll
Thanks in advance,
pballard at ozemail.com.au