pythoncom.CoInitialize() not recognised in Eclipse

KB keith at
Mon Mar 29 04:14:19 CEST 2010

Hi there,

I have in the past used PythonWin to write python for COM, and
switched to Eclipse.

I am getting an error from the IDE saying it does not recognise

import pythoncom


(red X next to the two bottom lines saying: "Undefined variable from
import: CoInitialize")

If I open a PyDev/Python Console window in Eclipse, I can type the
above, no errors, no problem.

I tried removing my Python Interpreter and re-adding/re-building but
no change.

python 2.5.2
eclipse 3.5.1
pydev 1.5.0


More information about the Python-list mailing list