Closed jacksoncw2000 closed 6 months ago
This ninja issue seems to occur even if we have LongPathsEnabled in System Registry (REGEDIT: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem) and CMAKE_OBJECT_PATH_MAX=1024 in our environment.
When ninja builds it likes to repeat the path to the module's base folder after the Release folder so that the target path length doubles. For example, here is a possible path that ninja might be trying to reference which is close to 400 characters long:
C:\ComfyUI\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\tgs\models\snowflake\pointnet2_ops_lib\build\temp.win-amd64-cpython-311\Release\ComfyUI\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\tgs\models\snowflake\pointnet2_ops_lib_ext-src\src\group_points_gpu.obj
Likely this is because 'CMAKE_OBJECT_PATH_MAX=1024' is not being appended as a default argument. See: https://github.com/ninja-build/ninja/issues/1900#issuecomment-1817532728
Alternatively, you can simply copy the pointnet2 folder to a root folder 'C:\Temp' where all build paths will be less than 260 chars long, and once it's built there, install the created wheel with pip in your environment as usual. In this case use: python setup.py bdist_wheel
instead of install or build.
This ninja issue seems to occur even if we have LongPathsEnabled in System Registry (REGEDIT: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem) and CMAKE_OBJECT_PATH_MAX=1024 in our environment.
When ninja builds it likes to repeat the path to the module's base folder after the Release folder so that the target path length doubles. For example, here is a possible path that ninja might be trying to reference which is close to 400 characters long:
C:\ComfyUI\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\tgs\models\snowflake\pointnet2_ops_lib\build\temp.win-amd64-cpython-311\Release\ComfyUI\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack\tgs\models\snowflake\pointnet2_ops_lib_ext-src\src\group_points_gpu.obj
Likely this is because 'CMAKE_OBJECT_PATH_MAX=1024' is not being appended as a default argument. See: ninja-build/ninja#1900 (comment)
Alternatively, you can simply copy the pointnet2 folder to a root folder 'C:\Temp' where all build paths will be less than 260 chars long, and once it's built there, install the created wheel with pip in your environment as usual. In this case use:
python setup.py bdist_wheel
instead of install or build.
Hi kustomzone I have run python setup.py bdist_wheel
in C:\Temp\pointnet2_ops_lib
What should I do next? Building the wheel completed successfully in the Temp folder described above, but afterwards I tried running install_miniconda.bat
and pip install -r requirements_post.txt
but am still getting the same error as above. I then tried moving the pointnet2_ops_lib folder with build folder into the same directory where the unbuilt pointnet2_ops_lib folder is in the ComfyUI-3D-Pack folder, but when I try to load workflows I am still getting a lot of missing nodes.
Any idea where to go from here? Thank you for your help above and any help is appreciated!
Got this to work! Had to install the packages in requirements_post individually and moved the points package into the same directory as the unbuilt one.
Closing this issue.
I have tried installing this multiple times and keep running into: ERROR: Failed building wheel for pointnet2-ops
I am using miniconda, have a Nvidia 3080, and using Windows 11.
This is my first time creating a GitHub Issue so if I am doing something wrong / need to include specific pieces of information please let me know.
Here is a larger part of the error:
As for the "nvcc error : 'cl.exe' died with status 0xC0000409" part, when I run nvcc in the miniconda prompt I get this output:
Building of all other wheels works: