I'm using python 3.6 on Win 10. I'm trying to run this:
subprocess.run(["docker run -ti -p 3000:3000 opendronemap/nodeodm"])
but get this error:
Traceback (most recent call last):
File "C:/AgroScout/Projects/ortho/mdreader.py", line 67, in <module>
RunODM()
File "C:/AgroScout/Projects/ortho/mdreader.py", line 38, in RunODM
subprocess.run(["docker run -ti -p 3000:3000 opendronemap/nodeodm"])
File "C:\Users\ehud\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 489, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\ehud\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\ehud\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
Process finished with exit code 1
When running the command from the CMD all works fine. What is missing? Thanks