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?

2
  • 2
    Could you post a code snippet that reproduces the error? Commented Jan 19, 2010 at 7:54
  • Someone found this useful Commented Oct 28, 2012 at 5:44

2 Answers 2

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.
Sign up to request clarification or add additional context in comments.

Comments

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.

1 Comment

VBA, COM, and "nice" shouldn't all appear in the same sentence!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.