cancel
Showing results for 
Search instead for 
Did you mean: 

Python disappeared after upgrade

garthofizar
Frequent Visitor

Python disappeared after upgrade

Hi all!

 

Fairly new to TestComplete here. Just did an upgrade from an earlier version (but within the main version of 14). Sadly, my Python installation disappeared. Pointing everything to the new python (3.8.7) and ensuring all the former modules were installed (eg: requests), none of my scripts that depend on 'requests' are working anymore (haven't touched them; only did the "upgrade" that TC wanted to do. BTW, running the python above will find the module, just the IDE refuses to see it).

 

Thank you!

 

-G

2 REPLIES 2
Marsha_R
Community Hero

Re: Python disappeared after upgrade

Try doing a Repair or just install and reinstall TC and see if that fixes it.

 

FYI for the future - always always always backup before you upgrade.  If something like this happens, then you can go back to the old version while you are waiting on support for the new version.

delink
Visitor

Re: Python disappeared after upgrade

Custom Python modules that you manually moved into your TestComplete installation are deleted with every upgrade.

 

Solution:

Reference the specific Python modules in your TestComplete Python scripts by adding the following at the very top:

import sys
sys.path.append('{path}\{folder with modules}')

import re
import my_module
...

 

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