Editor is not able to detect my python virtual environment

Hi everyone,

I’m developing an OpenTAP python plugin for hardware testing purposes, and the problem I face is that Editor cannot detect my venv folder no matter what I do. I tried to set venv from the CLI and also in the Editor but it doesn’t seem to change anything. I also tried to start OpenTAP from the virtual environment without any success so far. Whenever I start Editor I always get the message “Caught exception loading PythonExamples.NumpyStep: No module named ‘numpy’“. I can fix this issue by manually pip installing numpy globally, but this is only a short-term solution because ideally I would need a separate venv for consistent packaging. Next problem I have is that OpenTAP never pip installs python libraries from the requirements.txt file after creating TapPackage. I tried a lot of things. Even installing the PythonExamples package never installs numpy. In my case I use other libraries not numpy necessarily but it is a good example.

These problems are connencted to each other and the reason why I need a solution for these problems is because I need a consistent packaging process for my plugins in order to make the plugins work properly on other computers.

So just to make it understandable these are my issues:

-OpenTAP cannot detect python venv folder
-OpenTAP cannot install python libraries from requirements.txt (I would need OpenTAP to install libraries listed in the requirements.txt file to my venv folder)

My system:

-OS: Ubuntu 24.04.2
-OpenTAP: 9.29.1
-OpenTAP Python: 3.2.0
-Python: 3.12

If anyone know how to solve these issues, please help me, I would really appreciate it.