NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Python adapter path needs to be specified after each launch

Hi

 

I'm Trying to test out python integration in TestStand 2023 Q4 64-bit and i keep having to re specify the path to my python.exe in the adapter settings.

 

For some reason my PATH environment variable isn't working but since we use a lot of different python envs in our production I'd rather use a direct path to the python.exe of the env im using. But each time i open the program or sometimes when i open a new file i get the following error.

MalteGS_0-1698837190810.png

 

My current fix has been to go into my adapter setting and navigate to the python.exe again and select it. This fixes it but id like to not have to do it in the first place. Any ideas?

Thanks in advance

- Malte

 

0 Kudos
Message 1 of 4
(1,123 Views)

Quick bump in hopes that i can get more eyes on this.

0 Kudos
Message 2 of 4
(1,060 Views)

Hi , any solution ? 

how can i add a path to the sequence using python , i was able to add the name of the sequence and the description and not the path and parameters .

grangon_0-1720515520670.png

 

0 Kudos
Message 3 of 4
(655 Views)

As of TestStand 2023 Q4, it creates a Python session by embedding Python interpreter and does not use python.exe. TestStand searches for required modules so that it can embed a Python interpreter session and hence ensuring PATH environment is kind of mandatory.

 

Path to python.exe you specify in adapter settings is only used in during debugging (when you use step-into after breaking at Python step) and is not used for creating a Python session.

 

Please ensure that your PATH environment variable is updated so that TestStand can create required Python sessions.

 

-Shashidhar

0 Kudos
Message 4 of 4
(639 Views)