cancel
Showing results for 
Search instead for 
Did you mean: 

TestCompete closes unexpectedly when trying to import Pandas

SOLVED
Contributor

TestCompete closes unexpectedly when trying to import Pandas

I got an unexpected behavior of TestComplete. 

What I am trying to do is to import pandas.

With the code below, it runs ok for the first time; however, when I run the second time, TestComplete just closes.

Do you have any idea?

Thanks.

 

 

import os

import sys

def testImportPandas():

 

    sys.path.insert(0, 'C:\Program Files\Python36\Lib\site-packages') 

 

    import pandas as pd

   

    curDir = os.getcwd() #NOTE: Break point was set and it never stops here when running the second time.

    Log.Message(curDir)

    fileName = os.path.join(curDir,"ExcelFiles", "MyFile.xls" )

    Log.Message(fileName)

    ...

1 ACCEPTED SOLUTION

Accepted Solutions
Contributor

Re: TestCompete closes unexpectedly when trying to import Pandas

I got reply from SmartBear Customer Care below:

 

"We investigated the issue - TestComplete crashes because of numpy included to the pandas package. They have a very old issue (https://github.com/numpy/numpy/issues/8097) when third-party tools are crashing because of numpy after calling the Py_Finilize() function. TestComplete works in the same way. You can find a more detailed description in the following StackOverflow forum thread:
http://stackoverflow.com/questions/7676314/py-initialize-py-finalize-not-working-twice-with-numpy/76...

So, unfortunately, we cannot do anything with it."

View solution in original post

2 REPLIES 2
Community Hero

Re: TestCompete closes unexpectedly when trying to import Pandas

I suggest you contact Support directly about this issue.  Here's the link:

https://support.smartbear.com/message/?prod=TestComplete

Contributor

Re: TestCompete closes unexpectedly when trying to import Pandas

I got reply from SmartBear Customer Care below:

 

"We investigated the issue - TestComplete crashes because of numpy included to the pandas package. They have a very old issue (https://github.com/numpy/numpy/issues/8097) when third-party tools are crashing because of numpy after calling the Py_Finilize() function. TestComplete works in the same way. You can find a more detailed description in the following StackOverflow forum thread:
http://stackoverflow.com/questions/7676314/py-initialize-py-finalize-not-working-twice-with-numpy/76...

So, unfortunately, we cannot do anything with it."

View solution in original post

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