poetry icon indicating copy to clipboard operation
poetry copied to clipboard

Unable to install poetry on arm processor

Open rejamer opened this issue 10 months ago • 1 comments

Description

I have a new MS Surface tablet with the Snapdragon arm processor (I assume this is the issue as this is the only difference between this tablet and another). I am running windows 11 with python 3.13.3 and all other installations and python scripts seem to work (docker desktop required certain mods to run under the arm chip).

Has anyone been able to install poetry on an ARM chip? On a Snapdragon chip? I am runningpython distribution for arm. ..

When I run the installation script either using (powershell) Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing -OutFile install-poetry.py or by downloading and running the install script locally, I get the same result.

(I tried pipx as well with exact same result as above...)

The installation starts and gets pat the "Creating Environment" section but does not clear the next section: "Installing Poetry". The only info on the terminal is that "an error occurred". When I look at the log file, the first error I see is that:

ollecting zstandard>=0.21.0 (from pbs-installer[download,install]<2026.0.0,>=2025.1.6->poetry==2.1.3)

... Using cached zstandard-0.23.0.tar.gz (681 kB)

Installing build dependencies: started

Installing build dependencies: finished with status 'error'

error: subprocess-exited-with-error

pip subprocess to install build dependencies did not run successfully.

exit code: 1

[60 lines of output]

Ignoring cffi: markers 'python_version <= "3.12"' don't match your environment

Collecting cffi==1.17.0rc1

Using cached cffi-1.17.0rc1.tar.gz (516 kB)

Installing build dependencies: started

...

Can provde additional log info as requested.

Workarounds

None

Poetry Installation Method

install.python-poetry.org

Operating System

Windows 11

Poetry Version

latest but never get it isntalled

Poetry Configuration

never get this far

Python Sysconfig

sysconfig.log
Platform: "win-arm64"
Python version: "3.13"
Current installation scheme: "nt"

Paths: 
	data = "C:\Users\rejam\AppData\Local\Programs\Python\Python313-arm64"
	include = "C:\Users\rejam\AppData\Local\Programs\Python\Python313-arm64\Include"
	platinclude = "C:\Users\rejam\AppData\Local\Programs\Python\Python313-arm64\Include"
	platlib = "C:\Users\rejam\AppData\Local\Programs\Python\Python313-arm64\Lib\site-packages"
	platstdlib = "C:\Users\rejam\AppData\Local\Programs\Python\Python313-arm64\Lib"
	purelib = "C:\Users\rejam\AppData\Local\Programs\Python\Python313-arm64\Lib\site-packages"
	scripts = "C:\Users\rejam\AppData\Local\Programs\Python\Python313-arm64\Scripts"
	stdlib = "C:\Users\rejam\AppData\Local\Programs\Python\Python313-arm64\Lib"

Variables: 
	BINDIR = "C:\Users\rejam\AppData\Local\Programs\Python\Python313-arm64"
	BINLIBDEST = "C:\Users\rejam\AppData\Local\Programs\Python\Python313-arm64\Lib"
	EXE = ".exe"
	EXT_SUFFIX = ".cp313-win_arm64.pyd"
	INCLUDEPY = "C:\Users\rejam\AppData\Local\Programs\Python\Python313-arm64\Include"
	LDLIBRARY = "python313.dll"
	LIBDEST = "C:\Users\rejam\AppData\Local\Programs\Python\Python313-arm64\Lib"
	LIBDIR = "C:\Users\rejam\AppData\Local\Programs\Python\Python313-arm64\libs"
	LIBRARY = "python313.dll"
	Py_GIL_DISABLED = "0"
	SOABI = "cp313-win_arm64"
	TZPATH = ""
	VERSION = "313"
	VPATH = "..\.."
	abi_thread = ""
	abiflags = ""
	base = "C:\Users\rejam\AppData\Local\Programs\Python\Python313-arm64"
	exec_prefix = "C:\Users\rejam\AppData\Local\Programs\Python\Python313-arm64"
	implementation = "Python"
	implementation_lower = "python"
	installed_base = "C:\Users\rejam\AppData\Local\Programs\Python\Python313-arm64"
	installed_platbase = "C:\Users\rejam\AppData\Local\Programs\Python\Python313-arm64"
	platbase = "C:\Users\rejam\AppData\Local\Programs\Python\Python313-arm64"
	platlibdir = "DLLs"
	prefix = "C:\Users\rejam\AppData\Local\Programs\Python\Python313-arm64"
	projectbase = "C:\Users\rejam\AppData\Local\Programs\Python\Python313-arm64"
	py_version = "3.13.3"
	py_version_nodot = "313"
	py_version_nodot_plat = "313-arm64"
	py_version_short = "3.13"
	srcdir = "C:\Users\rejam\AppData\Local\Programs\Python\Python313-arm64"
	userbase = "C:\Users\rejam\AppData\Roaming\Python"

Example pyproject.toml


Poetry Runtime Logs

poetry-runtime.log
Collecting poetry==2.1.3

Using cached poetry-2.1.3-py3-none-any.whl.metadata (7.1 kB)

Collecting build<2.0.0,>=1.2.1 (from poetry==2.1.3)

Using cached build-1.2.2.post1-py3-none-any.whl.metadata (6.5 kB)

Collecting cachecontrol<0.15.0,>=0.14.0 (from cachecontrol[filecache]<0.15.0,>=0.14.0->poetry==2.1.3)

Using cached cachecontrol-0.14.3-py3-none-any.whl.metadata (3.1 kB)

Collecting cleo<3.0.0,>=2.1.0 (from poetry==2.1.3)

Using cached cleo-2.1.0-py3-none-any.whl.metadata (12 kB)

Collecting dulwich<0.23.0,>=0.22.6 (from poetry==2.1.3)

Using cached dulwich-0.22.8-py3-none-any.whl.metadata (4.9 kB)

Collecting fastjsonschema<3.0.0,>=2.18.0 (from poetry==2.1.3)

Using cached fastjsonschema-2.21.1-py3-none-any.whl.metadata (2.2 kB)

Collecting findpython<0.7.0,>=0.6.2 (from poetry==2.1.3)

Using cached findpython-0.6.3-py3-none-any.whl.metadata (5.3 kB)

Collecting installer<0.8.0,>=0.7.0 (from poetry==2.1.3)

Using cached installer-0.7.0-py3-none-any.whl.metadata (936 bytes)

Collecting keyring<26.0.0,>=25.1.0 (from poetry==2.1.3)

Using cached keyring-25.6.0-py3-none-any.whl.metadata (20 kB)

Collecting packaging>=24.0 (from poetry==2.1.3)

Using cached packaging-25.0-py3-none-any.whl.metadata (3.3 kB)

Collecting pbs-installer<2026.0.0,>=2025.1.6 (from pbs-installer[download,install]<2026.0.0,>=2025.1.6->poetry==2.1.3)

Using cached pbs_installer-2025.6.10-py3-none-any.whl.metadata (991 bytes)

Collecting pkginfo<2.0,>=1.12 (from poetry==2.1.3)

Using cached pkginfo-1.12.1.2-py3-none-any.whl.metadata (13 kB)

Collecting platformdirs<5,>=3.0.0 (from poetry==2.1.3)

Using cached platformdirs-4.3.8-py3-none-any.whl.metadata (12 kB)

Collecting poetry-core==2.1.3 (from poetry==2.1.3)

Using cached poetry_core-2.1.3-py3-none-any.whl.metadata (3.5 kB)

Collecting pyproject-hooks<2.0.0,>=1.0.0 (from poetry==2.1.3)

Using cached pyproject_hooks-1.2.0-py3-none-any.whl.metadata (1.3 kB)

Collecting requests<3.0,>=2.26 (from poetry==2.1.3)

Using cached requests-2.32.4-py3-none-any.whl.metadata (4.9 kB)

Collecting requests-toolbelt<2.0.0,>=1.0.0 (from poetry==2.1.3)

Using cached requests_toolbelt-1.0.0-py2.py3-none-any.whl.metadata (14 kB)

Collecting shellingham<2.0,>=1.5 (from poetry==2.1.3)

Using cached shellingham-1.5.4-py2.py3-none-any.whl.metadata (3.5 kB)

Collecting tomlkit<1.0.0,>=0.11.4 (from poetry==2.1.3)

Using cached tomlkit-0.13.3-py3-none-any.whl.metadata (2.8 kB)

Collecting trove-classifiers>=2022.5.19 (from poetry==2.1.3)

Using cached trove_classifiers-2025.5.9.12-py3-none-any.whl.metadata (2.3 kB)

Collecting virtualenv<21.0.0,>=20.26.6 (from poetry==2.1.3)

Using cached virtualenv-20.31.2-py3-none-any.whl.metadata (4.5 kB)

Collecting colorama (from build<2.0.0,>=1.2.1->poetry==2.1.3)

Using cached colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)

Collecting msgpack<2.0.0,>=0.5.2 (from cachecontrol<0.15.0,>=0.14.0->cachecontrol[filecache]<0.15.0,>=0.14.0->poetry==2.1.3)

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'

Collecting filelock>=3.8.0 (from cachecontrol[filecache]<0.15.0,>=0.14.0->poetry==2.1.3)

Using cached filelock-3.18.0-py3-none-any.whl.metadata (2.9 kB)

Collecting crashtest<0.5.0,>=0.4.1 (from cleo<3.0.0,>=2.1.0->poetry==2.1.3)

Using cached crashtest-0.4.1-py3-none-any.whl.metadata (1.1 kB)

Collecting rapidfuzz<4.0.0,>=3.0.0 (from cleo<3.0.0,>=2.1.0->poetry==2.1.3)

Using cached rapidfuzz-3.13.0-cp313-cp313-win_arm64.whl.metadata (12 kB)

Collecting urllib3>=1.25 (from dulwich<0.23.0,>=0.22.6->poetry==2.1.3)

Using cached urllib3-2.4.0-py3-none-any.whl.metadata (6.5 kB)

Collecting pywin32-ctypes>=0.2.0 (from keyring<26.0.0,>=25.1.0->poetry==2.1.3)

Using cached pywin32_ctypes-0.2.3-py3-none-any.whl.metadata (3.9 kB)

Collecting jaraco.classes (from keyring<26.0.0,>=25.1.0->poetry==2.1.3)

Using cached jaraco.classes-3.4.0-py3-none-any.whl.metadata (2.6 kB)

Collecting jaraco.functools (from keyring<26.0.0,>=25.1.0->poetry==2.1.3)

Using cached jaraco.functools-4.1.0-py3-none-any.whl.metadata (2.9 kB)

Collecting jaraco.context (from keyring<26.0.0,>=25.1.0->poetry==2.1.3)

Using cached jaraco.context-6.0.1-py3-none-any.whl.metadata (4.1 kB)

Collecting httpx<1,>=0.27.0 (from pbs-installer[download,install]<2026.0.0,>=2025.1.6->poetry==2.1.3)

Using cached httpx-0.28.1-py3-none-any.whl.metadata (7.1 kB)

Collecting zstandard>=0.21.0 (from pbs-installer[download,install]<2026.0.0,>=2025.1.6->poetry==2.1.3)

Using cached zstandard-0.23.0.tar.gz (681 kB)

Installing build dependencies: started

Installing build dependencies: finished with status 'error'

error: subprocess-exited-with-error



pip subprocess to install build dependencies did not run successfully.

exit code: 1



[60 lines of output]

Ignoring cffi: markers 'python_version <= "3.12"' don't match your environment

Collecting cffi==1.17.0rc1

  Using cached cffi-1.17.0rc1.tar.gz (516 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 'error'

  error: subprocess-exited-with-error



  Getting requirements to build wheel did not run successfully.

  exit code: 1



  [36 lines of output]

  Traceback (most recent call last):

    File "C:\Users\rejam\AppData\Roaming\pypoetry\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>

      main()

      ~~~~^^

    File "C:\Users\rejam\AppData\Roaming\pypoetry\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main

      json_out["return_val"] = hook(**hook_input["kwargs"])

                               ~~~~^^^^^^^^^^^^^^^^^^^^^^^^

    File "C:\Users\rejam\AppData\Roaming\pypoetry\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 143, in get_requires_for_build_wheel

      return hook(config_settings)

    File "C:\Users\rejam\AppData\Local\Temp\pip-build-env-lbo5erlr\overlay\Lib\site-packages\setuptools\build_meta.py", line 331, in get_requires_for_build_wheel

      return self._get_build_requires(config_settings, requirements=[])

             ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    File "C:\Users\rejam\AppData\Local\Temp\pip-build-env-lbo5erlr\overlay\Lib\site-packages\setuptools\build_meta.py", line 301, in _get_build_requires

      self.run_setup()

      ~~~~~~~~~~~~~~^^

    File "C:\Users\rejam\AppData\Local\Temp\pip-build-env-lbo5erlr\overlay\Lib\site-packages\setuptools\build_meta.py", line 317, in run_setup

      exec(code, locals())

      ~~~~^^^^^^^^^^^^^^^^

    File "<string>", line 126, in <module>

    File "<string>", line 105, in uses_msvc

    File "C:\Users\rejam\AppData\Local\Temp\pip-build-env-lbo5erlr\overlay\Lib\site-packages\setuptools\_distutils\command\config.py", line 213, in try_compile

      self._compile(body, headers, include_dirs, lang)

      ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    File "C:\Users\rejam\AppData\Local\Temp\pip-build-env-lbo5erlr\overlay\Lib\site-packages\setuptools\_distutils\command\config.py", line 129, in _compile

      self.compiler.compile([src], include_dirs=include_dirs)

      ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    File "C:\Users\rejam\AppData\Local\Temp\pip-build-env-lbo5erlr\overlay\Lib\site-packages\setuptools\_distutils\compilers\C\msvc.py", line 384, in compile

      self.initialize()

      ~~~~~~~~~~~~~~~^^

    File "C:\Users\rejam\AppData\Local\Temp\pip-build-env-lbo5erlr\overlay\Lib\site-packages\setuptools\_distutils\compilers\C\msvc.py", line 294, in initialize

      vc_env = _get_vc_env(plat_spec)

    File "C:\Users\rejam\AppData\Local\Temp\pip-build-env-lbo5erlr\overlay\Lib\site-packages\setuptools\_distutils\compilers\C\msvc.py", line 155, in _get_vc_env

      raise DistutilsPlatformError(

      ...<3 lines>...

      )

  distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

  [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.

[end of output]



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

error: subprocess-exited-with-error



pip subprocess to install build dependencies 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.


Traceback:

File "C:\Users\rejam\install-poetry.py", line 937, in main
  return installer.run()
         ~~~~~~~~~~~~~^^
File "C:\Users\rejam\install-poetry.py", line 574, in run
  self.install(version)
  ~~~~~~~~~~~~^^^^^^^^^
File "C:\Users\rejam\install-poetry.py", line 596, in install
  self.install_poetry(version, env)
  ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "C:\Users\rejam\install-poetry.py", line 699, in install_poetry
  env.pip("install", specification)
  ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\rejam\install-poetry.py", line 389, in pip
  return self.python("-m", "pip", *args, **kwargs)
         ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\rejam\install-poetry.py", line 386, in python
  return self.run(self._python, *args, **kwargs)
         ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\rejam\install-poetry.py", line 379, in run
  raise PoetryInstallationError(
  ...<2 lines>...
  )

rejamer avatar Jun 12 '25 17:06 rejamer

This looks like a zstandard question, not a poetry question

dimbleby avatar Jun 12 '25 17:06 dimbleby

Looks like a problem with the zstandard/cffi build, not Poetry itself.

Secrus avatar Sep 25 '25 00:09 Secrus

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Oct 25 '25 00:10 github-actions[bot]