Error: Invalid Python Version While Using Relative Path for Virtual Environment in TestStand Python Step

Updated May 3, 2023

Reported In

Software

  • TestStand
  • Python Step Types 1.0 for TestStand

Other

  • Python 3.6
  • Python 3.7

Issue Details

I can configure the virtual environment in TestStand Python Step when using absolute path:
 

But when I try to use a relative path, I am seeing an error 

Invalid python version or virtual environment path. Make sure required version of python is installed and added to PATH environment variable. Make sure the configured virtual environment path is valid. 
 


I have defined my Virtual Environment folder path in the TestStand Search Directories, so why is TestStand still unable to find my folder?
 

Solution

In order for TestStand to properly find the directory path of your virtual environment folder, you will need to add a prefix "..\" to your folder name. The image below shows how it is done.