Skip to content
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: Error building extension 'nvdiffrast_plugin_gl': [1/6] #451

Open
aswordok opened this issue Feb 18, 2025 · 0 comments
Open

Comments

@aswordok
Copy link

D:+AI\myComfyUI\Comfy3D>mamba activate 3d
[START] Security scan
[DONE] Security scan

ComfyUI-Manager: installing dependencies done.

** ComfyUI startup time: 2025-02-18 15:26:11.705
** Platform: Windows
** Python version: 3.12.9 | packaged by conda-forge | (main, Feb 14 2025, 07:48:05) [MSC v.1942 64 bit (AMD64)]
** Python executable: D:+AI\miniconda3\envs\3d\python.exe
** ComfyUI Path: D:+AI\myComfyUI\Comfy3D
** ComfyUI Base Folder Path: D:+AI\myComfyUI\Comfy3D
** User directory: D:+AI\myComfyUI\Comfy3D\user
** ComfyUI-Manager config path: D:+AI\myComfyUI\Comfy3D\user\default\ComfyUI-Manager\config.ini
** Log path: D:+AI\myComfyUI\Comfy3D\user\comfyui.log

#######################################################################
[ComfyUI-Manager] Starting dependency installation/(de)activation for the extension

ComfyUI-Manager: EXECUTE => ['D:\+AI\miniconda3\envs\3d\python.exe', '-m', 'pip', 'install', 'PyGithub']

Execute install/(de)activation script for 'D:+AI\myComfyUI\Comfy3D\custom_nodes\comfyui-3d-pack'

ComfyUI-Manager: EXECUTE => ['D:\+AI\miniconda3\envs\3d\python.exe', '-m', 'pip', 'install', 'git+https://github.com/EasternJournalist/utils3d.git#egg=utils3d']

Execute install/(de)activation script for 'D:+AI\myComfyUI\Comfy3D\custom_nodes\comfyui-3d-pack'

Collecting utils3d
Cloning https://github.com/EasternJournalist/utils3d.git to c:\users\user\appdata\local\temp\pip-install-tgu07c9f\utils3d_b80d3c41a07d47c4bb55fda9bc13f407
[!] Running command git clone --filter=blob:none --quiet https://github.com/EasternJournalist/utils3d.git 'C:\Users\user\AppData\Local\Temp\pip-install-tgu07c9f\utils3d_b80d3c41a07d47c4bb55fda9bc13f407'
Resolved https://github.com/EasternJournalist/utils3d.git to commit 075c7da145819925ad0a61a18cf9a6216be3ebcc
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
[SKIP] Downgrading pip package isn't allowed: diffusers (cur=0.32.2)
[SKIP] Downgrading pip package isn't allowed: transformers (cur=4.45.2)

ComfyUI-Manager: EXECUTE => ['D:\+AI\miniconda3\envs\3d\python.exe', '-m', 'pip', 'install', 'pytorch_msssim']

Execute install/(de)activation script for 'D:+AI\myComfyUI\Comfy3D\custom_nodes\comfyui-3d-pack'

ComfyUI-Manager: EXECUTE => ['D:\+AI\miniconda3\envs\3d\python.exe', '-m', 'pip', 'install', 'PyMCubes']

Execute install/(de)activation script for 'D:+AI\myComfyUI\Comfy3D\custom_nodes\comfyui-3d-pack'

[ComfyUI-Manager] Startup script completed.
#######################################################################

[ComfyUI-Manager] Restarting to reapply dependency installation.
Command: ['"D:\+AI\miniconda3\envs\3d\python.exe"', '"main.py"', '--windows-standalone-build']

请按任意键继续. . . [START] Security scan
[DONE] Security scan

ComfyUI-Manager: installing dependencies done.

** ComfyUI startup time: 2025-02-18 15:26:23.246
** Platform: Windows
** Python version: 3.12.9 | packaged by conda-forge | (main, Feb 14 2025, 07:48:05) [MSC v.1942 64 bit (AMD64)]
** Python executable: D:+AI\miniconda3\envs\3d\python.exe
** ComfyUI Path: D:+AI\myComfyUI\Comfy3D
** ComfyUI Base Folder Path: D:+AI\myComfyUI\Comfy3D
** User directory: D:+AI\myComfyUI\Comfy3D\user
** ComfyUI-Manager config path: D:+AI\myComfyUI\Comfy3D\user\default\ComfyUI-Manager\config.ini
** Log path: D:+AI\myComfyUI\Comfy3D\user\comfyui.log

Prestartup times for custom nodes:
1.9 seconds: D:+AI\myComfyUI\Comfy3D\custom_nodes\ComfyUI-Manager

Checkpoint files will always be loaded safely.
Total VRAM 16380 MB, total RAM 65253 MB
pytorch version: 2.5.1+cu124
xformers version: 0.0.28.post3
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 4060 Ti : cudaMallocAsync
Using xformers attention
ComfyUI version: 0.3.14
[Prompt Server] web root: D:+AI\myComfyUI\Comfy3D\web
D:+AI\miniconda3\envs\3d\Lib\site-packages\kiui\nn_init_.py:31: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)

D:+AI\miniconda3\envs\3d\Lib\site-packages\kiui\nn_init_.py:37: FutureWarning: torch.cuda.amp.custom_bwd(args...) is deprecated. Please use torch.amp.custom_bwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_bwd

Warn!: xFormers is available (Attention)
Warn!: D:+AI\miniconda3\envs\3d\Lib\site-packages\torch\utils\cpp_extension.py:1964: UserWarning: TORCH_CUDA_ARCH_LIST is not set, all archs for visible cards are included for compilation.
If this is not desired, please set os.environ['TORCH_CUDA_ARCH_LIST'].
warnings.warn(

Warn!: Traceback (most recent call last):
File "D:+AI\miniconda3\envs\3d\Lib\site-packages\torch\utils\cpp_extension.py", line 2104, in _run_ninja_build
subprocess.run(
File "D:+AI\miniconda3\envs\3d\Lib\subprocess.py", line 573, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "D:+AI\myComfyUI\Comfy3D\nodes.py", line 2113, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 999, in exec_module
File "", line 488, in call_with_frames_removed
File "D:+AI\myComfyUI\Comfy3D\custom_nodes\comfyui-3d-pack_init
.py", line 53, in
module = importlib.import_module(f".{nodes_filename}", package=name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:+AI\miniconda3\envs\3d\Lib\importlib_init_.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 999, in exec_module
File "", line 488, in _call_with_frames_removed
File "D:+AI\myComfyUI\Comfy3D\custom_nodes\comfyui-3d-pack\nodes.py", line 84, in
from Unique3D.scripts.project_mesh import multiview_color_projection, multiview_color_projection_texture, get_cameras_list, get_orbit_cameras_list
File "D:+AI\myComfyUI\Comfy3D\custom_nodes\ComfyUI-3D-Pack\Gen_3D_Modules\Unique3D\scripts\project_mesh.py", line 99, in
pix2faces_renderer = Pix2FacesRenderer()
^^^^^^^^^^^^^^^^^^^
File "D:+AI\myComfyUI\Comfy3D\custom_nodes\ComfyUI-3D-Pack\Gen_3D_Modules\Unique3D\scripts\project_mesh.py", line 71, in init
self._glctx = dr.RasterizeGLContext(output_db=False, device=device)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:+AI\miniconda3\envs\3d\Lib\site-packages\nvdiffrast\torch\ops.py", line 228, in init
self.cpp_wrapper = _get_plugin(gl=True).RasterizeGLStateWrapper(output_db, mode == 'automatic', cuda_device_idx)
^^^^^^^^^^^^^^^^^^^^
File "D:+AI\miniconda3\envs\3d\Lib\site-packages\nvdiffrast\torch\ops.py", line 125, in _get_plugin
torch.utils.cpp_extension.load(name=plugin_name, sources=source_paths, extra_cflags=common_opts+cc_opts, extra_cuda_cflags=common_opts+['-lineinfo'], extra_ldflags=ldflags, with_cuda=True, verbose=False)
File "D:+AI\miniconda3\envs\3d\Lib\site-packages\torch\utils\cpp_extension.py", line 1314, in load
return _jit_compile(
^^^^^^^^^^^^^
File "D:+AI\miniconda3\envs\3d\Lib\site-packages\torch\utils\cpp_extension.py", line 1721, in _jit_compile
_write_ninja_file_and_build_library(
File "D:+AI\miniconda3\envs\3d\Lib\site-packages\torch\utils\cpp_extension.py", line 1833, in _write_ninja_file_and_build_library
_run_ninja_build(
File "D:+AI\miniconda3\envs\3d\Lib\site-packages\torch\utils\cpp_extension.py", line 2120, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error building extension 'nvdiffrast_plugin_gl': [1/6] cl /showIncludes -DTORCH_EXTENSION_NAME=nvdiffrast_plugin_gl -DTORCH_API_INCLUDE_EXTENSION_H -ID:+AI\miniconda3\envs\3d\Lib\site-packages\torch\include -ID:+AI\miniconda3\envs\3d\Lib\site-packages\torch\include\torch\csrc\api\include -ID:+AI\miniconda3\envs\3d\Lib\site-packages\torch\include\TH -ID:+AI\miniconda3\envs\3d\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include" -ID:+AI\miniconda3\envs\3d\Include -D_GLIBCXX_USE_CXX11_ABI=0 /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /wd4624 /wd4067 /wd4068 /EHsc /std:c++17 -DNVDR_TORCH /wd4067 /wd4624 -c D:+AI\miniconda3\envs\3d\Lib\site-packages\nvdiffrast\torch\torch_rasterize_gl.cpp /Fotorch_rasterize_gl.o
FAILED: torch_rasterize_gl.o
cl /showIncludes -DTORCH_EXTENSION_NAME=nvdiffrast_plugin_gl -DTORCH_API_INCLUDE_EXTENSION_H -ID:+AI\miniconda3\envs\3d\Lib\site-packages\torch\include -ID:+AI\miniconda3\envs\3d\Lib\site-packages\torch\include\torch\csrc\api\include -ID:+AI\miniconda3\envs\3d\Lib\site-packages\torch\include\TH -ID:+AI\miniconda3\envs\3d\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include" -ID:+AI\miniconda3\envs\3d\Include -D_GLIBCXX_USE_CXX11_ABI=0 /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /wd4624 /wd4067 /wd4068 /EHsc /std:c++17 -DNVDR_TORCH /wd4067 /wd4624 -c D:+AI\miniconda3\envs\3d\Lib\site-packages\nvdiffrast\torch\torch_rasterize_gl.cpp /Fotorch_rasterize_gl.o
用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.29.30158 版
版权所有(C) Microsoft Corporation。保留所有权利。

mamba list | findstr "torch cuda-toolkit cudnn"
DEPRECATION: --no-python-version-warning is deprecated. pip 25.1 will enforce this behaviour change. A possible replacement is to remove the flag as it's a no-op. Discussion can be found at pypa/pip#13154
cuda-toolkit 12.4.1 h382c6e5_0 https://mirrors.ustc.edu.cn/anaconda/pkgs/main
cudnn 6.0 0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
open_clip_torch 2.30.0 pypi_0 pypi
pytorch-lightning 2.5.0.post0 pypi_0 pypi
pytorch-msssim 1.0.0 pypi_0 pypi
pytorch3d 0.7.8 pypi_0 pypi
slangtorch 1.3.4 pypi_0 pypi
torch 2.5.1+cu124 pypi_0 pypi
torch_scatter 2.1.2 pypi_0 pypi
torchaudio 2.5.1+cu124 pypi_0 pypi
torchmetrics 1.6.1 pypi_0 pypi
torchsde 0.2.6 pypi_0 pypi
torchtyping 0.1.5 pypi_0 pypi
torchvision 0.20.1+cu124 pypi_0 pypi

ComfyUI: v0.3.14-16-gd9f0fcdb
(2025-02-11)
Manager: V3.22.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant