unidentified com_error in python

1

I've encountered the following error while scripting in Python.

ERROR Tue 19. Jan 14:51:21 2010 C:\Python24\Lib\site-packages\win32com\client\util.py:0: Script Error com_error: (-2147217385, 'OLE error 0x80041017', None, None)

Unfortunately, I don't know what it means, or even what other information I might need to find out. Does anyone have any insight into this?

python
com
asked on Stack Overflow Jan 19, 2010 by Anon. • edited Jan 19, 2010 by Anon.

2 Answers

1

Here's a page at the Microsoft site which might shed some light:

WBEM_E_INVALID_QUERY
2147749911 (0x80041017)
Query was not syntactically valid.
answered on Stack Overflow Jan 19, 2010 by jdigital
0

When doing python COM programming, I sometimes use VBA (in Excel) to test code that gives errors.

That way, I can see if the problem is in the Python-COM layer, or if I get the same error when using VBA. I have sometimes seen that the error messages in VBA have descriptions that the Python exception lacks.

VBA is quite nice for doing COM programming. You have tab completion/intellisense in the editor.

answered on Stack Overflow Jan 19, 2010 by codeape

User contributions licensed under CC BY-SA 3.0