'Project not defined' errors after updating to 15.77.6.7

Originally posted by cptusername on September 02, 2025

My project was executing tests just fine on Friday. This morning when I launched TestComplete, I was prompted to update, so I applied the update and am at version 15.77.6.7 afterward.

Now, when I attempt to run tests, a ‘Project not defined’ error is preventing any of my scripts from running. The errors seem to be occurring with my import statements for my custom python script files (i.e., import CashDrawerPage_Script).

The ONLY thing that changed since the last successful run is the TestComplete update. I had previously updated TestComplete a week or so ago when the last update was available.

How do I either resolve the error or else roll back to a prior version of TestComplete?

Originally posted by rraghvani on September 02, 2025

I suggest you open a ticket via https://support.smartbear.com/testcomplete/message/

You can download a previous version of TestComplete via the URL https://downloads.smartbear.com/TestComplete1577SLM.exe - just change the version number to an appropriate value.

Originally posted by scot1967 on September 02, 2025

Hello cptusername,

I agree with rraghvani. You could check a few things however.

  1. How far back were you on versions when you performed the update?
  2. Ensure your scripts are in the right place. (they should still be)
  3. Ensure your project isn’t corrupt.
    • Remove (don’t delete) the script file(s) and re-import the script files into the project.
  4. Make sure you are using variables correctly. I have seen code that overwrites the ‘Project’ variable. Unlikely here.
  5. Consult the link below to ensure something has not changed in this version…

https://support.smartbear.com/testcomplete/docs/scripting/calling-routines/declared-in-another-unit/python.html

… If you find my posts helpful drop me a like! :+1: Be sure to mark or post the solution to help others out and/or to credit the one who helped you. :smiling_face_with_sunglasses:

Originally posted by scot1967 on September 02, 2025

This could be an impacting addition…

https://support.smartbear.com/testcomplete/docs/general-info/whats-new.html

  • Latest Python Support. Support for Python version 3.13.3 has been added. This allows users to run and debug tests using the most recent Python runtime.

Originally posted by cptusername on September 02, 2025

Thank you, that is the likely culprit. We were running fine under TestComplete version 15.76, so have rolled back to that version for the time being while we figure out what we need to change to accommodate the Python runtime changes.

Again, nothing in our project changed between Friday and today, the sole change on any machine that had been running successfully on Friday was an update from 15.76 to this 15.77 version. A rollback has confirmed that is the cause of the change, as we are running fine again now under the prior version, so will now look into the Python support change(s).

Originally posted by scot1967 on September 02, 2025

OK, if that resolves this issue don’t for get to mark it and let us (the community) know what you needed to do for this update. Thanks!

Have a great day!

Originally posted by mfoster711 on September 30, 2025

Did you find the root cause of this or is this just a break with TestComplete? I am now having this issue after updating one of our PCs to the latest version of TestComplete.

Originally posted by cptusername on September 30, 2025

The root cause involves how TestComplete manages the availability of its own objects across scripts. As a temporary measure, we’ve rolled back to version 15.76 pending the release of a fix, which support indicated earlier this month is a top priority.

Originally posted by mfoster711 on September 30, 2025

Thanks for the update! I am rolling back at to previous version. I just wanted to make sure this was not some Python change that I needed to update in my code.

Originally posted by Michael_B on October 17, 2025

We are seeing this problem too. Looks like it is still an issue in v15.78. Does anyone have a workaround? Thanks for the help!

Originally posted by cptusername on October 17, 2025

My team suspected that the issue persisted in this week’s 15.78 update, as it was not referenced in the release notes. As a result, we have remained on version 15.76. The most efficient workaround for us has been to revert to this earlier release. While it’s likely that re-architecting a significant portion of our project could eliminate the issue, the required effort is not feasible with our current timelines. Therefore, we continue to await an update that includes a permanent fix.

Originally posted by Michael_B on October 21, 2025

Fair enough. Thanks for the reply! We need the Chrome/Edge fixes in 15.77 to fix several projects, but the python bug broke others. Right now we are running mixed versions of TC as a workaround.

Originally posted by Michael_B on October 24, 2025

I tried the latest test package/setting provided by SmartBear support, but no luck yet. No solution yet, but if I get one, I will share info.

Originally posted by Michael_B on October 31, 2025

No fix on this yet.

Originally posted by J_noyes on November 04, 2025

I’m having the same issue after upgrading to 15.77. 6.7

Python runtime error.
NameError: ‘aqEnvironment’ is not defined

Originally posted by MCH on November 13, 2025

See my latest contribution in TestComplete 15.77 is broken - dont upgrade | SmartBear Community