Closed Zdeto closed 3 months ago
getting the same
2024-04-20T00:30:15.195384562Z File "/workspace/ComfyUI/custom_nodes/human-parser-comfyui-node/schp/networks/AugmentCE2P.py", line 21, in
@Zdeto from the logs you provided:
C1083: Cannot open include file: 'Python.h': No such file or directory
Somebody reported this before I think - for some reason the compiler can't locate the required "Python.h" file, which is probably in a directory that's not in the OS path (somewhere inside the comfy embedded directory? maybe C:\ComfyUI_windows_portable\python_embeded\include
).
I unfortunately don't have easy access to a Windows machine, so it's hard to debug.
However - here's some official suggestions from Microsoft: https://learn.microsoft.com/en-us/visualstudio/python/working-with-c-cpp-python-in-visual-studio?view=vs-2022#error-unable-to-locate-header-file
Basically verify that the C/C++ > General > Additional Include Directories project property contains the path to the include folder for your Python installation
.
@mosobln you have a different issue according to your logs:
Command '['which', 'c++']' returned non-zero exit status 1.
So basically you don't have c++ installed, but the node requires it to compile some python extensions.
See https://cloud.google.com/cpp/docs/setup or https://learn.microsoft.com/en-us/cpp/build/vscpp-step-0-installation?view=msvc-170
comfyui.log I started a developer command prompt for VS2019, fired up comfyui with run_nvidia_gpu.bat. It's a fresh and clean installation. ninja is in the PATH. What is wrong? :) Windows 11 Pro here.