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

ryzenai_1.2.0.msi installation fail #130

Closed
xeasonx opened this issue Nov 1, 2024 · 5 comments
Closed

ryzenai_1.2.0.msi installation fail #130

xeasonx opened this issue Nov 1, 2024 · 5 comments
Assignees

Comments

@xeasonx
Copy link

xeasonx commented Nov 1, 2024

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
Copy link

wybaby commented Nov 1, 2024

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
Copy link
Collaborator

cyndwith commented Nov 6, 2024

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.

@cyndwith cyndwith self-assigned this Nov 6, 2024
@wybaby
Copy link

wybaby commented Nov 6, 2024

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
Copy link
Author

xeasonx commented Nov 6, 2024

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
Copy link

wybaby commented Nov 6, 2024

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!

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

3 participants