nvdiffrec icon indicating copy to clipboard operation
nvdiffrec copied to clipboard

i found that the version of VS2019 may have to be lower than 16.11

Open cx-zzz opened this issue 2 years ago • 13 comments

i tried to install nvdiffrec on my computer and failed when the version of VS was 16.11, and it worked when i reinstall VS2019 16.9.4 the fail was like "ninja -v "and" missing a '(' "

cx-zzz avatar May 31 '22 15:05 cx-zzz

Thank you very much for pointing it out. Thanks to you I could at least make it work

Wasp3r avatar Jun 01 '22 10:06 Wasp3r

Just tried with 16.9.4 as suggested, same error "Underlying buffer has been detached". I made sure to use the developer command prompt for this revision and also removed vs 16.11.x.

EDIT: Actually, 16.9.4 seems to work, but I had to set env variable set DISTUTILS_USE_SDK=1

You can see a message about it in the stack trace. I had set this using other VS versions and it never worked, but now using 16.9.4 and setting that env variable, it built

jnm26 avatar Jun 02 '22 01:06 jnm26

If you change the _run_ninja_build in cpp_extension.py (in your_env/Lib/site-packages/torch/utils), just change it back, it may work. The code need to be: command = ['ninja', '-v'] if this does not work , you may ask this question in tinycuda page .

cx-zzz avatar Jun 02 '22 06:06 cx-zzz

This unblocked me as well - thank you.

huvers avatar Jun 22 '22 14:06 huvers

i tried to install nvdiffrec on my computer and failed when the version of VS was 16.11, and it worked when i reinstall VS2019 16.9.4 the fail was like "ninja -v "and" missing a '(' "

how to download 16.9.4?thank you very much.

zhangzhenfengjy avatar Jun 27 '22 08:06 zhangzhenfengjy

https://docs.microsoft.com/en-us/visualstudio/releases/2019/history#release-dates-and-build-numbers

cx-zzz avatar Jun 27 '22 08:06 cx-zzz

https://docs.microsoft.com/en-us/visualstudio/releases/2019/history#release-dates-and-build-numbers

Thank you very much for your help, and I would like to ask what happened to the OPenSSL error when pulling from git? Can you give me some help?

zhangzhenfengjy avatar Jun 28 '22 12:06 zhangzhenfengjy

我尝试在我的计算机上安装 nvdiffrec 并且在 VS 版本为 16.11 时失败,当我重新安装 VS2019 16.9.4 时它工作 失败就像“ninja -v”和“缺少一个 '('”

How did you solve this problem? Thank you very much for your help, I can offer you some compensation.

zhangzhenfengjy avatar Jun 28 '22 12:06 zhangzhenfengjy

看id是拼音就用中文了,这个错是我用16.11的时候报的,我换成16.9之后就很顺利安装好了

cx-zzz avatar Jun 28 '22 13:06 cx-zzz

感谢大哥的回复,我可以加您好友吗?如果您有时间的话向向您详细问一下?因为我现在很需要这个工程。

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年6月28日(星期二) 晚上9:46 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [NVlabs/nvdiffrec] i found that the version of VS2019 may have to be lower than 16.11 (Issue #40)

看id是拼音就用中文了,这个错是我用16.11的时候报的,我换成16.9之后就很顺利安装好了

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

zhangzhenfengjy avatar Jun 28 '22 13:06 zhangzhenfengjy

感谢大哥的回复,我可以加您好友吗?如果您有时间的话向向您详细问一下?因为我现在很需要这个工程。 ------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年6月28日(星期二) 晚上9:46 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [NVlabs/nvdiffrec] i found that the version of VS2019 may have to be lower than 16.11 (Issue #40) 看id是拼音就用中文了,这个错是我用16.11的时候报的,我换成16.9之后就很顺利安装好了 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

行,你把wx或者qq发我邮箱吧 [email protected]

cx-zzz avatar Jun 28 '22 13:06 cx-zzz

You need to install the latest CUDA version (11.7) + add the correct environment variables, that solved the problem for me.

Check this out, scroll down until you find the part with 11.7 instructions:

https://github.com/NVlabs/tiny-cuda-nn/issues/110

Firesampo avatar Jul 27 '22 15:07 Firesampo

I had problems and did the tips posted here (install cuda 11.7, vstudio 167.9.4) but even doing that id didnt work. I found that I was running the wrong developer command from visual studio. If you still have problems try pasting this command on your prompt and try again

"c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64

carlosedubarreto avatar Oct 08 '22 17:10 carlosedubarreto