Open Murble99 opened 1 month ago
After repairing and just redownloading VS Build Tools 2022, it is back to saying "cl.exe not found in default Visual Studio installation path" and I don't want to mess it up again.
I have the same issue. No clue what to do.
fatal error C1189: #error: -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
While I didn't have it with 3dPack, I've gotten similar errors to this. Typically I found it was caused by the build.ninja being generated requiring C++17, but for some godforsaken reason the visual studio installer not populating whatever list that checks against with the value. iirc my list only came with 'C++latest' or something similar.
I never figured out how to get those flags. I ended up having to edit the build.ninja and replace C++17 with C++latest, and build it directly(as running comfy again will regenerate the build file and erase your edits), and then install the built folder with pip.
More than likely this will cause further compilation errors, as it is a clear sign that your C++ environment isn't setup right. I had to add a number of build.ninja -I include lines as well.
After repairing and just redownloading VS Build Tools 2022, it is back to saying "cl.exe not found in default Visual Studio installation path" and I don't want to mess it up again.
I've noticed on my machine that if both the Visual Studio build tools and Visual Studio itself are installed, it can show that "cl.exe not found" message if Visual Studio does not have the "C++ for desktop development" package installed. It seems to detect the Visual Studio install and looks for cl.exe there instead of in the build tools install, but Visual Studio won't have cl.exe if the C++ for desktop development extension isn't installed.
However, now it gets stuck at "Only the versions between 2017 and 2022 (inclusive) are supported!", even though I have version 2022 installed of both the build tools and Visual Studio.
EDIT: Did some more research. It seems like the "unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! ..." error is caused by a combination of an inconsistency in the internal version numbering from Visual Studio 17.9 to 17.10, and CUDA not accounting for this inconsistency until CUDA 12.5. ComfyUI portable however still seems to use CUDA 12.1 at the time of writing. Apparently, installing Visual Studio 17.9.2 or earlier (older versions are available here, but you'd need to uninstall your current Visual Studio install first) may work, but it's getting late here, so I'll try that tomorrow.
slangtorch.py is doing "vswhere.exe -latest -property installationPath" and not seeing any. It needs Visual Studio Community.
Installed "Visual Studio Community 2022 with C++ with MSVC v142" BUT compiling had errors so I had to install "Visual Studio Community 2019 with C++ MSVC v142" and now it works.
slangtorch.py is doing "vswhere.exe -latest -property installationPath" and not seeing any. It needs Visual Studio Community.
Installed "Visual Studio Community 2022 with C++ with MSVC v142" BUT compiling had errors so I had to install "Visual Studio Community 2019 with C++ MSVC v142" and now it works.
it worked but I found a new problem after installing visualcode 2019 "RecursionError: maximum recursion depth exceeded when calling a Python object" I don't know what it means
I have used this for TripoSR and CRM and just saw StableFast3d and wanted to try. When I first tried it, on the "Load SF3D Model" node it came up with the error along the lines of, "cl.exe could not be found". I realized I forgot to enable Desktop Development C++. I did that and now I get this:
I have no idea where to go to from here. Each of the other methods work, so I'll stick to those, but I'd like to give this a go. I saw this line, and I am using Visual Studio Build Tools 2022, so I am currently repairing that to see if it fixes it.
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include\crt/host_config.h(153): fatal error C1189: #error: -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.