Skip to content

Tag: subprocess

Python loadarff fails for string attributes

I am trying to load an arff file using Python’s ‘loadarff’ function from scipy.io.arff. The file has string attributes and it is giving the following error. How to read the arff successfully? Answer Since SciPy’s loadarff converts containings of arff file into NumPy array, it does not …

Subprocess call with exit status 128

Essentially, I am trying to use a subprocess call to checkout a git commit at a specific sha hash. However, I keep getting the error subprocess.CalledProcessError: Command ‘[‘git’, ‘checkout’, ’62bbce43e’]’ returned non-zero exit status 128. This is my code belo…

Live-output / stream from Python subprocess

I am using Python and it’s subprocess library to check output from calls using strace, something in the matter of: However, this only gives me the output after the called subprocess already finished, which is very limiting for my use-case. I need a kind of “stream” or live-output from the pr…