-
Notifications
You must be signed in to change notification settings - Fork 27
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
Failed to install natten on Python 3.9(Windows) #127
Comments
Could you check if you have cmake installed via pip, and if so, uninstall it?
It looks like cmake isn't finding the ninja build system. |
The same error occurs in Linux! Any updates other than uninstalling cmake? |
@justin4ai Could you please share the full error? |
@alihassanijr Thank you for helping me out! the full error is crazily long.. so I only attach some of it - still it is very long. BlockSizeI_, kBlockSizeJ_, kMaxK_, kAllowDeltaCompute>::OutputFragments &, natten::cuda::fna::FusedNeighborhoodAttentionBackwardKernel<NADim_, CausalMask, scalar_t_, ArchTag_, kIsAligned_, kBlockSizeI_, kBlockSizeJ_, kMaxK_, kAllowDeltaCompute>::Params &, natten::cuda::fna::FusedNeighborhoodAttentionBackwardKernel<NADim_, CausalMask, scalar_t_, ArchTag_, kIsAligned_, kBlockSizeI_, kBlockSizeJ_, kMaxK_, kAllowDeltaCompute>::Dim, natten::cuda::fna::FusedNeighborhoodAttentionBackwardKernel<NADim_, CausalMask, scalar_t_, ArchTag_, kIsAligned_, kBlockSizeI_, kBlockSizeJ_, kMaxK_, kAllowDeltaCompute>::Dim, nv_bool, nv_bool, uint8_t, uint8_t) [with NADim=3, CausalMask=natten::cuda::fna::CausalMask<false, false, false>, scalar_t=cutlass::bfloat16_t, ArchTag=cutlass::arch::Sm80, kIsAligned=true, kBlockSizeI_=128, kBlockSizeJ_=64, kMaxK_=65536, kAllowDeltaCompute=false]"
note: This error originates from a subprocess, and is likely not a problem with pip. .. |
Closing due to inactivity. Feel free to reopen if you still have questions. |
Windows 10
my torch vision==2.2.2
cuda vison==11.5
while i am trying to install natten with code:pip install natten, it is keeping said:
Building wheel for natten (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [94 lines of output]
Building NATTEN with CUDA 118
Building NATTEN for SM: 7.5
Number of workers: 4
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-39
creating build\lib.win-amd64-cpython-39\natten
copying src\natten\context.py -> build\lib.win-amd64-cpython-39\natten
copying src\natten\flops.py -> build\lib.win-amd64-cpython-39\natten
copying src\natten\functional.py -> build\lib.win-amd64-cpython-39\natten
copying src\natten\na1d.py -> build\lib.win-amd64-cpython-39\natten
copying src\natten\na2d.py -> build\lib.win-amd64-cpython-39\natten
copying src\natten\na3d.py -> build\lib.win-amd64-cpython-39\natten
copying src\natten\natten1d.py -> build\lib.win-amd64-cpython-39\natten
copying src\natten\natten2d.py -> build\lib.win-amd64-cpython-39\natten
copying src\natten\natten3d.py -> build\lib.win-amd64-cpython-39\natten
copying src\natten\nested.py -> build\lib.win-amd64-cpython-39\natten
copying src\natten\ops.py -> build\lib.win-amd64-cpython-39\natten
copying src\natten\types.py -> build\lib.win-amd64-cpython-39\natten
copying src\natten_init_.py -> build\lib.win-amd64-cpython-39\natten
creating build\lib.win-amd64-cpython-39\natten\utils
copying src\natten/utils\checks.py -> build\lib.win-amd64-cpython-39\natten/utils
copying src\natten/utils\log.py -> build\lib.win-amd64-cpython-39\natten/utils
copying src\natten/utils\misc.py -> build\lib.win-amd64-cpython-39\natten/utils
copying src\natten/utils\tensor.py -> build\lib.win-amd64-cpython-39\natten/utils
copying src\natten/utils\testing.py -> build\lib.win-amd64-cpython-39\natten/utils
copying src\natten/utils_init_.py -> build\lib.win-amd64-cpython-39\natten/utils
creating build\lib.win-amd64-cpython-39\natten\autotuner
copying src\natten/autotuner\fna_backward.py -> build\lib.win-amd64-cpython-39\natten/autotuner
copying src\natten/autotuner\fna_forward.py -> build\lib.win-amd64-cpython-39\natten/autotuner
copying src\natten/autotuner\misc.py -> build\lib.win-amd64-cpython-39\natten/autotuner
copying src\natten/autotuner_init_.py -> build\lib.win-amd64-cpython-39\natten/autotuner
creating build\lib.win-amd64-cpython-39\natten\autotuner\configs
copying src\natten/autotuner/configs\fna_backward_128x128.py -> build\lib.win-amd64-cpython-39\natten/autotuner/configs
copying src\natten/autotuner/configs\fna_backward_128x64.py -> build\lib.win-amd64-cpython-39\natten/autotuner/configs
copying src\natten/autotuner/configs\fna_backward_64x64.py -> build\lib.win-amd64-cpython-39\natten/autotuner/configs
copying src\natten/autotuner/configs\fna_forward_32x128.py -> build\lib.win-amd64-cpython-39\natten/autotuner/configs
copying src\natten/autotuner/configs\fna_forward_64x128.py -> build\lib.win-amd64-cpython-39\natten/autotuner/configs
copying src\natten/autotuner/configs\fna_forward_64x64.py -> build\lib.win-amd64-cpython-39\natten/autotuner/configs
copying src\natten/autotuner/configs_init_.py -> build\lib.win-amd64-cpython-39\natten/autotuner/configs
running build_ext
Current arch list: [75] (max: 75)
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CUDA_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\manye\AppData\Local\Temp\pip-install-idhyanei\natten_1b47b9d9376a4b0eb96a12681a16f8ba\setup.py", line 243, in
setup(
File "C:\Users\manye.conda\envs\swinfuse\lib\site-packages\setuptools_init_.py", line 107, in setup
return distutils.core.setup(**attrs)
File "C:\Users\manye.conda\envs\swinfuse\lib\site-packages\setuptools_distutils\core.py", line 185, in setup
return run_commands(dist)
File "C:\Users\manye.conda\envs\swinfuse\lib\site-packages\setuptools_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "C:\Users\manye.conda\envs\swinfuse\lib\site-packages\setuptools_distutils\dist.py", line 969, in run_commands
self.run_command(cmd)
File "C:\Users\manye.conda\envs\swinfuse\lib\site-packages\setuptools\dist.py", line 1234, in run_command
super().run_command(command)
File "C:\Users\manye.conda\envs\swinfuse\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\manye.conda\envs\swinfuse\lib\site-packages\wheel\bdist_wheel.py", line 364, in run
self.run_command("build")
File "C:\Users\manye.conda\envs\swinfuse\lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\manye.conda\envs\swinfuse\lib\site-packages\setuptools\dist.py", line 1234, in run_command
super().run_command(command)
File "C:\Users\manye.conda\envs\swinfuse\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\manye.conda\envs\swinfuse\lib\site-packages\setuptools_distutils\command\build.py", line 131, in run
self.run_command(cmd_name)
File "C:\Users\manye.conda\envs\swinfuse\lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\manye.conda\envs\swinfuse\lib\site-packages\setuptools\dist.py", line 1234, in run_command
super().run_command(command)
File "C:\Users\manye.conda\envs\swinfuse\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\manye.conda\envs\swinfuse\lib\site-packages\setuptools\command\build_ext.py", line 84, in run
_build_ext.run(self)
File "C:\Users\manye.conda\envs\swinfuse\lib\site-packages\setuptools_distutils\command\build_ext.py", line 345, in run
self.build_extensions()
File "C:\Users\manye.conda\envs\swinfuse\lib\site-packages\setuptools_distutils\command\build_ext.py", line 467, in build_extensions
self._build_extensions_serial()
File "C:\Users\manye.conda\envs\swinfuse\lib\site-packages\setuptools_distutils\command\build_ext.py", line 493, in _build_extensions_serial
self.build_extension(ext)
File "C:\Users\manye\AppData\Local\Temp\pip-install-idhyanei\natten_1b47b9d9376a4b0eb96a12681a16f8ba\setup.py", line 219, in build_extension
subprocess.check_call(
File "C:\Users\manye.conda\envs\swinfuse\lib\subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\Users\manye\AppData\Local\Temp\pip-install-idhyanei\natten_1b47b9d9376a4b0eb96a12681a16f8ba\csrc', '-DPYTHON_PATH=C:\Users\manye\.conda\envs\swinfuse\python.exe', '-DOUTPUT_FILE_NAME=natten\libnatten.cp39-win_amd64', '-DNATTEN_CUDA_ARCH_LIST=75-real', '-DNATTEN_IS_WINDOWS=1', '-DNATTEN_IS_MAC=0', '-DIS_LIBTORCH_BUILT_WITH_CXX11_ABI=0', '-DNATTEN_WITH_AVX=1', '-DNATTEN_WITH_CUDA=1', '-DNATTEN_WITH_CUTLASS=1', '-DPY_LIB_DIR=C:\Users\manye\.conda\envs\swinfuse\libs', '-G Ninja', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for natten
Running setup.py clean for natten
Failed to build natten
ERROR: Could not build wheels for natten, which is required to install pyproject.toml-based projects
how can i solve this? please help me
The text was updated successfully, but these errors were encountered: