Forum Discussion

Berney's avatar
Berney
New Contributor
2 years ago

Python: I have to close and reopen TestComplete after each run or I get a NoneType error

Hello,

 

I get a NoneType error (TypeError: 'NoneType' object is not callable) when I run anything to import the oracledb package.

 

However, this does not occur on the first run after loading TestComplete, which runs successfully.

 

Specifically, the error is being raised at the import oracledb statement near the top of the Database.py script file.

 

Why would this work the first time but be set to None after that?

 

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    The "existing bug", well it works once. If you were to restart TC, it only works once.

    • Berney's avatar
      Berney
      New Contributor

      Can you explain more about the existing bug, and any work around?

       

      I moved the file directly to the Lib folder as indicated, and I get the same behavior. It works once and then gives the NoneType error.

      • Martina17's avatar
        Martina17
        Occasional Visitor

        Hi, did you find a solution to this? I'm having the same issue.