[Python-de] win32com/cgi/apache
frankimmich at gmx.de
frankimmich at gmx.de
Tue Oct 15 12:53:09 EDT 2002
Hallo zusammen,
ich hätte folgende Frage: (gleich im Voraus eine Entschuldigung, da sie
nicht 100% Python betrifft. Aber ich habe mich letzt Nacht halbtot gegoogelt
und komme nicht weiter.)
Ich möchte in einem CGI-Script (Apache 2.040, win2000) über win32com auf
outlook zugreifen.
In der Shell funktioniert alles super.
Unter Apache scheitert schon das hier:
Outlook_cgi.cgi:
#!c:\Python22\python.exe
import win32com.client
import cgi
print "Content-type: text/html\n"
print "<TITLE>CGI outlook_cgi </TITLE>"
print "<H1>Connect to Outlook </H1>"
outlook = win32com.client.Dispatch("Outlook.Application")
apache error log:
[Tue Oct 15 11:34:22 2002] [error] [client localhost] Traceback (most recent
call last):, referer: http://myhome/outlook.html
[Tue Oct 15 11:34:22 2002] [error] [client localhost] File
"C:/Apache2/cgi-bin/outlook_cgi.cgi", line 9, in ?, referer: http://myhome/outlook.html
[Tue Oct 15 11:34:22 2002] [error] [client localhost] outlook =
win32com.client.Dispatch("Outlook.Application"), referer: http://myhome/outlook.html
[Tue Oct 15 11:34:22 2002] [error] [client localhost] File
"C:\Python22\lib\site-packages\win32com\client\__init__.py", line 92, in Dispatch, referer:
http://myhome/outlook.html
[Tue Oct 15 11:34:22 2002] [error] [client localhost] dispatch, userName
= dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx), referer:
http://myhome/outlook.html
[Tue Oct 15 11:34:22 2002] [error] [client localhost] File
"C:\Python22\lib\site-packages\win32com\client\dynamic.py", line 81, in
_GetGoodDispatchAndUserName, referer: http://myhome/outlook.html
[Tue Oct 15 11:34:22 2002] [error] [client localhost] return
(_GetGoodDispatch(IDispatch, clsctx), userName), referer: http://myhome/outlook.html
[Tue Oct 15 11:34:22 2002] [error] [client localhost] File
"C:\Python22\lib\site-packages\win32com\client\dynamic.py", line 72, in _GetGoodDispatch,
referer: http://myhome/outlook.html
[Tue Oct 15 11:34:22 2002] [error] [client localhost] IDispatch =
pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch),
referer: http://myhome/outlook.html
[Tue Oct 15 11:34:22 2002] [error] [client localhost] pywintypes.com_error:
(-2146959355, 'Starten des Servers fehlgeschlagen', None, None), referer:
http://myhome/outlook.html
Es gibt vielen Hinweise, über Probleme mit Logon() , aber soweit komme ich
gar nicht.
Gibt es irgendeine besondere Apache Konfiguration für win32com ? Meine
anderen cgi's laufen ohne Probleme.
Ich danke Euch für jeden Hinweis
Ciao Frank
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!
More information about the Python-de
mailing list