NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

New Python interpreter version not recognized in teststand configure python step dialog

I updated my python version from 3.6 to 3.7, it is added to the path variable just as 3.6 was. My cmd window recognizes it, VS code recognizes it. I uninstalled the 3.6 version. Uninstalled/reinstalled teststand (2017 SP1) and attempted to uninstall/reinstall python step types (no uninstaller provided with 1.0.1) but teststand will only recognize 3.6 (even though it doesn't exist on the system anymore and has been removed from the path variable and replaced with 3.7). How to I get it to recognize the 3.7 interpreter? I get the error message that says "Invalid Python version. Make sure required version of python is installed and added to the path variable".

0 Kudos
Message 1 of 5
(2,410 Views)

Since you are using TestStand 2017, I don't think Python version 3.7 is supported. According to the documentation you either have to use 2.7 or 3.6

 

That limitation does not exist in TestStand 2019 which supports 2.7 and Python 3.6+.

 

The above is incorrect. I got my TestStand 2017 to work with Python 3.7.

 

Have you double checked python to make sure you installed the right bitness (32-bit or 64-bit)?

0 Kudos
Message 2 of 5
(2,338 Views)

Yes, I did go to the CMD window and type python and I get "Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64)] on win32" reported back. Are you able to go back to 3.6 after using 3.7? My "Invalid Python version" error goes away when I select 3.7 (even though my system isn't configured for it anymore). I find that odd...

0 Kudos
Message 3 of 5
(2,329 Views)

Okay so that shows you are using Python 64-bit, so I'm guessing you are using TestStand 2017 SP1 64-bit then?

 

If I have both Python 3.6 and 3.7 installed I can use either when running TestStand.

 

When I uninstalled 3.7, I could still use 3.6, and 3.7 would now show the red exclamation.

0 Kudos
Message 4 of 5
(2,324 Views)

Yes, Teststand 2017 SP1 64bit. It sounds like you're seeing the behavior I would expect to see. Hmm...

0 Kudos
Message 5 of 5
(2,317 Views)