Relative Content

Tag Archive for pythonlinuxbash

Auto-Launcher for Python-Programs

I use Python in industrial settings. A machine I have built sometimes has unforeseen issues. At times, the camera driver fails, at other times, the GPU driver appears to fail. The program interrupts and is readily available when I restart the program without further issues.

Cant run terminal command from python to use software’s

I’m working in a project that requires the use 4 software’s. 1 call PRIME that use MixMHCpred and the other 3 netMHCpan, nectchop and netMCHstab.
I run the terminal command for each of then (I’m working in Linux) and the program’s run with no problems. But now I’m traying to run them from a python script (I’m using visual code studio) and it doesn’t work, i trait with os.system and subprocess and it doesn’t work, I’ve trait to run a bash script with just the command and it just work in the terminal, not from the python script. The only output i get is “x command doesn’t exist”, the software’s were install in the base env and using path, I’m using the python 3.11.8 kernel.
I’m working pandas, pysam and other python libraries, so changing the code to bash doesn’t sound appealing to me.