label-studio-ml-backend icon indicating copy to clipboard operation
label-studio-ml-backend copied to clipboard

Error: sh 1: python not found

Open rm-data-viz opened this issue 4 years ago • 6 comments

https://github.com/heartexlabs/label-studio-ml-backend/blob/4989ef5adf3673e3d41fac67964b90298ac07573/label_studio_ml/server.py#L112

I believe it should be:

os.system('python3 ' + wsgi + ' ' +' '.join(subprocess_params))

What are your thoughts?

rm-data-viz avatar Mar 26 '21 14:03 rm-data-viz

I get the same error in version 1.0.1. Before, in old version, I had a lot ml services running, but until now I spend a few hours and I not figure out how to trespassing this issue :(

Nothing different in logs at uwsgi.log and rq.log

I tried following the simple tutorial in the README at this repo after run label-studio-ml start my_ml_backend. In a linux machine with python3.

jonatassalgado avatar Apr 22 '21 23:04 jonatassalgado

@jonatassalgado @rm-data-viz Are you using venv or virtualenv? I strongly recommend to do this. Looks like you have some mix of python environments. Read more here: https://docs.python.org/3/tutorial/venv.html#creating-virtual-environments

makseq avatar Apr 23 '21 22:04 makseq

@makseq - I'm using the docker version of Label-Studio. I don't think it's associated to python virtual environment.

rm-data-viz avatar Apr 23 '21 23:04 rm-data-viz

In this case it's weird: LS 1.0 docker doesn't have ML backend at all.

makseq avatar Apr 23 '21 23:04 makseq

It does have a django ml app. But, to make ml backend work, I cloned the label-studio-ml repository.

I then initiated the ml_backend, but during label-studio-ml start ml_backend. It throws this error.

rm-data-viz avatar Apr 24 '21 11:04 rm-data-viz

The same problem is happening to me, I chose not to use venv, because I created a VM with a 'labelstudio' user that will be only running LabelStudio and the ML module.

This is happening in an ubuntu 20.20 server, that only has python3 installed (by default installation).

alex-eurec avatar May 28 '21 12:05 alex-eurec

Closed as outdated and probably solved.

makseq avatar Mar 09 '23 17:03 makseq