Error : `bash: /home/hemang/.local/bin/label-studio: cannot execute: required file not found`
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
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. ?
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.
(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())
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?
(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:~$