Skip to content
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

bash scripts/install_ext.sh in Windows #13

Open
pegahs1993 opened this issue Jan 13, 2023 · 10 comments
Open

bash scripts/install_ext.sh in Windows #13

pegahs1993 opened this issue Jan 13, 2023 · 10 comments

Comments

@pegahs1993
Copy link

Hi @ashawkey
Is it possible to install these libraries on Windows?

pip install ./freqencoder
pip install ./shencoder
pip install ./gridencoder
pip install ./raymarching

Thanks in advance for your help!

@pegahs1993
Copy link
Author

@williamgladeye
Copy link

The problem has been solved!

https://github.com/NVlabs/nvdiffrec/issues/35#issuecomment-1147749506

sorry how was this resolved? link seems dead

@pegahs1993
Copy link
Author

The problem has been solved!
https://github.com/NVlabs/nvdiffrec/issues/35#issuecomment-1147749506

sorry how was this resolved? link seems dead

NVlabs/nvdiffrec#35 (comment)
I think this link works!

@ataraxyz
Copy link

Does anyone have this repo running on Windows? I am running all sorts of issues with requirements etc. The link above helped install NVLabs but not this repo entirely.

Would love to get it going, anyone had success?

@waityousea
Copy link

waityousea commented Mar 16, 2023

bash scripts/install_ext.sh在unbuntu中执行这个命令,所有安装都失败了,请问怎么解决?

@pegahs1993
Copy link
Author

According to the link, I was able to install them. Adding the path C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64 to the environment is all that is needed

@huangxin168
Copy link

bash scripts/install_ext.sh在unbuntu中执行这个命令,所有安装都失败了,请问怎么解决?

same

@waityousea
Copy link

问题:/usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:
530 | operator=(_Functor&& __f)
| ^
/usr/include/c++/11/bits/std_function.h:530:146: note: ‘_ArgTypes’

答案:解决问题的网址 NVIDIA/nccl#650
这无济于事,至少在 Debian 中没有。
但是,有帮助的是 /usr/include/c++/*/bits/std_function.h 中进行以下两个更改:

433+行(近似值):

template<typename _Functor,
typename _Constraints = _Requires<_Callable<_Functor>>>
function(_Functor&& __f)
//noexcept(_Handler<_Functor>::template _S_nothrow_init<_Functor>()) // CUDA BOTCHES THIS
: _Function_base()
529+行(近似值):

template
_Requires<_Callable<_Functor>, function&>
operator=(_Functor&& __f)
//noexcept(_Handler<_Functor>::template _S_nothrow_init<_Functor>()) // CUDA BOTCHES THIS
{
function(std::forward<_Functor>(__f)).swap(*this);
return *this;
}
注释掉指示的部分可以解决编译问题。出于某种原因,当该部分存在时,NVCC会搞砸编译。它预处理C++代码,并以无法编译的方式错误地更改模板签名。

So How to Define THRUST_IGNORE_CUB_VERSION_CHECK? or how to resolve the issue?
I tried change setup.py
define_macros += [("THRUST_IGNORE_CUB_VERSION_CHECK", True)]
or
define_macros += [("THRUST_IGNORE_CUB_VERSION_CHECK", 1)]

@Muhammad0073121
Copy link

I'm facing the same issue while running the .sh script
Can someone help me :

Subzero@MSI MINGW64 /c/Audio2face/RAD-NeRF (main)
$ bash scripts/install_ext.sh
Processing c:\audio2face\rad-nerf\freqencoder
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error

Getting requirements to build wheel did not run successfully.
exit code: 1

[17 lines of output]
Traceback (most recent call last):
File "c:\users\subzero\appdata\local\programs\python\python38\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "c:\users\subzero\appdata\local\programs\python\python38\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "c:\users\subzero\appdata\local\programs\python\python38\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\Subzero\AppData\Local\Temp\pip-build-env-mj2uo_qf\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "C:\Users\Subzero\AppData\Local\Temp\pip-build-env-mj2uo_qf\overlay\Lib\site-packages\setuptools\build_meta.py", line 323, in _get_build_requires
self.run_setup()
File "C:\Users\Subzero\AppData\Local\Temp\pip-build-env-mj2uo_qf\overlay\Lib\site-packages\setuptools\build_meta.py", line 487, in run_setup
super(_BuildMetaLegacyBackend,
File "C:\Users\Subzero\AppData\Local\Temp\pip-build-env-mj2uo_qf\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in run_setup
exec(code, locals())
File "", line 3, in
ModuleNotFoundError: No module named 'torch'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

Getting requirements to build wheel did not run successfully.
exit code: 1

See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Processing c:\audio2face\rad-nerf\shencoder
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error

Getting requirements to build wheel did not run successfully.
exit code: 1

[17 lines of output]
Traceback (most recent call last):
File "c:\users\subzero\appdata\local\programs\python\python38\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "c:\users\subzero\appdata\local\programs\python\python38\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "c:\users\subzero\appdata\local\programs\python\python38\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\Subzero\AppData\Local\Temp\pip-build-env-nsbti2pu\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "C:\Users\Subzero\AppData\Local\Temp\pip-build-env-nsbti2pu\overlay\Lib\site-packages\setuptools\build_meta.py", line 323, in _get_build_requires
self.run_setup()
File "C:\Users\Subzero\AppData\Local\Temp\pip-build-env-nsbti2pu\overlay\Lib\site-packages\setuptools\build_meta.py", line 487, in run_setup
super(_BuildMetaLegacyBackend,
File "C:\Users\Subzero\AppData\Local\Temp\pip-build-env-nsbti2pu\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in run_setup
exec(code, locals())
File "", line 3, in
ModuleNotFoundError: No module named 'torch'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

Getting requirements to build wheel did not run successfully.
exit code: 1

See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Processing c:\audio2face\rad-nerf\gridencoder
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error

Getting requirements to build wheel did not run successfully.
exit code: 1

[17 lines of output]
Traceback (most recent call last):
File "c:\users\subzero\appdata\local\programs\python\python38\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "c:\users\subzero\appdata\local\programs\python\python38\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "c:\users\subzero\appdata\local\programs\python\python38\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\Subzero\AppData\Local\Temp\pip-build-env-8o8e1ia3\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "C:\Users\Subzero\AppData\Local\Temp\pip-build-env-8o8e1ia3\overlay\Lib\site-packages\setuptools\build_meta.py", line 323, in _get_build_requires
self.run_setup()
File "C:\Users\Subzero\AppData\Local\Temp\pip-build-env-8o8e1ia3\overlay\Lib\site-packages\setuptools\build_meta.py", line 487, in run_setup
super(_BuildMetaLegacyBackend,
File "C:\Users\Subzero\AppData\Local\Temp\pip-build-env-8o8e1ia3\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in run_setup
exec(code, locals())
File "", line 3, in
ModuleNotFoundError: No module named 'torch'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

Getting requirements to build wheel did not run successfully.
exit code: 1

See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Processing c:\audio2face\rad-nerf\raymarching
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error

Getting requirements to build wheel did not run successfully.
exit code: 1

[17 lines of output]
Traceback (most recent call last):
File "c:\users\subzero\appdata\local\programs\python\python38\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "c:\users\subzero\appdata\local\programs\python\python38\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "c:\users\subzero\appdata\local\programs\python\python38\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\Subzero\AppData\Local\Temp\pip-build-env-rxj6rvm2\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "C:\Users\Subzero\AppData\Local\Temp\pip-build-env-rxj6rvm2\overlay\Lib\site-packages\setuptools\build_meta.py", line 323, in _get_build_requires
self.run_setup()
File "C:\Users\Subzero\AppData\Local\Temp\pip-build-env-rxj6rvm2\overlay\Lib\site-packages\setuptools\build_meta.py", line 487, in run_setup
super(_BuildMetaLegacyBackend,
File "C:\Users\Subzero\AppData\Local\Temp\pip-build-env-rxj6rvm2\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in run_setup
exec(code, locals())
File "", line 3, in
ModuleNotFoundError: No module named 'torch'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

Getting requirements to build wheel did not run successfully.
exit code: 1

See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

@troyhuqihang
Copy link

@Muhammad0073121 I got the same problem. How do you solve this issue? Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants