Hello Everybody... <img src="http://e1h7.simplecdn.net/lqcdn/images/questions/images/smilies/emot-tiphat.gif" alt="" title="Hat Tip" class="inlineimg" border="0"><br>
<br>I working on a client-server database solution. The system is normalized and is using MySQL. To automate some of processes I using Python. Part of the old database will be still running on Lotus Notes.<br><br>
After working on it, it seems that the best choice to directly manipulate Lotus is to use Python with win32COM - <a href="http://www.boddie.org.uk/python/COM.html" target="_blank">http://www.boddie.org.uk/python/COM.html</a> . I installed ActivePython 2.6 compiler, which comes with integrated win32com.<br>
<br>
However, when I try to run.. it gives me the error: <img src="http://e1h7.simplecdn.net/lqcdn/images/questions/images/smilies/eek.gif" alt="" title="EEK!" class="inlineimg" border="0"> <br>
<br>
--x--x--<br>
<br>
ActivePython 2.6.2.2 (ActiveState Software Inc.) based on<br>
Python 2.6.2 (r262:71600, Apr 21 2009, 15:05:37) [MSC v.1500 32 bit (Intel)] on<br>
win32<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
>>> import win32com.client<br>
>>> sess=win32com.client.Dispatch("Lotus.NotesSession")<br>
Traceback (most recent call last):<br>
File "<stdin>", line 1, in <module><br>
File "C:\dev\python\Py26\lib\site-packages\win32com\client\__init__.py", line 95, in Dispatch<br>
dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)<br>
File "C:\dev\python\Py26\lib\site-packages\win32com\client\dynamic.py", line 98, in _GetGoodDispatchAndUserN<br>
ame<br>
return (_GetGoodDispatch(IDispatch, clsctx), userName)<br>
File "C:\dev\python\Py26\lib\site-packages\win32com\client\dynamic.py", line 78, in _GetGoodDispatch<br>
IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch)<br>
pywintypes.com_error: (-2147221005, 'Invalid class string', None, None)<br>
<br>
--x--x--<br>
<br>
Any suggestions? Some help is mostly appreciated. <img src="http://e1h7.simplecdn.net/lqcdn/images/questions/images/smilies/biggrin.gif" alt="" title="Big Grin" class="inlineimg" border="0"><br>
<br>
I will keep working to get it fixed, after I post the working solution here. <img src="http://e1h7.simplecdn.net/lqcdn/images/questions/images/smilies/wink.gif" alt="" title="Wink" class="inlineimg" border="0">