cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Highlighted
New Contributor

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

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

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.

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

2 REPLIES 2
Highlighted
Community Hero

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

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.

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

Highlighted
New Contributor

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

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

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors