Forum Discussion

liyaokok's avatar
liyaokok
New Contributor
6 years ago
Solved

ImportError:DLL load faild: %1 is not a valid Wind32 application

Hi,

 

I'm trying to import a third party library in Python script in TestComplete. TestComplete keeps reporting "ImportError:DLL load faild: %1 is not a valid Wind32 application". (see error1 attached) However, if I use python.exe to import this library, it looks fine (see success2 attached).

 

Can anyone give me some suggestions here?

  • Hi,

     

    I'm not a Python guru in any way, thus just a wild guess which well may be absolutely irrelevant:

    -- Are you using 32- or 64-bit flavor of TestComplete (Help|About) ?

    -- If you are using 64-bit flavor, try to start 32-bit one from the <TestComplete>\Bin\ folder and check if the problem persists.

2 Replies

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    I'm not a Python guru in any way, thus just a wild guess which well may be absolutely irrelevant:

    -- Are you using 32- or 64-bit flavor of TestComplete (Help|About) ?

    -- If you are using 64-bit flavor, try to start 32-bit one from the <TestComplete>\Bin\ folder and check if the problem persists.

    • liyaokok's avatar
      liyaokok
      New Contributor

      Thank you! Staring 32-bit TestComplete fixes my issue.