Hi, I'm trying to run comtypes under Windows 7 64bit. When using comtypes with python 64bit then the script fails with:
# python excelmoniter.py
Activating excel link...
Traceback (most recent call last):
File "excelmoniter.py", line 80, in <module>
main()
File "excelmoniter.py", line 68, in main
xl = get_excel()
File "excelmoniter.py", line 35, in get_excel
return GetActiveObject("Excel.Application")
File "C:\Python26\lib\site-packages\comtypes\client\__init__.py", line 180,
in
GetActiveObject
obj = comtypes.GetActiveObject(clsid, interface=interface)
File "C:\Python26\lib\site-packages\comtypes\__init__.py", line 1165, in
GetAc
tiveObject
oledll.oleaut32.GetActiveObject(byref(clsid), None, byref(p))
File "_ctypes/callproc.c", line 925, in GetResult
WindowsError: [Error -2147221021] Operation unavailable
This works when using python 32bit.
See attached for the script.
Regards,
David
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________ comtypes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/comtypes-users
