Error installing on surface arm64 hardware
Opened this issue · 1 comments
I have installed what I think are the necessary visual studio installer packages for arm.
installed tools from visual studio installer:
{
"version": "1.0",
"components": [
"Microsoft.VisualStudio.Component.Roslyn.Compiler",
"Microsoft.Component.MSBuild",
"Microsoft.VisualStudio.Component.CoreBuildTools",
"Microsoft.VisualStudio.Workload.MSBuildTools",
"Microsoft.VisualStudio.Component.Windows11SDK.22621",
"Microsoft.VisualStudio.Component.VC.Tools.ARM64EC",
"Microsoft.VisualStudio.Component.VC.Tools.ARM64",
"Microsoft.VisualStudio.Component.VC.Tools.ARM",
"Microsoft.VisualStudio.Component.VC.ATL.ARM",
"Microsoft.VisualStudio.Component.VC.ATL.ARM64",
"Microsoft.VisualStudio.Component.VC.MFC.ARM",
"Microsoft.VisualStudio.Component.VC.MFC.ARM64"
],
"extensions": []
}
I am trying to install poetry using pipx, but am failing on the step to install msgpack, when trying to install that by itself, it cant seem to find cl.exe
but I have installed the build tools using visual studio installer? So not sure where I am going wrong.
logfile:
PIP STDOUT
----------
Collecting msgpack
Using cached msgpack-1.1.0.tar.gz (167 kB)
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 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: msgpack
Building wheel for msgpack (pyproject.toml): started
Building wheel for msgpack (pyproject.toml): finished with status 'error'
Failed to build msgpack
PIP STDERR
----------
error: subprocess-exited-with-error
× Building wheel for msgpack (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [13 lines of output]
running bdist_wheel
running build
running build_py
creating build\lib.win-arm64-cpython-311\msgpack
copying msgpack\exceptions.py -> build\lib.win-arm64-cpython-311\msgpack
copying msgpack\ext.py -> build\lib.win-arm64-cpython-311\msgpack
copying msgpack\fallback.py -> build\lib.win-arm64-cpython-311\msgpack
copying msgpack\__init__.py -> build\lib.win-arm64-cpython-311\msgpack
running build_ext
building 'msgpack._cmsgpack' extension
creating build\temp.win-arm64-cpython-311\Release\msgpack
cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -D__LITTLE_ENDIAN__=1 -I. -IC:\Users\oscar\pipx\venvs\msgpack\include -IC:\Users\oscar\scoop\apps\python311\current\include -IC:\Users\oscar\scoop\apps\python311\current\Include "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" /Tcmsgpack/_cmsgpack.c /Fobuild\temp.win-arm64-cpython-311\Release\msgpack/_cmsgpack.obj
error: command 'cl.exe' failed: None
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for msgpack
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (msgpack)
update: Fixed it by installing a lot more packages from the visual studio installer. the specific clang that the installer was looking for wasnt found, but now it was then?
Here are the packages I have running now and it worked.
{ "version": "1.0", "components": [ "Microsoft.VisualStudio.Component.Roslyn.Compiler", "Microsoft.Component.MSBuild", "Microsoft.VisualStudio.Component.CoreBuildTools", "Microsoft.VisualStudio.Workload.MSBuildTools", "Microsoft.VisualStudio.Component.Windows10SDK", "Microsoft.VisualStudio.Component.VC.CoreBuildTools", "Microsoft.VisualStudio.Component.VC.Tools.x86.x64", "Microsoft.VisualStudio.Component.VC.Redist.14.Latest", "Microsoft.VisualStudio.Component.Windows11SDK.22621", "Microsoft.VisualStudio.Component.VC.CMake.Project", "Microsoft.VisualStudio.Component.TestTools.BuildTools", "Microsoft.VisualStudio.Component.VC.ASAN", "Microsoft.VisualStudio.Component.TextTemplating", "Microsoft.VisualStudio.Component.VC.CoreIde", "Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core", "Microsoft.VisualStudio.Workload.VCTools", "Microsoft.VisualStudio.Component.VC.Tools.ARM64EC", "Microsoft.VisualStudio.Component.VC.Tools.ARM64", "Microsoft.VisualStudio.Component.VC.Tools.ARM", "Microsoft.VisualStudio.Component.VC.14.29.16.11.ARM64", "Microsoft.VisualStudio.Component.VC.v141.ARM", "Microsoft.VisualStudio.Component.VC.v141.ARM64", "Microsoft.VisualStudio.Component.VC.ATL.ARM", "Microsoft.VisualStudio.Component.VC.ATL.ARM64", "Microsoft.VisualStudio.Component.VC.MFC.ARM", "Microsoft.VisualStudio.Component.VC.MFC.ARM64", "Microsoft.VisualStudio.Component.VC.v141.ATL.ARM", "Microsoft.VisualStudio.Component.VC.v141.ATL.ARM64", "Microsoft.VisualStudio.Component.VC.14.29.16.11.ARM" ], "extensions": [] }
I basically just installed a bunch more optional arm packages that seemed they would be helpful...