By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,641 Members | 2,101 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,641 IT Pros & Developers. It's quick & easy.

WSAStartup failed: error code 10107

P: n/a
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

Jul 28 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a

ra**********@googlemail.com wrote:
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

Jul 28 '06 #2

P: n/a
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

Rob Wolfe wrote:
ra**********@googlemail.com wrote:
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
Jul 28 '06 #3

P: n/a

ra**********@googlemail.com wrote:
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

Jul 28 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.