Skip to content

Getting many installation related errors with Poetry install #5

@DavidARivkin

Description

@DavidARivkin

See the below trace.

poetry install
Creating virtualenv data-questionnaire-agent-WuIUWj4t-py3.12 in /Users/david/Library/Caches/pypoetry/virtualenvs
Installing dependencies from lock file

Package operations: 112 installs, 0 updates, 0 removals

  • Installing wrapt (1.15.0)
  • Installing zipp (3.17.0)
  • Installing deprecated (1.2.14)
  • Installing h11 (0.14.0)
  • Installing importlib-metadata (6.8.0)
  • Installing protobuf (4.25.0)
  • Installing backoff (2.2.1)
  • Installing certifi (2023.7.22)
  • Installing charset-normalizer (3.3.2)
  • Installing idna (3.4)
  • Installing opentelemetry-api (1.21.0)
  • Installing opentelemetry-proto (1.21.0)
  • Installing opentelemetry-semantic-conventions (0.42b0)
  • Installing sniffio (1.3.0)
  • Installing typing-extensions (4.8.0)
  • Installing urllib3 (2.0.7)
  • Installing wsproto (1.2.0)
  • Installing anyio (3.7.1)
  • Installing frozenlist (1.4.0)
  • Installing googleapis-common-protos (1.61.0)
  • Installing grpcio (1.59.2)
  • Installing multidict (6.0.4)
  • Installing opentelemetry-exporter-otlp-proto-common (1.21.0)
  • Installing opentelemetry-sdk (1.21.0)
  • Installing packaging (23.2)
  • Installing requests (2.31.0)
  • Installing simple-websocket (1.0.0)
  • Installing aiosignal (1.3.1)
  • Installing async-timeout (4.0.3)
  • Installing attrs (23.1.0)
  • Installing bidict (0.22.1)
  • Installing hpack (4.0.0)
  • Installing httpcore (1.0.1)
  • Installing hyperframe (6.0.1)
  • Installing markupsafe (2.1.3)
  • Installing marshmallow (3.20.1)
  • Installing mypy-extensions (1.0.0)
  • Installing opentelemetry-exporter-otlp-proto-grpc (1.21.0)
  • Installing opentelemetry-exporter-otlp-proto-http (1.21.0)
  • Installing pydantic (1.10.12)
  • Installing python-engineio (4.8.0)
  • Installing setuptools (68.2.2)
  • Installing starlette (0.27.0)
  • Installing yarl (1.9.2)
  • Installing aiohttp (3.8.6): Failed

ChefBuildError

Backend subprocess exited when trying to invoke build_wheel


  • Accelerated build *

running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-14.0-arm64-cpython-312
creating build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/web_ws.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/worker.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/multipart.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/web_response.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/client_ws.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/test_utils.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/tracing.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/web_exceptions.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/web_middlewares.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/web.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/http_exceptions.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/web_app.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/streams.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/web_protocol.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/log.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/client.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/web_urldispatcher.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/web_request.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/http_websocket.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/client_proto.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/locks.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/init.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/web_runner.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/web_server.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/base_protocol.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/payload.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/client_reqrep.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/http.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/web_log.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/resolver.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/formdata.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/payload_streamer.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/web_routedef.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/connector.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/client_exceptions.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/typedefs.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/hdrs.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/web_fileresponse.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/http_writer.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/tcp_helpers.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/helpers.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/http_parser.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/cookiejar.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/pytest_plugin.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/abc.py -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
running egg_info
writing aiohttp.egg-info/PKG-INFO
writing dependency_links to aiohttp.egg-info/dependency_links.txt
writing requirements to aiohttp.egg-info/requires.txt
writing top-level names to aiohttp.egg-info/top_level.txt
reading manifest file 'aiohttp.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'aiohttp' anywhere in distribution
warning: no previously-included files matching '.pyc' found anywhere in distribution
warning: no previously-included files matching '
.pyd' found anywhere in distribution
warning: no previously-included files matching '.so' found anywhere in distribution
warning: no previously-included files matching '
.lib' found anywhere in distribution
warning: no previously-included files matching '.dll' found anywhere in distribution
warning: no previously-included files matching '
.a' found anywhere in distribution
warning: no previously-included files matching '.obj' found anywhere in distribution
warning: no previously-included files found matching 'aiohttp/
.html'
no previously-included directories found matching 'docs/_build'
adding license file 'LICENSE.txt'
writing manifest file 'aiohttp.egg-info/SOURCES.txt'
copying aiohttp/_cparser.pxd -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/_find_header.pxd -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/_headers.pxi -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/_helpers.pyi -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/_helpers.pyx -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/_http_parser.pyx -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/_http_writer.pyx -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/_websocket.pyx -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
copying aiohttp/py.typed -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp
creating build/lib.macosx-14.0-arm64-cpython-312/aiohttp/.hash
copying aiohttp/.hash/_cparser.pxd.hash -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp/.hash
copying aiohttp/.hash/_find_header.pxd.hash -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp/.hash
copying aiohttp/.hash/_helpers.pyi.hash -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp/.hash
copying aiohttp/.hash/_helpers.pyx.hash -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp/.hash
copying aiohttp/.hash/_http_parser.pyx.hash -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp/.hash
copying aiohttp/.hash/_http_writer.pyx.hash -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp/.hash
copying aiohttp/.hash/_websocket.pyx.hash -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp/.hash
copying aiohttp/.hash/hdrs.py.hash -> build/lib.macosx-14.0-arm64-cpython-312/aiohttp/.hash
running build_ext
building 'aiohttp._websocket' extension
creating build/temp.macosx-14.0-arm64-cpython-312
creating build/temp.macosx-14.0-arm64-cpython-312/aiohttp
clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -I/private/var/folders/3f/85ss3wld1m7316cqb639q8xm0000gn/T/tmpgx6mq_ki/.venv/include -I/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c aiohttp/_websocket.c -o build/temp.macosx-14.0-arm64-cpython-312/aiohttp/_websocket.o
aiohttp/_websocket.c:1475:17: warning: 'Py_OptimizeFlag' is deprecated [-Wdeprecated-declarations]
if (unlikely(!Py_OptimizeFlag)) {
^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/pydebug.h:13:1: note: 'Py_OptimizeFlag' has been explicitly marked deprecated here
Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag;
^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
aiohttp/_websocket.c:2680:27: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
^
aiohttp/_websocket.c:1118:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
#define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag)
^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
Py_DEPRECATED(3.12) uint64_t ma_version_tag;
^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
aiohttp/_websocket.c:2692:36: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
return (dictptr && dictptr) ? __PYX_GET_DICT_VERSION(dictptr) : 0;
^
aiohttp/_websocket.c:1118:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
#define __PYX_GET_DICT_VERSION(dict) (((PyDictObject
)(dict))->ma_version_tag)
^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
Py_DEPRECATED(3.12) uint64_t ma_version_tag;
^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
aiohttp/_websocket.c:2696:56: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
^
aiohttp/_websocket.c:1118:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
#define __PYX_GET_DICT_VERSION(dict) (((PyDictObject
)(dict))->ma_version_tag)
^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
Py_DEPRECATED(3.12) uint64_t ma_version_tag;
^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
aiohttp/_websocket.c:2741:9: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
__PYX_PY_DICT_LOOKUP_IF_MODIFIED(
^
aiohttp/_websocket.c:1125:16: note: expanded from macro '__PYX_PY_DICT_LOOKUP_IF_MODIFIED'
if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {
^
aiohttp/_websocket.c:1118:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
#define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag)
^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
Py_DEPRECATED(3.12) uint64_t ma_version_tag;
^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
aiohttp/_websocket.c:2741:9: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
__PYX_PY_DICT_LOOKUP_IF_MODIFIED(
^
aiohttp/_websocket.c:1129:30: note: expanded from macro '__PYX_PY_DICT_LOOKUP_IF_MODIFIED'
__pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);
^
aiohttp/_websocket.c:1118:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
#define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag)
^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
Py_DEPRECATED(3.12) uint64_t ma_version_tag;
^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
aiohttp/_websocket.c:3042:55: error: no member named 'ob_digit' in 'struct _longobject'
const digit* digits = ((PyLongObject*)x)->ob_digit;
~~~~~~~~~~~~~~~~~~ ^
aiohttp/_websocket.c:3097:55: error: no member named 'ob_digit' in 'struct _longobject'
const digit* digits = ((PyLongObject*)x)->ob_digit;
~~~~~~~~~~~~~~~~~~ ^
aiohttp/_websocket.c:3238:55: error: no member named 'ob_digit' in 'struct _longobject'
const digit* digits = ((PyLongObject*)x)->ob_digit;
~~~~~~~~~~~~~~~~~~ ^
aiohttp/_websocket.c:3293:55: error: no member named 'ob_digit' in 'struct _longobject'
const digit* digits = ((PyLongObject*)x)->ob_digit;
~~~~~~~~~~~~~~~~~~ ^
aiohttp/_websocket.c:3744:47: error: no member named 'ob_digit' in 'struct _longobject'
const digit* digits = ((PyLongObject*)b)->ob_digit;
~~~~~~~~~~~~~~~~~~ ^
6 warnings and 5 errors generated.
error: command '/usr/bin/clang' failed with exit code 1

at /opt/homebrew/Cellar/poetry/1.8.2/libexec/lib/python3.12/site-packages/poetry/installation/chef.py:164 in _prepare
160│
161│ error = ChefBuildError("\n\n".join(message_parts))
162│
163│ if error is not None:
→ 164│ raise error from None
165│
166│ return path
167│
168│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:

Note: This error originates from the build backend, and is likely not a problem with poetry but with aiohttp (3.8.6) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "aiohttp (==3.8.6)"'.

  • Installing brotli (1.1.0)
  • Installing click (8.1.7)
  • Installing fastapi (0.100.1)
  • Installing h2 (4.1.0)
  • Installing httpx (0.25.1)
  • Installing jinja2 (3.1.2)
  • Installing jsonpointer (2.4)
  • Installing marshmallow-enum (1.5.1)
  • Installing nodeenv (1.8.0)
  • Installing numpy (1.25.2): Failed

ChefBuildError

Backend 'setuptools.build_meta:legacy' is not available.

Traceback (most recent call last):
File "/opt/homebrew/Cellar/poetry/1.8.2/libexec/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 77, in _build_backend
obj = import_module(mod_path)
^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1310, in _find_and_load_unlocked
File "", line 488, in _call_with_frames_removed
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/private/var/folders/3f/85ss3wld1m7316cqb639q8xm0000gn/T/tmp8kmtv0ad/.venv/lib/python3.12/site-packages/setuptools/init.py", line 10, in
import distutils.core
ModuleNotFoundError: No module named 'distutils'

at /opt/homebrew/Cellar/poetry/1.8.2/libexec/lib/python3.12/site-packages/poetry/installation/chef.py:164 in _prepare
160│
161│ error = ChefBuildError("\n\n".join(message_parts))
162│
163│ if error is not None:
→ 164│ raise error from None
165│
166│ return path
167│
168│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:

Note: This error originates from the build backend, and is likely not a problem with poetry but with numpy (1.25.2) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "numpy (==1.25.2)"'.

  • Installing opentelemetry-exporter-otlp (1.21.0)
  • Installing opentelemetry-instrumentation (0.41b0)
  • Installing pillow (10.0.1)
  • Installing python-dotenv (1.0.0)
  • Installing python-socketio (5.10.0)
  • Installing socksio (1.0.0)
  • Installing tomlkit (0.12.2)
  • Installing typing-inspect (0.9.0)
  • Installing websockets (12.0)
    p

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions