Forum Discussion

Nadav's avatar
Nadav
Contributor
6 years ago
Solved

python lib is not recognized as valid win32 app

Hi, I have working script that runs on my PC well. I'm trying to run the same script via TestComplete. Both my PC and TC are using same version of Python (3.4) and both are 64bit. But for some re...
  • tristaanogre's avatar
    6 years ago

    If you're using 64-bit TestComplete, you can't call a 32-bit 3rd party library.  Run the 32-bit TestComplete that is installed on your system (typically found in C:\Program Files (x86)\SmartBear\TestComplete 12\bin) and try again,.

  • Nadav's avatar
    6 years ago

    To solve it for future users with the same problems:

    The reason i could not access the Python 3.6 and kept being directed to the 3.4 is that my code used an external library (numpy) that wasn't installed correctly in the TestComplete 3.6, and so, when my code tried to import it - it went to the 3.4 - where the numpy WAS installed.

    Installing the numpy corectly on the 3.6 - solved the issue and indeed there is NO issue with having 2 versions of Python on the same PC.

    Here is a link for the numpy installation issue:

    https://community.smartbear.com/t5/TestComplete-Desktop-Testing/integrating-WHL-Python-packages/m-p/167379/highlight/true#M12755

     

    chears,

    Nadav.