Open danielroth88 opened 4 years ago
Hi! we run our model with pytorch: 1.0.0. Please try to use this version.
Hi! thanks for replying!
I odwngraded to pytorch 1.0.0, still no good - getting a different error now (maybe it has to do with C++ version?)
error:
running install
running bdist_egg
running egg_info
writing resample2d_cuda.egg-info\PKG-INFO
writing dependency_links to resample2d_cuda.egg-info\dependency_links.txt
writing top-level names to resample2d_cuda.egg-info\top_level.txt
reading manifest file 'resample2d_cuda.egg-info\SOURCES.txt'
writing manifest file 'resample2d_cuda.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_ext
C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\torch\utils\cpp_extension.py:184: UserWarning: Error checking compiler version for cl: [WinError 2] The system cannot find the file specified
warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error))
building 'resample2d_cuda' extension
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\torch\lib\include -IC:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\torch\lib\include\torch\csrc\api\include -IC:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\torch\lib\include\TH -IC:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\torch\lib\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\include" -IC:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\include -IC:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.7.2\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tpresample2d_cuda.cc /Fobuild\temp.win-amd64-3.6\Release\resample2d_cuda.obj -std=c++11 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=resample2d_cuda -D_GLIBCXX_USE_CXX11_ABI=0
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
resample2d_cuda.cc
C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\torch\lib\include\c10/util/Exception.h(27): warning C4275: non dll-interface class 'std::exception' used as base for dll-interface class 'c10::Error'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\include\vcruntime_exception.h(44): note: see declaration of 'std::exception'
C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\torch\lib\include\c10/util/Exception.h(27): note: see declaration of 'c10::Error'
C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\torch\lib\include\c10/util/Exception.h(28): warning C4251: 'c10::Error::msgstack': class 'std::vector<std::string,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'c10::Error'
with
[
_Ty=std::string
]
C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\torch\lib\include\c10/util/Exception.h(28): note: see declaration of 'std::vector<std::string,std::allocator<_Ty>>'
with
[
Ty=std::string
]
C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\torch\lib\include\c10/util/Exception.h(29): warning C4251: 'c10::Error::backtrace': class 'std::basic_string<char,std::char_traits
It seems like your environment is built on Windows. We have not tried windows. If you want to obtain some demo results, you can try it using colab.
Solving this issue for pytorch3d made it work for me on windows 10. https://github.com/facebookresearch/pytorch3d/issues/323
I have GPU 1070 with CUDA 10.2 installed and pytorch 1.5. I modified the setup.py file to only include sm=61 (my compute capability) I get the followin error: running install running bdist_egg running egg_info writing resample2d_cuda.egg-info\PKG-INFO writing dependency_links to resample2d_cuda.egg-info\dependency_links.txt writing top-level names to resample2d_cuda.egg-info\top_level.txt reading manifest file 'resample2d_cuda.egg-info\SOURCES.txt' writing manifest file 'resample2d_cuda.egg-info\SOURCES.txt' installing library code to build\bdist.win-amd64\egg running install_lib running build_ext C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\torch\utils\cpp_extension.py:237: UserWarning: Error checking compiler version for cl: [WinError 2] The system cannot find the file specified warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error)) building 'resample2d_cuda' extension Emitting ninja build file C:\Users\daniel.roth\StructureFlow\resample2d_package\build\temp.win-amd64-3.6\Release\build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/2] cl /showIncludes /nologo /Ox /W3 /GL /DNDEBUG /MD /MD /wd4819 /EHsc -IC:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\torch\include -IC:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\torch\include\TH -IC:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\include" -IC:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\include -IC:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.7.2\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" -c C:\Users\daniel.roth\StructureFlow\resample2d_package\resample2d_cuda.cc /FoC:\Users\daniel.roth\StructureFlow\resample2d_package\build\temp.win-amd64-3.6\Release\resample2d_cuda.obj -std=c++13 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=resample2d_cuda -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++14 FAILED: C:/Users/daniel.roth/StructureFlow/resample2d_package/build/temp.win-amd64-3.6/Release/resample2d_cuda.obj cl /showIncludes /nologo /Ox /W3 /GL /DNDEBUG /MD /MD /wd4819 /EHsc -IC:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\torch\include -IC:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\torch\include\TH -IC:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\include" -IC:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\include -IC:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.7.2\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" -c C:\Users\daniel.roth\StructureFlow\resample2d_package\resample2d_cuda.cc /FoC:\Users\daniel.roth\StructureFlow\resample2d_package\build\temp.win-amd64-3.6\Release\resample2d_cuda.obj -std=c++13 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=resample2d_cuda -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++14 CreateProcess failed: The system cannot find the file specified. ninja: fatal: ReadFile: The handle is invalid.
Traceback (most recent call last): File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\torch\utils\cpp_extension.py", line 1400, in _run_ninja_build check=True) File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\subprocess.py", line 438, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "setup.py", line 28, in
'build_ext': BuildExtension
File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\setuptools__init__.py", line 144, in setup
return distutils.core.setup(**attrs)
File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\setuptools\command\install.py", line 67, in run
self.do_egg_install()
File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\setuptools\command\install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\setuptools\command\bdist_egg.py", line 173, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\setuptools\command\bdist_egg.py", line 159, in call_command
self.run_command(cmdname)
File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\setuptools\command\install_lib.py", line 11, in run
self.build()
File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\distutils\command\install_lib.py", line 107, in build
self.run_command('build_ext')
File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\setuptools\command\build_ext.py", line 87, in run
_build_ext.run(self)
File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\torch\utils\cpp_extension.py", line 580, in build_extensions
build_ext.build_extensions(self)
File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\distutils\command\build_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\distutils\command\build_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\setuptools\command\build_ext.py", line 208, in build_extension
_build_ext.build_extension(self, ext)
File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\distutils\command\build_ext.py", line 533, in build_extension
depends=ext.depends)
File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\torch\utils\cpp_extension.py", line 562, in win_wrap_ninja_compile
with_cuda=with_cuda)
File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\torch\utils\cpp_extension.py", line 1140, in _write_ninja_file_and_compile_objects
error_prefix='Error compiling objects for extension')
File "C:\Users\daniel.roth\AppData\Local\Continuum\Anaconda3\envs\structureFlow\lib\site-packages\torch\utils\cpp_extension.py", line 1413, in _run_ninja_build
raise RuntimeError(message)
RuntimeError: Error compiling objects for extension