Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hp, ht, pid, tid = _winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2] The system cannot find the file specified #1

Open
thanhchinh opened this issue Feb 21, 2023 · 5 comments

Comments

@thanhchinh
Copy link

2023-02-21 13:56:13.169 Uncaught app exception
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\yolov8s\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "C:\yolov8-streamlit-app-main\main.py", line 53, in
print(subprocess.run(['yolo', 'task=detect', 'mode=predict', 'model=yolov8n.pt', 'conf=0.25', 'source={}'.format(source)],capture_output=True, universal_newlines=True).stderr)
File "C:\ProgramData\Anaconda3\envs\yolov8s\lib\subprocess.py", line 505, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\ProgramData\Anaconda3\envs\yolov8s\lib\subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\ProgramData\Anaconda3\envs\yolov8s\lib\subprocess.py", line 1420, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

Plezzz

@josebenitezg
Copy link
Owner

Hi @thanhchinh Might be an issue with the working directory. Have you installed yolov8 properly?

@thanhchinh
Copy link
Author

i pip install ultralytics, maybe error from different version?

@thanhchinh
Copy link
Author

@josebenitezg thank for reply

@josebenitezg
Copy link
Owner

Have you tried yo run the yolov8 cli in your terminal? It seems you are running on windows

@thanhchinh
Copy link
Author

ultralytics 0.0.13 depends on torch>=1.7.0
torchvision 0.9.1 depends on torch==1.8.1
The user requested torch==1.7.1
ultralytics 0.0.13 depends on torch>=1.7.0
torchvision 0.9.0 depends on torch==1.8.0

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants