Python Bridge - Calling HV via subprocess.Popen

Debdatta_Sen
Debdatta_Sen
Altair Employee
edited October 2020 in Community Q&A

I would like to use python subprocess module to invoke HV.
The code I use is very simple.
The code works if I use standalone python, but if I run it from within Compose, HW does not come up.

In the Task Manager one can see, that the HW Process starts but also dies immediately.

Here's the code that I use:

grafik.png.3364c647ab1bec6534de818c4ec4dca0.png

The shell shows the commands used in the directly in python.

 

I have also attached the Python file.

Have I missed anything?

Unable to find an attachment - read this blog

Tagged:

Answers

  • Debdatta_Sen
    Debdatta_Sen
    Altair Employee
    edited June 2020

    After consulting with a colleague, I have come across the solution.

     

    Unsetting both HW_ROOT and ALTAIR_HOME helps.