実現したいこと
stable-point-aware-3dを仮想環境venv上に構築しようとしています。
stable-point-aware-3dのrequirements.txt(texture_baker)ビルドエラーが発生しました。
似た現象をご存じの方、原因調査方法をご存じの方、おられましたら助力願います。
発生している問題・分からないこと
pip install -vvv --log install.log --no-build-isolation -r requirements3.txt
エラーメッセージ
error
1 C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.8/include\cuda/std/detail/libcxx/include/cmath(1032): warning #221-D: floating-point value does not fit in required floating-point type 2 if (__r >= ::nextafter(static_cast<_RealT>(_MaxVal), ((float)(1e+300)))) 3 ^ 4 5 Remark: The warnings can be suppressed with "-diag-suppress <warning-number>" 6 7 baker_kernel.cu 8 tmpxft_00002f98_00000000-7_baker_kernel.cudafe1.cpp 9 D:/SPAW3D/venv/lib/site-packages/torch/include\torch/csrc/dynamo/compiled_autograd.h(1143): error C2872: 'std': あいまいなシンボルです。 10 C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/include\valarray(20): note: 'std' である可能性があります。 11 D:/SPAW3D/venv/lib/site-packages/torch/include\torch/csrc/dynamo/compiled_autograd.h(1143): note: または 'std' 12 D:/SPAW3D/venv/lib/site-packages/torch/include\torch/csrc/dynamo/compiled_autograd.h(1143): note: テンプレートインスタンス化コンテキスト (最初に最も古いもの) は 13 D:/SPAW3D/venv/lib/site-packages/torch/include\torch/csrc/dynamo/compiled_autograd.h(1190): note: コンパイル対象の クラス テンプレート インスタンス化 'torch::dynamo::autograd::IValuePacker<__int64>' のリファレンスを確認してください 14 D:/SPAW3D/venv/lib/site-packages/torch/include\torch/csrc/dynamo/compiled_autograd.h(1117): note: クラス テンプレート メンバー関数 'c10::TypePtr torch::dynamo::autograd::IValuePacker<__int64>::packed_type(void)' のコンパイル中 15 D:/SPAW3D/venv/lib/site-packages/torch/include\torch/csrc/dynamo/compiled_autograd.h(1190): note: 'torch::dynamo::autograd::IValuePacker<unsigned __int64>::packed_type' の 'torch::dynamo::autograd::IValuePacker<__int64>::packed_type' への最初の参照を参照してください 16 error: command 'C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.8\\bin\\nvcc.exe' failed with exit code 2 17 error: subprocess-exited-with-error 18 19 × python setup.py bdist_wheel did not run successfully. 20 │ exit code: 1 21 ╰─> See above for output. 22 23 note: This error originates from a subprocess, and is likely not a problem with pip. 24 full command: 'D:\SPAW3D\venv\Scripts\python.exe' -u -c ' 25 exec(compile('"'"''"'"''"'"' 26 # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py 27 # 28 # - It imports setuptools before invoking setup.py, to enable projects that directly 29 # import from `distutils.core` to work with newer packaging standards. 30 # - It provides a clear error message when setuptools is not installed. 31 # - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so 32 # setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning: 33 # manifest_maker: standard file '"'"'-c'"'"' not found". 34 # - It generates a shim setup.py, for handling setup.cfg-only projects. 35 import os, sys, tokenize, traceback 36 37 try: 38 import setuptools 39 except ImportError: 40 print( 41 "ERROR: Can not execute `setup.py` since setuptools failed to import in " 42 "the build environment with exception:", 43 file=sys.stderr, 44 ) 45 traceback.print_exc() 46 sys.exit(1) 47 48 __file__ = %r 49 sys.argv[0] = __file__ 50 51 if os.path.exists(__file__): 52 filename = __file__ 53 with tokenize.open(__file__) as f: 54 setup_py_code = f.read() 55 else: 56 filename = "<auto-generated setuptools caller>" 57 setup_py_code = "from setuptools import setup; setup()" 58 59 exec(compile(setup_py_code, filename, "exec")) 60 '"'"''"'"''"'"' % ('"'"'D:\\SPAW3D\\stable-point-aware-3d\\texture_baker\\setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' bdist_wheel -d 'C:\temp\pip-wheel-y_45syxq' 61 cwd: D:\SPAW3D\stable-point-aware-3d\texture_baker\\ 62error 63 ERROR: Failed building wheel for texture_baker 64 Running setup.py clean for texture_baker 65 Running command python setup.py clean 66 [<setuptools.extension.Extension('texture_baker._C') at 0x16006639ea0>] 67 running clean 68 removing 'build\temp.win-amd64-cpython-310' (and everything under it) 69 removing 'build\lib.win-amd64-cpython-310' (and everything under it) 70 'build\bdist.win-amd64' does not exist -- can't clean it 71 'build\scripts-3.10' does not exist -- can't clean it 72 removing 'build' 73Failed to build texture_baker 74Remote version of pip: 26.0.1 75Local version of pip: 25.2 76Was pip installed by pip? True 77 78[notice] A new release of pip is available: 25.2 -> 26.0.1 79[notice] To update, run: python.exe -m pip install --upgrade pip 80error: failed-wheel-build-for-install 81 82× Failed to build installable wheels for some pyproject.toml based projects 83╰─> texture_baker 84Exception information: 85Traceback (most recent call last): 86 File "D:\SPAW3D\venv\lib\site-packages\pip\_internal\cli\base_command.py", line 107, in _run_wrapper 87 status = _inner_run() 88 File "D:\SPAW3D\venv\lib\site-packages\pip\_internal\cli\base_command.py", line 98, in _inner_run 89 return self.run(options, args) 90 File "D:\SPAW3D\venv\lib\site-packages\pip\_internal\cli\req_command.py", line 71, in wrapper 91 return func(self, options, args) 92 File "D:\SPAW3D\venv\lib\site-packages\pip\_internal\commands\install.py", line 442, in run 93 raise InstallWheelBuildError(build_failures) 94pip._internal.exceptions.InstallWheelBuildError: <InstallWheelBuildError: failed-wheel-build-for-install> 95Removed build tracker: 'C:\\temp\\pip-build-tracker-rrklnvk_'
該当のソースコード
requirement.txt ./texture_baker/
試したこと・調べたこと
- teratailやGoogle等で検索した
- ソースコードを自分なりに変更した
- 知人に聞いた
- その他
上記の詳細・結果
An error about the “texture_baker” #38
stable-point-aware-3dはStability-AI 社のstable-fast-3dの後継プロダクトなので、似たIssueがあります。
しかし、それらは今回の問題の解決に至っていません。
Could not run 'texture_baker_cpp::rasterize' with arguments from the 'CUDA' backend. #39
An error about the “texture_baker” #79
unable to build wheel for gpytoolbox #54
補足
■インストール環境は以下です ・PC本体: Visual Studio: 2019 C++によるデスクトップ開発 2022 C++によるデスクトップ開発 Python:python --version Python 3.10.11 他に3.14 3.12あり CUDA Toolkit:nvcc --version Cuda compilation tools, release 12.8, V12.8.61 Build cuda_12.8.r12.8/compiler.35404655_0 ・仮想環境Venv内: Python:python --version Python 3.10.11 CUDA Toolkit:nvcc --version Cuda compilation tools, release 12.8, V12.8.61 Build cuda_12.8.r12.8/compiler.35404655_0 pip list(エラー直後): Package Version albucore 0.0.16 albumentations 1.4.15 annotated-types 0.7.0 antlr4-python3-runtime 4.9.3 anyio 4.13.0 beautifulsoup4 4.14.3 certifi 2026.2.25 charset-normalizer 3.4.6 colorama 0.4.6 easydict 1.13 einops 0.7.0 eval_type_backport 0.3.1 exceptiongroup 1.3.1 filelock 3.25.2 flet 0.83.0 fsspec 2026.2.0 gdown 5.2.1 h11 0.16.0 httpcore 1.0.9 httpx 0.28.1 huggingface-hub 0.23.4 idna 3.11 ImageIO 2.37.3 jaxtyping 0.2.31 Jinja2 3.1.6 kornia 0.8.2 kornia_rs 0.1.10 lazy-loader 0.5 loralib 0.1.2 MarkupSafe 3.0.2 mpmath 1.3.0 msgpack 1.1.2 networkx 3.4.2 numpy 1.26.4 oauthlib 3.3.1 omegaconf 2.3.0 opencv-python 4.11.0.86 opencv-python-headless 4.11.0.86 packaging 26.0 pillow 12.1.1 pip 25.2 pydantic 2.12.5 pydantic_core 2.41.5 PySocks 1.7.1 PyYAML 6.0.3 regex 2026.2.28 repath 0.9.0 requests 2.33.0 safetensors 0.7.0 scikit-image 0.25.2 scipy 1.15.3 setuptools 69.5.1 six 1.17.0 soupsieve 2.8.3 sympy 1.14.0 tifffile 2025.5.10 timm 1.0.26 tokenizers 0.19.1 torch 2.11.0+cu128 torchvision 0.26.0+cu128 tqdm 4.67.3 transformers 4.42.3 transparent-background 1.3.3 trimesh 4.4.1 typeguard 2.13.3 typing_extensions 4.15.0 typing-inspection 0.4.2 urllib3 2.6.3 wget 3.2 wheel 0.46.3
あなたの回答
tips
プレビュー