amd / RyzenAI-SW

MIT License
403 stars 65 forks source link

ryzenai_1.2.0.msi installation fail #130

Closed xeasonx closed 1 day ago

xeasonx commented 3 weeks ago

Processor: AMD Ryzen AI 9 365 w/ Radeon 880M System: Windows 11 Version24H2 (OS Build 26100.2033) Installer: ryzen-ai-1.2.0-20240726.msi

During the install process, a CMD window prompt. image After a while, the CMD window closed, and show and error. image The installation failed. The error log shows this:

D:\softwares\miniconda3\Lib\argparse.py:2006: FutureWarning: `remote_definition` is deprecated and will be removed in 25.9. Use `conda env create --file=URL` instead.
  action(self, namespace, argument_values, option_string)
Pip subprocess error:
'chcp' \ufffd\ufffd\ufffd\ufffd\ufffd\u06b2\ufffd\ufffd\ufffd\ufffd\u2cbf\ufffd\ufffd\ufffd\ue8ec\u04b2\ufffd\ufffd\ufffd\u01ff\ufffd\ufffd\ufffd\ufffdе\u0133\ufffd\ufffd\ufffd
\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u013c\ufffd\ufffd\ufffd
'chcp' \ufffd\ufffd\ufffd\ufffd\ufffd\u06b2\ufffd\ufffd\ufffd\ufffd\u2cbf\ufffd\ufffd\ufffd\ue8ec\u04b2\ufffd\ufffd\ufffd\u01ff\ufffd\ufffd\ufffd\ufffdе\u0133\ufffd\ufffd\ufffd
\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u013c\ufffd\ufffd\ufffd
'chcp' \ufffd\ufffd\ufffd\ufffd\ufffd\u06b2\ufffd\ufffd\ufffd\ufffd\u2cbf\ufffd\ufffd\ufffd\ue8ec\u04b2\ufffd\ufffd\ufffd\u01ff\ufffd\ufffd\ufffd\ufffdе\u0133\ufffd\ufffd\ufffd
\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u013c\ufffd\ufffd\ufffd

CondaEnvException: Pip failed
wybaby commented 3 weeks ago

Same issue. A error occured when the setup wizard tried to create ryzen environment and the log file "C:\Temp\ryzenai_1.2.0_error_log.txt" showed the following content:

D:\anaconda3\Lib\argparse.py:2006: FutureWarning: `remote_definition` is deprecated and will be removed in 25.9. Use `conda env create --file=URL` instead.
  action(self, namespace, argument_values, option_string)

EnvironmentFileNotFound: 'C:\Windows\Installer\SFXCAD4CC70A2004F90AA458B478F69FFC0DE\env.yaml' file not found

System Enviroment:

Ryzen 9 PRO 7940HS
NPU Drivers is installed successfully
Windows 11 24H2 26100.2161 
Visual Studio 2022 
cmake v3.31.0-rc2
Anaconda 24.9.2

System PATH

PS C:\Users\<username>> [System.Environment]::GetEnvironmentVariable("Path","Machine")
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;D:\Program Files\CMake\bin;D:\anaconda3;D:\anaconda3\Scripts;D:\anaconda3\Library\bin;D:\anaconda3\Library\mingw-w64\bin;D:\anaconda3\Library\usr\bin;
cyndwith commented 2 weeks ago

Make sure to use the MSI installer to uninstall the existing installation of RyzenAI-SW. Remove the existing conda environment manually using "conda remove --name ryzen-ai-1.2.0 --all --yes".

Let us know if this resolves the issue.

wybaby commented 2 weeks ago

Make sure to use the MSI installer to uninstall the existing installation of RyzenAI-SW. Remove the existing conda environment manually using "conda remove --name ryzen-ai-1.2.0 --all --yes".

Let us know if this resolves the issue.

Thanks for your replay, unfortunately it does not work.

xeasonx commented 2 weeks ago

I think the problem maybe that the installer can't execute msbuild tool, because it is not in system PATH environment. I solve the issue by doing these.

  1. After install Visual Studio 2022, add msbuild tool to SYSTEM PATH, for example: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\Hostx64\x64.
  2. Also make sure that C:\Windows\System32 and C:\Windows\SysWOW64 is in SYSTEM PATH too.
  3. Remove conda environment created by the installer previous, conda remove --name ryzen-ai-1.2.0 --all --yes.
  4. Open a terminal with administration privilege, execute ryzen-ai-1.2.0-20240726.msi. DO NOT change the default installation path, I encountered the same env.yml not found problem when I tried to install it on other path.
  5. In step 3, if you still got env.yml not found error, go to step 3 and install again, it is just another tricky point. After that, I ran the quicktest.py and test pass. image
wybaby commented 2 weeks ago

I think the problem maybe that the installer can't execute msbuild tool, because it is not in system PATH environment. I solve the issue by doing these.

  1. After install Visual Studio 2022, add msbuild tool to SYSTEM PATH, for example: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\Hostx64\x64.
  2. Also make sure that C:\Windows\System32 and C:\Windows\SysWOW64 is in SYSTEM PATH too.
  3. Remove conda environment created by the installer previous, conda remove --name ryzen-ai-1.2.0 --all --yes.
  4. Open a terminal with administration privilege, execute ryzen-ai-1.2.0-20240726.msi. DO NOT change the default installation path, I encountered the same env.yml not found problem when I tried to install it on other path.
  5. In step 3, if you still got env.yml not found error, go to step 3 and install again, it is just another tricky point. After that, I ran the quicktest.py and test pass. image

It works! Thanks a lot!