pythoncom.CoInitialize() not recognised in Eclipse

Dieter Verfaillie dieterv at optionexplicit.be
Mon Mar 29 01:59:24 EDT 2010


Quoting KB <keith at nekotaku.com>:
> I am getting an error from the IDE saying it does not recognise
> CoInitialize():
>
> ****
> import pythoncom
>
> pythoncom.CoInitialize()
> pythoncom.CoUninitialize()
> ****

It works out of the box with PyDev 1.5.5.2010030420 on Eclipse 3.5.2  
on Windows XP. If nothing seems to work for you, you could try adding  
pythoncom to the
"Forced Builtins" tab of your Python interpreter configuration to see if it
helps (restart eclipse after you've done that, sometimes changes to  
the symbols
database don't get picked up without restarting eclipse...)

mvg,
Dieter

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the Python-list mailing list