WSAStartup failed: error code 10107

R

ralphdepping

Trying to get moinmoin wiki working on Windows 2000 using IIS and
python. I get the following error when trying to view the start page
after insalling moinmoin and python - key error seems to be at the end
related to socket.py (ImportError: WSAStartup failed: error code
10107). 10107 is "A system call that should never fail has
failed"...which isn't very helpful. Any ideas what the problem may be?

Thanks,
Ralph

CGI Error
The specified CGI application misbehaved by not returning a complete
set of HTTP headers. The headers it did return are:


Traceback (most recent call last):
File "C:\Moin\wiki\moin.cgi", line 40, in ?
from MoinMoin.request import RequestCGI
File "C:\Moin\Lib\site-packages\MoinMoin\request.py", line 10, in ?
import os, re, time, sys, cgi, StringIO
File "C:\Python\lib\cgi.py", line 39, in ?
import urllib
File "C:\Python\lib\urllib.py", line 26, in ?
import socket
File "C:\Python\lib\socket.py", line 44, in ?
import _socket
ImportError: WSAStartup failed: error code 10107
 
R

Rob Wolfe

Trying to get moinmoin wiki working on Windows 2000 using IIS and
python. I get the following error when trying to view the start page
after insalling moinmoin and python - key error seems to be at the end
related to socket.py (ImportError: WSAStartup failed: error code
10107). 10107 is "A system call that should never fail has
failed"...which isn't very helpful. Any ideas what the problem may be?

Thanks,
Ralph

CGI Error
The specified CGI application misbehaved by not returning a complete
set of HTTP headers. The headers it did return are:


Traceback (most recent call last):
File "C:\Moin\wiki\moin.cgi", line 40, in ?
from MoinMoin.request import RequestCGI
File "C:\Moin\Lib\site-packages\MoinMoin\request.py", line 10, in ?
import os, re, time, sys, cgi, StringIO
File "C:\Python\lib\cgi.py", line 39, in ?
import urllib
File "C:\Python\lib\urllib.py", line 26, in ?
import socket
File "C:\Python\lib\socket.py", line 44, in ?
import _socket
ImportError: WSAStartup failed: error code 10107

I'm not sure if that helps but check if you have multiple
winsock.dll files on the machine.
Maybe in the system path you have some old winsock.dll.

regards,
Rob
 
R

ralphdepping

Thanks for the suggestion Rob. All I can find are 2 copies of
winsock.dll:
c:/WINNT/system32/winsock.dll
c:/WINNT/system32/dllcache/winsock.dll
They're both the same version 3.10.0.13

I assume it's ok to have a copy in the dllcach directory and that's not
a source of the problem?

Does python require a specific version of winsock.dll? The OS is
windows 2000 5.00.2195 Service Pack 4.

Cheers,
Ralph
 
R

Rob Wolfe

Thanks for the suggestion Rob. All I can find are 2 copies of
winsock.dll:
c:/WINNT/system32/winsock.dll
c:/WINNT/system32/dllcache/winsock.dll
They're both the same version 3.10.0.13

I assume it's ok to have a copy in the dllcach directory and that's not
a source of the problem?

Does python require a specific version of winsock.dll? The OS is
windows 2000 5.00.2195 Service Pack 4.

No, python doesn't require specific version of winsock.dll.

On my XP I have:

winsock.dll - 3.10.0.103
ws2_32.dll - 5.1.2600.2180
wsock32.dll - 5.1.2600.2180

and everything works fine.

No other idea, but I'm almost sure that problem
is on the OS side not on python side.

Regards,
Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,807
Messages
2,569,683
Members
45,435
Latest member
HemanttSod

Latest Threads

Top