07-25-2024 05:47 AM
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.
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.
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
07-25-2024 05:53 AM
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
07-25-2024 06:45 AM
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
08-06-2024 05:31 AM
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).
08-06-2024 05:37 AM
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