XmYx / ainodes-engine

GNU Lesser General Public License v2.1
250 stars 13 forks source link

Error on startup #4

Closed kft334 closed 1 year ago

kft334 commented 1 year ago

Looking forward to trying this but I'm getting the following error:

Already up to date. Using HF Cache in app dir Traceback (most recent call last): File "D:\ainodes-engine\main.py", line 35, in from ainodes_frontend.nodes.base.node_window import CalculatorWindow File "D:\ainodes-engine\ainodes_frontend\nodes\base\node_window.py", line 8, in from ainodes_frontend.nodes.base.node_sub_window import CalculatorSubWindow File "D:\ainodes-engine\ainodes_frontend\nodes\base\node_sub_window.py", line 8, in from ainodes_frontend.nodes.base.node_config import CALC_NODES, get_class_from_opcode, LISTBOX_MIMETYPE, node_categories File "D:\ainodes-engine\ainodes_frontend\nodes\base\node_config.py", line 77, in from ainodes_frontend.nodes.image_nodes import image_op_node, input, output, video_input, video_save_node, image_blend_node, matte_node File "D:\ainodes-engine\ainodes_frontend\nodes\image_nodes\matte_node.py", line 12, in from ainodes_backend.matte.matte import MatteInference File "D:\ainodes-engine\ainodes_backend\matte\matte.py", line 13, in result = subprocess.run(['wget', '--version'], capture_output=True, check=True) File "C:\Users\PC\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "C:\Users\PC\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 969, in init self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Users\PC\AppData\Local\Programs\Python\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

And I don't know if it's planned but it would be great to be able to use this as an API in the future.

XmYx commented 1 year ago

Did you start the app with the launcher.py or run.bat?

kft334 commented 1 year ago

run.bat on Win 10. I also tried launcher.py and main.py with the same error.

Edit: The error has changed after updating. I see that Triton is commented out in the requirements. Should I install it manually?

Using HF Cache in app dir QIODevice::read (QFile, "D:\ainodes-engine\ainodes_frontend\nodes\base\qss\node_engine-dark.qss"): device not open QIODevice::read (QFile, "D:\ainodes-engine\ainodes_frontend\nodes\base\qss\node_engine-dark.qss"): device not open QIODevice::read (QFile, "D:\ainodes-engine\ainodes_frontend\nodes\base\qss\node_engine-dark.qss"): device not open QIODevice::read (QFile, "D:\ainodes-engine\ainodes_frontend\nodes\base\qss\node_engine-dark.qss"): device not open A matching Triton is not available, some optimizations will not be enabled. Error caught was: No module named 'triton' Using xformers cross attention Traceback (most recent call last): File "D:\ainodes-engine\main.py", line 65, in import_nodes_from_directory("ainodes_frontend/nodes/torch_nodes") File "D:\ainodes-engine\ainodes_frontend\nodes\base\node_config.py", line 82, in import_nodes_from_directory exec(f"from {dir} import {module_name}") File "", line 1, in File "D:\ainodes-engine\ainodes_frontend\nodes\torch_nodes\matte_node.py", line 7, in from ainodes_backend.matte.matte import MatteInference File "D:\ainodes-engine\ainodes_backend\matte\matte.py", line 13, in result = subprocess.run(['wget', '--version'], capture_output=True, check=True) File "C:\Users\PC\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "C:\Users\PC\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 969, in init self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Users\PC\AppData\Local\Programs\Python\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 Error: Command '['nodes_env\Scripts\python.exe', 'main.py']' returned non-zero exit status 1.

XmYx commented 1 year ago

it suggests that wget is not working in windows, one second, I'll add a try except and print there!

XmYx commented 1 year ago

This one is likely solved now, please test, but now It is downloading Matting the model without wget.