error
Opened this issue · 3 comments
(dust3r) C:\Users\jianghr>pip3 install cumcubes
Collecting cumcubes
Using cached cumcubes-0.0.3.tar.gz (167 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: cumcubes
Building wheel for cumcubes (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [59 lines of output]
C:\Users\jianghr\AppData\Roaming\Python\Python311\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
running bdist_wheel
C:\Users\jianghr.conda\envs\dust3r\Lib\site-packages\torch\utils\cpp_extension.py:499: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
warnings.warn(msg.format('we could not find ninja.'))
running build
running build_py
creating build
creating build\lib.win-amd64-3.11
creating build\lib.win-amd64-3.11\cumcubes
copying cumcubes\utils.py -> build\lib.win-amd64-3.11\cumcubes
copying cumcubes\version.py -> build\lib.win-amd64-3.11\cumcubes
copying cumcubes_init_.py -> build\lib.win-amd64-3.11\cumcubes
package init file 'cumcubes\src_init_.py' not found (or not a regular file)
running build_ext
C:\Users\jianghr.conda\envs\dust3r\Lib\site-packages\torch\utils\cpp_extension.py:384: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。
warnings.warn(f'Error checking compiler version for {compiler}: {error}')
C:\Users\jianghr.conda\envs\dust3r\Lib\site-packages\torch\utils\cpp_extension.py:418: UserWarning: The detected CUDA version (12.3) has a minor version mismatch with the version that was used to compile PyTorch (12.1). Most likely this shouldn't be a problem.
warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda))
creating build\temp.win-amd64-3.11
creating build\temp.win-amd64-3.11\Release
creating build\temp.win-amd64-3.11\Release\cumcubes
creating build\temp.win-amd64-3.11\Release\cumcubes\src
"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\jianghr\AppData\Local\Temp\pip-install-_k4p48ip\cumcubes_14189df7af5849aeafbcfa06660a0660\cumcubes\include -IC:\Users\jianghr.conda\envs\dust3r\Lib\site-packages\torch\include -IC:\Users\jianghr.conda\envs\dust3r\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\jianghr.conda\envs\dust3r\Lib\site-packages\torch\include\TH -IC:\Users\jianghr.conda\envs\dust3r\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.3\include" -IC:\Users\jianghr.conda\envs\dust3r\include -IC:\Users\jianghr.conda\envs\dust3r\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\cppwinrt" /EHsc /Tpcumcubes/src/bindings.cpp /Fobuild\temp.win-amd64-3.11\Release\cumcubes/src/bindings.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /wd4624 /wd4067 /wd4068 /EHsc -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=src -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++17
bindings.cpp
"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\jianghr\AppData\Local\Temp\pip-install-_k4p48ip\cumcubes_14189df7af5849aeafbcfa06660a0660\cumcubes\include -IC:\Users\jianghr.conda\envs\dust3r\Lib\site-packages\torch\include -IC:\Users\jianghr.conda\envs\dust3r\Lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\jianghr.conda\envs\dust3r\Lib\site-packages\torch\include\TH -IC:\Users\jianghr.conda\envs\dust3r\Lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.3\include" -IC:\Users\jianghr.conda\envs\dust3r\include -IC:\Users\jianghr.conda\envs\dust3r\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\cppwinrt" /EHsc /Tpcumcubes/src/cumcubes.cpp /Fobuild\temp.win-amd64-3.11\Release\cumcubes/src/cumcubes.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /wd4624 /wd4067 /wd4068 /EHsc -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=src -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++17
cumcubes.cpp
cumcubes/src/cumcubes.cpp(92): error C2079: “ply_file”使用未定义的 class“std::basic_ofstream<char,std::char_traits>”
cumcubes/src/cumcubes.cpp(92): error C2440: “初始化”: 无法从“initializer list”转换为“int”
cumcubes/src/cumcubes.cpp(92): note: 初始值设定项包含过多元素
cumcubes/src/cumcubes.cpp(93): error C2297: “<<”: 非法,右操作数包含“const char [5]”类型
cumcubes/src/cumcubes.cpp(93): warning C4552: ”<<“: 未使用表达式结果
cumcubes/src/cumcubes.cpp(94): error C2297: “<<”: 非法,右操作数包含“const char [33]”类型
cumcubes/src/cumcubes.cpp(94): warning C4552: ”<<“: 未使用表达式结果
cumcubes/src/cumcubes.cpp(95): error C2297: “<<”: 非法,右操作数包含“const char [16]”类型
cumcubes/src/cumcubes.cpp(95): error C2563: 在形参表中不匹配
cumcubes/src/cumcubes.cpp(95): error C2568: “<<”: 无法解析函数重载
cumcubes/src/cumcubes.cpp(95): note: 可能是“std::basic_ostream<_Elem,_Traits> &std::endl(std::basic_ostream<_Elem,_Traits> &)”
cumcubes/src/cumcubes.cpp(96): error C2297: “<<”: 非法,右操作数包含“const char [18]”类型
cumcubes/src/cumcubes.cpp(96): warning C4552: ”<<“: 未使用表达式结果
cumcubes/src/cumcubes.cpp(97): error C2297: “<<”: 非法,右操作数包含“const char [18]”类型
cumcubes/src/cumcubes.cpp(97): warning C4552: ”<<“: 未使用表达式结果
cumcubes/src/cumcubes.cpp(98): error C2297: “<<”: 非法,右操作数包含“const char [18]”类型
cumcubes/src/cumcubes.cpp(98): warning C4552: ”<<“: 未使用表达式结果
cumcubes/src/cumcubes.cpp(99): error C2297: “<<”: 非法,右操作数包含“const char [20]”类型
cumcubes/src/cumcubes.cpp(99): warning C4552: ”<<“: 未使用表达式结果
cumcubes/src/cumcubes.cpp(100): error C2297: “<<”: 非法,右操作数包含“const char [22]”类型
cumcubes/src/cumcubes.cpp(100): warning C4552: ”<<“: 未使用表达式结果
cumcubes/src/cumcubes.cpp(101): error C2297: “<<”: 非法,右操作数包含“const char [21]”类型
cumcubes/src/cumcubes.cpp(101): warning C4552: ”<<“: 未使用表达式结果
cumcubes/src/cumcubes.cpp(102): error C2297: “<<”: 非法,右操作数包含“const char [14]”类型
cumcubes/src/cumcubes.cpp(102): error C2563: 在形参表中不匹配
cumcubes/src/cumcubes.cpp(102): error C2568: “<<”: 无法解析函数重载
cumcubes/src/cumcubes.cpp(102): note: 可能是“std::basic_ostream<_Elem,_Traits> &std::endl(std::basic_ostream<_Elem,_Traits> &)”
cumcubes/src/cumcubes.cpp(103): error C2297: “<<”: 非法,右操作数包含“const char [36]”类型
cumcubes/src/cumcubes.cpp(103): warning C4552: ”<<“: 未使用表达式结果
cumcubes/src/cumcubes.cpp(105): error C2297: “<<”: 非法,右操作数包含“const char [12]”类型
cumcubes/src/cumcubes.cpp(105): warning C4552: ”<<“: 未使用表达式结果
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cumcubes
Running setup.py clean for cumcubes
Failed to build cumcubes
ERROR: Could not build wheels for cumcubes, which is required to install pyproject.toml-based projects
I also tried 2022, but it did not work for me
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
cumcubes/src/cumcubes.cpp: In function ‘void mc::save_mesh_as_ply(std::string, at::Tensor, at::Tensor, at::Tensor)’:
cumcubes/src/cumcubes.cpp:92:28: error: variable ‘std::ofstream ply_file’ has initializer but incomplete type
92 | std::ofstream ply_file(filename, std::ios::out | std::ios::binary);
| ^~~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1