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

Error : `bash: /home/hemang/.local/bin/label-studio: cannot execute: required file not found`

Open hemangjoshi37a opened this issue 1 year ago • 4 comments

Describe the bug Getting this error out of the box after installing using : pip install label-studio

(myenv) hemang@hemang-levono-15arr:~$ label-studio start
bash: /home/hemang/.local/bin/label-studio: cannot execute: required file not found

To Reproduce to reproduce do the same

Expected behavior error as given

Screenshots image

Environment (please complete the following information):

  • OS: Ubuntu 22
  • Label Studio Version : latest using pip installer

Additional context I have installed it earlier and now i am installing or running it for long time before , is it possible that it could be causing the issue. ?

hemangjoshi37a avatar Jul 28 '24 06:07 hemangjoshi37a

Hi @hemangjoshi37a - what's the output of cat $(which label-studio)? Usually the "cannot execute: required file not found" error occurs when the shebang line at the start of a script points to a file that doesn't exist.

jombooth avatar Jul 31 '24 22:07 jombooth

(myenv) hemang@hemang-levono-15arr:~/Documents/GitHub/radeontop$ cat $(which label-studio)
#!/home/hemang/myenv/bin/python3.12
# -*- coding: utf-8 -*-
import re
import sys
from label_studio.server import main
if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
    sys.exit(main())

hemangjoshi37a avatar Aug 02 '24 08:08 hemangjoshi37a

Now how about which /home/hemang/myenv/bin/python3.12 ? And what happens when you try to run /home/hemang/myenv/bin/python3.12 in your terminal?

jombooth avatar Aug 07 '24 18:08 jombooth

(myenv) hemang@hemang-levono-15arr:~$ which /home/hemang/myenv/bin/python3.12
/home/hemang/myenv/bin/python3.12
(myenv) hemang@hemang-levono-15arr:~$ /home/hemang/myenv/bin/python3.12
Python 3.12.4 (main, Jun 27 2024, 13:53:59) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
(myenv) hemang@hemang-levono-15arr:~$ 

hemangjoshi37a avatar Aug 08 '24 10:08 hemangjoshi37a