Aug-22-2024, 08:13 AM
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\tkinter\__init__.py", line 1921, in __call__
return self.func(*args)
File "c:\Users\Gotham\Desktop\detection\gui1.py", line 67, in <lambda>
my_button = tb.Button(text="Upload", bootstyle="primary, outline", command=lambda: execute_engine(file_path))
File "c:\Users\Gotham\Desktop\detection\gui1.py", line 30, in execute_engine
result = subprocess.run(["C:./Users/Gotham/Desktop/detection/engine.exe", file_path], stdout=subprocess.PIPE)
File "C:\Program Files\Python310\lib\subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Program Files\Python310\lib\subprocess.py", line 969, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\Python310\lib\subprocess.py", line 1438, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\tkinter\__init__.py", line 1921, in __call__
return self.func(*args)
File "c:\Users\Gotham\Desktop\detection\gui1.py", line 67, in <lambda>
my_button = tb.Button(text="Upload", bootstyle="primary, outline", command=lambda: execute_engine(file_path))
File "c:\Users\Gotham\Desktop\detection\gui1.py", line 30, in execute_engine
result = subprocess.run(["C:./Users/Gotham/Desktop/detection/engine.exe", file_path], stdout=subprocess.PIPE)
File "C:\Program Files\Python310\lib\subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Program Files\Python310\lib\subprocess.py", line 969, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\Python310\lib\subprocess.py", line 1438, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified