Forum Discussion

Luis_TellezV's avatar
Luis_TellezV
New Member
21 days ago

TestComplete does not recognize my external libraries.

I have followed the documentation from following link: https://support.smartbear.com/testcomplete/docs/scripting/specifics/python.html

I followed step by step; to install libraries to TestComplete python interpreter to the source folder: "...SmartBear\TestComplete 15\Bin\Extensions\Python\Python313\Lib".

After closing TestComplete and opening it again, the interpreter is not being refreshed; not getting the newly added libraries I installed.

It keeps throwing me an error as follows: 

ModuleNotFoundError: No module named 'imp'.

The imported library I'm trying to use is a customized file with multiple classes. However, it does also happen for win23com.client and pillow libraries.

import win32com.client
from PIL import ImageGrab

This seems to be an error with python 3.13, but I do not find a way to downgrade the python interpreter version from TestComplete. 

I do not find a way to fix this even after following documentation on how to install packages, either.

Would appreciate your help on this,

Thanks

1 Reply

  • rraghvani's avatar
    rraghvani
    Icon for Champion Level 3 rankChampion Level 3

    Hi Luis_TellezV​. Take note of the following statement,

    Also, it's not possible to downgrade Python, as the runtime libraries are built-in to TestComplete.