cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
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 "ImportErrorSmiley Very HappyLL 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
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 Expert Group]
____
[Community Expert Group] members 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. Postings made by [Community Expert Group] members
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.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
2 REPLIES 2
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 Expert Group]
____
[Community Expert Group] members 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. Postings made by [Community Expert Group] members
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.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
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:
Top Kudoed Authors