NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Python virtual environment is not valid using Python Step Types with Testand 2016 SP1

Hi everyone,

 

I'm trying to run my script in python form python step types by using my virtual evironment path. Python works by using standard configuration as below, without venv.

 

dettad1_0-1721904159053.png

 

Unfortunately, when adding the venv path, Teststand does not like something, anyone could help me? I already tried with different and also new clean venv.

dettad1_1-1721904288863.png

 

Also, I was thinking that maybe is due to the verison of python, but it's unlikely to be the problem

Any suggestions let me know! Thank you guys!

 

Best

Dominic

 

0 Kudos
Message 1 of 5
(534 Views)

No experience with Python, but the screenshot you've shared shows that red exclamation mark bubble at the version dropdown, so at least the Python adapter has a problem with the version

 

Maybe this can lead to a solution https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000g0jUSAQ&l=de-DE

 

0 Kudos
Message 2 of 5
(532 Views)

Hey, thank you very much for your help.

Unfortunately, non of the points solved the problem. I tried to create a new clean venv with python 3.12.4 32 bit (sabe bit depth of Tetsstand installation) but still it does not work. However it should be related to the viirtual environment as without it the code works.

 

Anyone suggestion?

Thanks!

 

Best

Dominic

0 Kudos
Message 3 of 5
(518 Views)

TestStand doesn't support venv. Only virtualenv is supported. venv will be supported from TestStand 2024 Q4 release onwards (it will be available during the week of Oct 8th 2024)

 

Also note that TestStand introduced Python adapter in 2019 for native support of Python (instead of using step types).

0 Kudos
Message 4 of 5
(426 Views)

Hi!

Thanks for the answer and the details 🙂 I should upgrade license and plan to use the latest compatible versions for python, however in the meantime I am using cmd to launch script with no issues as alternative.

 

Best

Dominic

0 Kudos
Message 5 of 5
(424 Views)