-
Notifications
You must be signed in to change notification settings - Fork 13
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
RuntimeError: Ninja is required to load C++ extensions #3
Comments
I am getting issues with Ninja as well. It says that the requirement is already met. How can I fix this? |
@jandolina I have still no idea how to solve it. I'm not sure if this repo is still alive :( |
I am using the Clothes Swapper. As part of that workflow, there's a face swapper. If you don't need the face swap, I think the Human Parser is left out. |
I second that. |
same issue here |
Hi everyone, I'm looking into this but it's difficult to test things out since I don't have easy access to a Windows machine. But it basically looks like Windows can't find the "ninja.exe" file. I'm guessing that:
Once you locate ninja.exe, I think there are two options:
A quick google gave me this https://www.mathworks.com/matlabcentral/answers/94933-how-do-i-edit-my-system-path-in-windows but I bet there's better tutorials out there too. Remember, you need to enter the path to the folder containing the ninja.exe binary. You could also just:
I'll try to get access to a Windows machine asap, meanwhile let me know if any of the above helps! |
I added the ninja.exe to the path environment variable. After "reading" a lot of .h-header files I ran into this error:
After I read that a Visual Studio 2019 installation could cause that issue, I deinstalled 2019 and installed 2022.
|
Ok so now it looks like it can't locate "cl.exe" which is the compiler/linker tool: https://learn.microsoft.com/en-us/cpp/build/reference/compiler-options?view=msvc-170
Can you please make sure you've installed all of the things highlighted below? Then, it looks like you'll need to start ComfyUI from the developer command prompt instead of the regular cmd. Here's docs on how to launch the dev command prompt: https://learn.microsoft.com/en-us/visualstudio/ide/reference/command-prompt-powershell?view=vs-2022 You'll want to run something similar to: cd X:\path\to\comfy
python main.py |
I installed the components you marked and startet VS2022 commandline und ran But then a huge list of "reading of header files" appears and somewhere in the middle some error message like this:
And then at the end it just says
I don't even know how to pipe the full message into a textfile so I can have a look at the whole text :( |
Hmm could you try running in the "x64 Native Tools Command Prompt" instead of the x86 one? Got the idea from here: https://stackoverflow.com/questions/12843846/problems-when-running-nvcc-from-command-line |
@gabidobo I don't have any option to choose between x86/x64 commandline
My prompt commandline looks like this - without any hint regarding x86 or x64: I assume that it is already x64. |
Ok, I've found the x64 console, but now I get this error message:
I found a similar issue in the ootddiffusion repo: |
Ok @MoonMoon82 it looks like you got to the error mentioned in #2 - the @kitkat4947 your error seems to be related to the "OOTDiffusion" node, maybe try posting the issue over at https://github.com/AuroBit/ComfyUI-OOTDiffusion Going to close this as I think we got to the bottom of the "ninja not found" issue, and will continue debugging other issues under their respective threads. |
@kitkat4947 in your case it looks like "ninja.exe" cannot be found by the OS, you need to add the parent directory to your system PATH. Check above in this thread for details. |
still same errors here. I'm attempting to run in Stability Matrix and can't just alter the system PATH easily |
what is "the bottom" of the issue? I don't have OOTdiffusion installed and getting same errors |
@offmybach not sure about how Stability Matrix works (or if it matters for this issue), but the ninja.exe file needs to be visible to the OS for this node to work - hence why it needs to be in the PATH. If you can't update your env vars you might not be able to run this. But you could try:
|
@kitkat4947 Copy the following models to the
|
@kitkat4947 again, it looks like you're in the wrong repo :) your issue is with the OTTDiffusion node, here https://github.com/AuroBit/ComfyUI-OOTDiffusion, you might want to check the issues there. |
Hi!
I installed human-parser-comfyui-node through ComfyUI manager and as soon as I run ComfyUI the following error messages appear:
As you can see, I'm running the windows portable version of ComfyUI and I already installed Ninja in the built-in python environment:
I'm not sure how to proceed to run human-parser-comfyui-node properly. I would really appreciate if you have any idea how to solve this issue!
Kind regards!
The text was updated successfully, but these errors were encountered: