Forum Discussion

jjohn's avatar
jjohn
New Contributor
24 days ago

Name error : name 'Sys' is not defined.

Adding Import Sys giving ModuleNotFoundError: NO MOdule Named 'Sys'.

5 Replies

  • jjohn's avatar
    jjohn
    New Contributor

    Thank you for all the replies.That helped a lot.

    I had the latest version 15.77.6 and that was the cause of the error.

    Downgrading to an older version 15.74 no longer have that issue.

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

      Any TestComplete methods called within a Python Module, will cause "NameError: name 'X' is not defined' or similar. 

      I suggest you open a ticket via https://support.smartbear.com/testcomplete/message/ and 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.

  • wsgarcia's avatar
    wsgarcia
    Occasional Contributor

    There are issues with the Python modules interacting with TC in the latest version, 15.77. I had to roll back to 15.76 then install the patch I had previously received to fix an issue with the update Chrome had put out. 15.77 was supposed to fix this, but it was unusable with the python issue.  

  • BrandonFowler's avatar
    BrandonFowler
    Occasional Contributor

    This issue seems to be getting reported across several threads here now. It appears to be as a result of updating to the newest version of TestComplete. There is an issue with calling Python Scripts. Current advice is to downgrade to 15.76 and run from there. There are open tickets recorded for this issue and SmartBear seems to be working on it. All we can do is hope that the process is speedy. Be sure to update the thread here if my suggestion does not work. This could signal a larger issue with TestComplete.

  • OV's avatar
    OV
    Frequent Contributor

    Hi,

    We have the same issue, test complete stopped launching the AUT and the error we are getting in the log is the same as above 

    Name error : name 'Sys' is not defined

    We do need an urgent help resolving this as we're stuck.

    Thanks

    Ofer