K
KB
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
CoInitialize():
****
import pythoncom
pythoncom.CoInitialize()
pythoncom.CoUninitialize()
****
(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
Thanks!
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
CoInitialize():
****
import pythoncom
pythoncom.CoInitialize()
pythoncom.CoUninitialize()
****
(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
Thanks!