NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Testsand Python interpreter session crashed

I'm running a python step in teststand that the only thing that is doing is trying to ssh to a specific IP, if this IP is not present in the network python will give you an error related to "socket.timeout: timed out" which is expected, the problem is when you try to run any python step again you'll get the following message: 

 

Error: Python interpreter session crashed. If a console is displayed, closing the console will crash the interpreter. Complete all the executions, unload all modules and retry executing the sequence file.[Error Code: -17500, Operation Failed. ]

 

In this case you would need to stop your sequence and unload all the modules to continue running, is there a way to avoid this problem and keep getting any error that could happen in python?

 

Teststand 2019 and Python 3.7

Thanks

0 Kudos
Message 1 of 3
(2,757 Views)

Hey JZam,

What are you doing in your module call? Call a Method?

I got the same error and for me it was because I had some "test code" outside my function definition. As soon as I deleted that, it was fine.

Cheer, Niko

0 Kudos
Message 2 of 3
(2,492 Views)

In my case I found one of the import libraries was not working ok,

Try commenting import lines until you find the one making it crash

CLA, CTA
0 Kudos
Message 3 of 3
(1,886 Views)