SHI-Labs / NATTEN

Neighborhood Attention Extension. Bringing attention to a neighborhood near you!
https://shi-labs.com/natten/
Other
363 stars 29 forks source link

Unable to install on windows #171

Open zachysaur opened 1 month ago

zachysaur commented 1 month ago

is there a way to install this on windows?

alihassanijr commented 1 month ago

You can build NATTEN from source on Windows with MSVC; just refer to our docs.

If you're using WSL, you can both build from source and install via pip wheels; just refer to our website.

zachysaur commented 1 month ago

it dont work

alihassanijr commented 1 month ago

There's nothing I can do with that level of detail. Please attach logs and any other useful information you might have so I can help you.

zachysaur commented 1 month ago

``746f69d0bd96e8085c4a5\setup.py", line 219, in build_extension subprocess.check_call( File "C:\Program Files\Python311\Lib\subprocess.py", line 413, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', 'C:\Users\adrianb\AppData\Local\Temp\pip-install-g7udw0x\nattll-g7udw0x_\natten_4a7e0e8d2a7746f69d0bd96e8085c4a5\csrc', '-DPYTHON_PATH=C:\Users\adrian_b\Desktop\gendesign-main\venverative-interior-design-main\venv\Scripts\python.exe', '-DOUTPUT_FILE_NAME=natten\libnatten.cp311-win_amd-DNATTEN_IS_WINDO64', '-DNATTEN_CUDA_ARCH_LIST=', '-DNATTEN_IS_WINDOWS=1', '-DNATTEN_IS_MAC=0', '-DIS_LIBTORCH_BUILT_WITH_CXX1Users\adrian_b\1_ABI=0', '-DNATTEN_WITH_AVX=1', '-DPY_LIB_DIR=C:\Users\adrian_b\Desktop\generative-interior-design-main\turned non-zero e\venv\Scripts\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: ERROR: Failed to build installable wheels for some pyproject.toml based projects (natten)``

jiangke1214 commented 4 weeks ago

有没有办法在 Windows 上安装它?

Have you solved it yet?

alihassanijr commented 4 weeks ago

@zachysaur that's still only the last few lines of the error. Please capture and upload the full log as a text file.

icyriverwolf commented 4 weeks ago

wish a windows edition

alihassanijr commented 4 weeks ago

@icyriverwolf @jiangke1214 Last time I had access to a Windows machine with CUDA I fixed all the build errors and confirmed NATTEN builds on Windows.

I don't really have an easy way to try it again, so any complete logs will be very helpful in identifying and resolving the issue.

Yucc-star commented 3 weeks ago

Hi, Ali. I'm sorry that I don't have a lot of knowledge, but I also encountered the problem that I can't install NATTEN on windows, if you have time, can you please Point out the problems I have?

Traceback (most recent call last): File "setup.py", line 243, in setup( File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools__init__.py", line 117, in setup return distutils.core.setup(**attrs) File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\core.py", line 183, in setup return run_commands(dist) File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\core.py", line 199, in run_commands dist.run_commands() File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\dist.py", line 954, in run_commands self.run_command(cmd) File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools\dist.py", line 950, in run_command super().run_command(command) File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\dist.py", line 973, in run_command cmd_obj.run() File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools\command\install.py", line 97, in run self.do_egg_install() File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools\command\install.py", line 149, in do_egg_install self.run_command('bdist_egg') File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\cmd.py", line 316, in run_command self.distribution.run_command(command) File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools\dist.py", line 950, in run_command super().run_command(command) File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\dist.py", line 973, in run_command cmd_obj.run() File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools\command\bdist_egg.py", line 168, in run cmd = self.call_command('install_lib', warn_dir=False) File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools\command\bdist_egg.py", line 154, in call_command self.run_command(cmdname) File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\cmd.py", line 316, in run_command self.distribution.run_command(command) File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools\dist.py", line 950, in run_command super().run_command(command) File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\dist.py", line 973, in run_command cmd_obj.run() File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools\command\install_lib.py", line 19, in run self.build() File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\command\install_lib.py", line 110, in build self.run_command('build_ext') File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\cmd.py", line 316, in run_command self.distribution.run_command(command) File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools\dist.py", line 950, in run_command super().run_command(command) File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\dist.py", line 973, in run_command cmd_obj.run() File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools\command\build_ext.py", line 98, in run _build_ext.run(self) File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\command\build_ext.py", line 359, in run self.build_extensions() File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\command\build_ext.py", line 476, in build_extensions self._build_extensions_serial() File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\command\build_ext.py", line 502, in _build_extensions_serial self.build_extension(ext) File "setup.py", line 219, in build_extension subprocess.check_call( File "D:\Anaconda\envs\OneFormer\lib\subprocess.py", line 364, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', 'D:\NATTEN-main\NATTEN-main\csrc', '-DPYTHON_PATH=D:\Anaconda\envs\OneFormer\python.exe', '-DOUTPUT_FILE_NAME=natten\libnatten.cp38-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=D:\Anaconda\envs\OneFormer\libs', '-G Ninja', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.

alihassanijr commented 3 weeks ago

@Yucc-star unfortunately your log similar to the previous one in this thread is not complete. It's maybe 10% of the full log, and it's only revealing that building failed, and nothing more. I would need the full log to be able to help.

I recommend piping the output from WindowsBuilder.bat install into a file, and sharing that file (please refrain from pasting the entire log here as it can be in the order of thousands of lines).

zachysaur commented 3 weeks ago

everyone having same issue

alihassanijr commented 3 weeks ago

@zachysaur I understand, but without logs, I can't even guess what the issue is, and given that I don't have a windows machine with cuda, there's little I can do to help resolve the issue if I'm not even able to reproduce it.

alihassanijr commented 1 day ago

Marking inactive. If someone experiencing this issue can share the full log file here, I can try and look into it further. Otherwise we'll close.