strange pythoncom.com_error - it only happens once

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rafe

    strange pythoncom.com_error - it only happens once

    Hi,

    I'm getting this error:
    # File "C:\Python25\Li b\site-packages\win32c om\client\dynam ic.py",
    line 491, in __getattr__
    # raise pythoncom.com_e rror, details
    # COM Error: Unspecified failure - [line 52]

    ....when my program hits a line of code which I know should work. The
    strange thing is, when I run it again in the same python session, it
    DOES work (no error is thrown and the expected results occur). Then it
    happens again on a later line which also works. If I run the program
    again without restarting python, it works all the way through and
    forever after.

    Any ideas as to what might cause this? An error that is not an error
    and only happens once?

    I would show examples, but it is application-specific and wouldn't
    help. I have been using this application for about 10 years, so i know
    my usage is correct (especially since it works most times)

    Cheers,

    - Rafe
  • Rafe

    #2
    Re: strange pythoncom.com_e rror - it only happens once

    On Nov 21, 4:50 pm, Rafe <rafesa...@gmai l.comwrote:
    Hi,
    >
    I'm getting this error:
    #   File "C:\Python25\Li b\site-packages\win32c om\client\dynam ic.py",
    line 491, in __getattr__
    #     raise pythoncom.com_e rror, details
    # COM Error: Unspecified failure - [line 52]
    >
    ...when my program hits a line of code which I know should work. The
    strange thing is, when I run it again in the same python session, it
    DOES work (no error is thrown and the expected results occur). Then it
    happens again on a later line which also works. If I run the program
    again without restarting python, it works all the way through and
    forever after.
    >
    Any ideas as to what might cause this? An error that is not an error
    and only happens once?
    >
    I would show examples, but it is application-specific and wouldn't
    help. I have been using this application for about 10 years, so i know
    my usage is correct (especially since it works most times)
    >
    Cheers,
    >
    - Rafe
    Forgot to mention I am using win32com.client .dynamic. I'm not sure if
    makepy will solve this or not. I need to ask around and find out how
    to run it for this application. I tried using pyWin's tool but it
    failed. There are 5 or 6 libraries though, so maybe I tried an invalid
    one?

    - Rafe

    Comment

    Working...