pywin32 + isapi_wsgi fresh install -> 'Invalid Syntax' error

704 views
Skip to first unread message

pyPax

unread,
Nov 4, 2010, 1:27:28 PM11/4/10
to isapi_wsgi-dev
Hi everyone,

I jsut installed pywin32 and isapi_wsgi on a Windows Server 2008
running IIS7.5 .

When running the test isapi_wsgi.py I'm getting the following error:

PS C:\Users\my_username\Desktop\isapi_wsgi-0.4.2> python .
\isapi_wsgi.py install
Traceback (most recent call last):
File ".\isapi_wsgi.py", line 563, in <module>
custom_arg_handlers = custom_arg_handlers)
File "C:\Python26\lib\site-packages\isapi\install.py", line 724, in
HandleCommandLine
handler(conf_module_name, params, options, log)
File "C:\Python26\lib\site-packages\isapi\install.py", line 615, in
InstallModule
Install(params, options)
File "C:\Python26\lib\site-packages\isapi\install.py", line 494, in
Install
CreateDirectory(vd, options)
File "C:\Python26\lib\site-packages\isapi\install.py", line 289, in
CreateDirectory
target_dir = GetObject(FindPath(options, params.Server, parent))
File "C:\Python26\lib\site-packages\isapi\install.py", line 144, in
FindPath
return FindWebServer(options, server)+"/ROOT"+name
File "C:\Python26\lib\site-packages\isapi\install.py", line 205, in
FindWebServer
server = GetWebServer(server_desc)
File "C:\Python26\lib\site-packages\isapi\install.py", line 177, in
GetWebServer
path = LocateWebServerPath(description)
File "C:\Python26\lib\site-packages\isapi\install.py", line 158, in
LocateWebServerPath
iis = GetObject(_IIS_OBJECT)
File "C:\Python26\lib\site-packages\win32com\client\__init__.py",
line 72, in GetObject
return Moniker(Pathname, clsctx)
File "C:\Python26\lib\site-packages\win32com\client\__init__.py",
line 87, in Moniker
moniker, i, bindCtx = pythoncom.MkParseDisplayName(Pathname)
pywintypes.com_error: (-2147221020, 'Invalid syntax', None, None)


any idea why this is?
thanks guys

pyPax

unread,
Nov 5, 2010, 8:23:35 AM11/5/10
to isapi_wsgi-dev
Tried reinstalling Python and all the modules, still returning the
same error.
Server is a clean install of Windows Server 2008 R2 running IIS7.5.

If someone could help that would be amazing.

Jason R. Coombs

unread,
Nov 5, 2010, 9:03:22 AM11/5/10
to isapi_w...@googlegroups.com
Isapi_wsgi requires the IIS 6.0 Management Compatability installed. Can you double-check that you have the IIS 6.0 Management Compatability (and possibly the IIS 6.0 WMI Compatibility) installed in your web server role?

Jason

Preston Landers

unread,
Nov 5, 2010, 2:39:59 PM11/5/10
to isapi_w...@googlegroups.com
Looks like it might be failing on getting the display name of the IIS server while creating the vdir.  What is the name of that server?
-Preston


--
You received this message because you are subscribed to the Google Groups "isapi_wsgi-dev" group.
To post to this group, send email to isapi_w...@googlegroups.com.
To unsubscribe from this group, send email to isapi_wsgi-de...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/isapi_wsgi-dev?hl=en.


pyPax

unread,
Nov 5, 2010, 12:27:32 PM11/5/10
to isapi_wsgi-dev
Hi thanks Jason! That fixed it!

Now I'm getting 500 Internal Server Error while trying to access /
isapi-wsgi-test/, but I guess it might not have anything to do with my
original error.
Reply all
Reply to author
Forward
0 new messages