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

poetry install --with test issue #13912

Closed
2 of 14 tasks
johnlarkin1 opened this issue Nov 27, 2023 · 2 comments
Closed
2 of 14 tasks

poetry install --with test issue #13912

johnlarkin1 opened this issue Nov 27, 2023 · 2 comments
Labels
🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature

Comments

@johnlarkin1
Copy link

System Info

You cannot run poetry install --with test on a fresh build:

╭─ username@comp ~/path/to/coding
╰─➤  cd langchain2
ls

╭─username@comp ~/path/to/langchain2 ‹master›
╰─➤  ls
CITATION.cff   Makefile       cookbook       libs           pyproject.toml
LICENSE        README.md      docker         poetry.lock    templates
MIGRATE.md     SECURITY.md    docs           poetry.toml

╭─username@comp ~/path/to/langchain2 ‹master›
╰─➤  poetry install --with test

Creating virtualenv langchain-monorepo in /path/to/langchain2/.venv
Installing dependencies from lock file

Package operations: 165 installs, 1 update, 0 removals

  • Downgrading pip (23.3.1 -> 23.2.1)
  • Installing attrs (23.1.0)
  • Installing rpds-py (0.10.3)
  • Installing referencing (0.30.2)
  • Installing six (1.16.0)
  • Installing jsonschema-specifications (2023.7.1)
  • Installing platformdirs (3.11.0)
  • Installing python-dateutil (2.8.2)
  • Installing traitlets (5.11.1)
  • Installing types-python-dateutil (2.8.19.14)
  • Installing arrow (1.3.0)
  • Installing entrypoints (0.4)
  • Installing fastjsonschema (2.18.1)
  • Installing jsonschema (4.19.1)
  • Installing jupyter-core (5.3.2)
  • Installing nest-asyncio (1.5.8)
  • Installing pycparser (2.21)
  • Installing pyzmq (25.1.1)
  • Installing tornado (6.3.3)
  • Installing cffi (1.16.0)
  • Installing fqdn (1.5.1)
  • Installing idna (3.4)
  • Installing isoduration (20.11.0)
  • Installing jsonpointer (2.4)
  • Installing jupyter-client (7.4.9)
  • Installing markupsafe (2.1.3)
  • Installing nbformat (5.9.2)
  • Installing ptyprocess (0.7.0)
  • Installing rfc3339-validator (0.1.4)
  • Installing rfc3986-validator (0.1.1)
  • Installing soupsieve (2.5)
  • Installing uri-template (1.3.0)
  • Installing webcolors (1.13)
  • Installing webencodings (0.5.1)
  • Installing argon2-cffi-bindings (21.2.0): Pending...
  • Installing argon2-cffi-bindings (21.2.0)
  • Installing asttokens (2.4.0)
  • Installing beautifulsoup4 (4.12.2)
  • Installing bleach (6.0.0)
  • Installing defusedxml (0.7.1)
  • Installing executing (2.0.0)
  • Installing jinja2 (3.1.2)
  • Installing jupyterlab-pygments (0.2.2)
  • Installing mistune (3.0.2)
  • Installing nbclient (0.7.4)
  • Installing packaging (23.2)
  • Installing pandocfilters (1.5.0)
  • Installing parso (0.8.3)
  • Installing pure-eval (0.2.2)
  • Installing pygments (2.16.1)
  • Installing python-json-logger (2.0.7)
  • Installing pyyaml (6.0.1)
  • Installing sniffio (1.3.0)
  • Installing terminado (0.17.1)
  • Installing tinycss2 (1.2.1)
  • Installing wcwidth (0.2.8)
  • Installing anyio (3.7.1): Installing...
  • Installing appnope (0.1.3): Installing...
  • Installing anyio (3.7.1)
  • Installing appnope (0.1.3)
  • Installing argon2-cffi (23.1.0)
  • Installing backcall (0.2.0)
  • Installing certifi (2023.7.22)
  • Installing charset-normalizer (3.3.0)
  • Installing decorator (5.1.1)
  • Installing jedi (0.19.1)
  • Installing jupyter-events (0.7.0)
  • Installing jupyter-server-terminals (0.4.4)
  • Installing matplotlib-inline (0.1.6)
  • Installing nbconvert (7.8.0)
  • Installing overrides (7.4.0)
  • Installing pexpect (4.8.0)
  • Installing pickleshare (0.7.5)
  • Installing prometheus-client (0.17.1)
  • Installing prompt-toolkit (3.0.39)
  • Installing send2trash (1.8.2)
  • Installing stack-data (0.6.3)
  • Installing urllib3 (2.0.6)
  • Installing websocket-client (1.6.3)
  • Installing babel (2.13.0)
  • Installing comm (0.1.4)
  • Installing debugpy (1.8.0)
  • Installing ipython (8.12.3)
  • Installing json5 (0.9.14)
  • Installing jupyter-server (2.7.3)
  • Installing psutil (5.9.5)
  • Installing requests (2.31.0)
  • Installing async-lru (2.0.4)
  • Installing ipykernel (6.25.2)
  • Installing jupyter-lsp (2.2.0)
  • Installing jupyterlab-server (2.25.0)
  • Installing notebook-shim (0.2.3)
  • Installing fastcore (1.4.2)
  • Installing ipython-genutils (0.2.0)
  • Installing jupyterlab (4.0.6)
  • Installing jupyterlab-widgets (3.0.9)
  • Installing mdurl (0.1.2)
  • Installing qtpy (2.4.0)
  • Installing typing-extensions (4.8.0)
  • Installing widgetsnbextension (4.0.9)
  • Installing alabaster (0.7.13): Installing...
  • Installing annotated-types (0.5.0): Pending...
  • Installing alabaster (0.7.13)
  • Installing annotated-types (0.5.0)
  • Installing docutils (0.17.1)
  • Installing frozenlist (1.4.0)
  • Installing ghapi (0.1.22)
  • Installing imagesize (1.4.1)
  • Installing ipywidgets (8.1.1)
  • Installing jupyter-console (6.6.3)
  • Installing markdown-it-py (2.2.0)
  • Installing multidict (6.0.4)
  • Installing mypy-extensions (1.0.0)
  • Installing notebook (7.0.4)
  • Installing pydantic-core (2.10.1)
  • Installing qtconsole (5.4.4)
  • Installing sphinxcontrib-applehelp (1.0.4)
  • Installing snowballstemmer (2.2.0)
  • Installing sphinxcontrib-devhelp (1.0.2)
  • Installing sphinxcontrib-htmlhelp (2.0.1)
  • Installing sphinxcontrib-jsmath (1.0.1)
  • Installing sphinxcontrib-qthelp (1.0.3)
  • Installing sphinxcontrib-serializinghtml (1.1.5)
  • Installing zipp (3.17.0)
  • Installing aiosignal (1.3.1): Installing...
  • Installing async-timeout (4.0.3): Pending...
  • Installing aiosignal (1.3.1)
  • Installing async-timeout (4.0.3)
  • Installing click (8.1.7)
  • Installing fastrelease (0.1.17)
  • Installing importlib-metadata (6.8.0)
  • Installing jupyter (1.0.0)
  • Installing marshmallow (3.20.1)
  • Installing mdit-py-plugins (0.3.5)
  • Installing pathspec (0.11.2)
  • Installing pydantic (2.4.2)
  • Installing sphinx (4.5.0)
  • Installing sqlalchemy (2.0.21)
  • Installing tabulate (0.9.0)
  • Installing tokenize-rt (5.2.0)
  • Installing typing-inspect (0.9.0)
  • Installing yarl (1.9.2)
  • Installing aiohttp (3.8.5): 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-13-arm64-cpython-312
  creating build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/web_ws.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/worker.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/multipart.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/web_response.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/client_ws.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/test_utils.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/tracing.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/web_exceptions.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/web_middlewares.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/web.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/http_exceptions.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/web_app.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/streams.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/web_protocol.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/log.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/client.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/web_urldispatcher.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/web_request.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/http_websocket.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/client_proto.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/locks.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/__init__.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/web_runner.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/web_server.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/base_protocol.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/payload.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/client_reqrep.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/http.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/web_log.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/resolver.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/formdata.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/payload_streamer.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/web_routedef.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/connector.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/client_exceptions.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/typedefs.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/hdrs.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/web_fileresponse.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/http_writer.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/tcp_helpers.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/helpers.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/http_parser.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/cookiejar.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/pytest_plugin.py -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/abc.py -> build/lib.macosx-13-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-13-arm64-cpython-312/aiohttp
  copying aiohttp/_find_header.pxd -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/_headers.pxi -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/_helpers.pyi -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/_helpers.pyx -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/_http_parser.pyx -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/_http_writer.pyx -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/_websocket.pyx -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  copying aiohttp/py.typed -> build/lib.macosx-13-arm64-cpython-312/aiohttp
  creating build/lib.macosx-13-arm64-cpython-312/aiohttp/.hash
  copying aiohttp/.hash/_cparser.pxd.hash -> build/lib.macosx-13-arm64-cpython-312/aiohttp/.hash
  copying aiohttp/.hash/_find_header.pxd.hash -> build/lib.macosx-13-arm64-cpython-312/aiohttp/.hash
  copying aiohttp/.hash/_helpers.pyi.hash -> build/lib.macosx-13-arm64-cpython-312/aiohttp/.hash
  copying aiohttp/.hash/_helpers.pyx.hash -> build/lib.macosx-13-arm64-cpython-312/aiohttp/.hash
  copying aiohttp/.hash/_http_parser.pyx.hash -> build/lib.macosx-13-arm64-cpython-312/aiohttp/.hash
  copying aiohttp/.hash/_http_writer.pyx.hash -> build/lib.macosx-13-arm64-cpython-312/aiohttp/.hash
  copying aiohttp/.hash/_websocket.pyx.hash -> build/lib.macosx-13-arm64-cpython-312/aiohttp/.hash
  copying aiohttp/.hash/hdrs.py.hash -> build/lib.macosx-13-arm64-cpython-312/aiohttp/.hash
  running build_ext
  building 'aiohttp._websocket' extension
  creating build/temp.macosx-13-arm64-cpython-312
  creating build/temp.macosx-13-arm64-cpython-312/aiohttp
  clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I/private/var/folders/z4/nphh3sds4zsckwzc8kcht7h00000gn/T/tmpmjkdtpaa/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c aiohttp/_websocket.c -o build/temp.macosx-13-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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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 ~/.local/pipx/venvs/poetry/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.5) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "aiohttp (==3.8.5)"'.

  • Installing black (23.10.1)
  • Installing colorama (0.4.6)
  • Installing dataclasses-json (0.6.1)
  • Installing dnspython (2.4.2)
  • Installing jsonpatch (1.33)
  • Installing jupyter-cache (0.6.1)
  • Installing langsmith (0.0.63)
  • Installing livereload (2.6.3)
  • Installing myst-parser (0.18.1)
  • Installing nbdev (1.2.0)
  • Installing numpy (1.24.4): Failed

  ChefBuildError

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

  Traceback (most recent call last):
    File "/Users/username/.local/pipx/venvs/poetry/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/[email protected]/3.12.0/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 "<frozen importlib._bootstrap>", line 1381, in _gcd_import
    File "<frozen importlib._bootstrap>", line 1354, in _find_and_load
    File "<frozen importlib._bootstrap>", line 1304, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
    File "<frozen importlib._bootstrap>", line 1381, in _gcd_import
    File "<frozen importlib._bootstrap>", line 1354, in _find_and_load
    File "<frozen importlib._bootstrap>", line 1325, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 929, in _load_unlocked
    File "<frozen importlib._bootstrap_external>", line 994, in exec_module
    File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
    File "/private/var/folders/z4/nphh3sds4zsckwzc8kcht7h00000gn/T/tmphs3uy5rx/.venv/lib/python3.12/site-packages/setuptools/__init__.py", line 10, in <module>
      import distutils.core
  ModuleNotFoundError: No module named 'distutils'


  at ~/.local/pipx/venvs/poetry/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.24.4) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "numpy (==1.24.4)"'.

  • Installing numpydoc (1.2)
  • Installing pydata-sphinx-theme (0.8.1)
  • Installing sphinxcontrib-jquery (4.1)
  • Installing tenacity (8.2.3)
Warning: The file chosen for install of executing 2.0.0 (executing-2.0.0-py2.py3-none-any.whl) is yanked. Reason for being yanked: Released 2.0.1 which is equivalent but added 'python_requires = >=3.5' so that pip install with Python 2 uses the previous version 1.2.0.

Here is my poetry info:

╰─➤  poetry env info                                                                                                                                                                                                                   1 ↵

Virtualenv
Python:         3.12.0
Implementation: CPython
Path:           /Users/username/path/to/langchain2/.venv
Executable:     /Users/username/path/to/langchain2/.venv/bin/python
Valid:          True

Who can help?

No response

Information

  • The official example notebooks/scripts
  • My own modified scripts

Related Components

  • LLMs/Chat Models
  • Embedding Models
  • Prompts / Prompt Templates / Prompt Selectors
  • Output Parsers
  • Document Loaders
  • Vector Stores / Retrievers
  • Memory
  • Agents / Agent Executors
  • Tools / Toolkits
  • Chains
  • Callbacks/Tracing
  • Async

Reproduction

I believe you should be able to do:

  1. git clone
  2. poetry install --with test

Expected behavior

I would expect that all packages specified by the lockfile could be installed successfully.

Copy link

dosubot bot commented Nov 27, 2023

🤖

Hello @johnlarkin1,

I'm Dosu, an AI bot here to assist you with any bugs, answer your questions, and guide you on how to contribute to our project. I'm here to provide immediate assistance while you wait for a human maintainer. I'm at your service to make your experience with LangChain smoother and more enjoyable. Let's get started!

It seems like you're encountering an issue with the aiohttp package during the installation process. The error messages you're seeing are related to deprecated features in Python, which suggests that there might be a compatibility issue between the version of Python you're using and the version of aiohttp that's being installed.

The minimum required version of Python for the LangChain framework is Python 3.8.1, as indicated in the pyproject.toml files in the LangChain repository. If you're using a version of Python that's older than this, it might be causing the issue.

As for the aiohttp package, I wasn't able to find the specific version that LangChain is currently using in its dependencies from the repository. However, the error you're encountering is with aiohttp (3.8.5).

One possible solution could be to try downgrading the aiohttp package to an older version that might be more compatible with your Python version. You can do this by running pip install aiohttp==3.7.4 (or any other version you want to try) before running the poetry install --with test command.

If you're already using Python 3.8.1 or a newer version, then the issue might be with the aiohttp package itself. In that case, you might want to check the aiohttp GitHub repository or their documentation for any known issues related to the 'aiohttp._websocket' extension and the deprecated features you mentioned.

Please let me know if this helps or if you need further assistance.

Sources

@dosubot dosubot bot added the 🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature label Nov 27, 2023
@efriis
Copy link
Member

efriis commented Nov 27, 2023

this is an issue with aiohttp - see here! aio-libs/aiohttp#7646

In the meantime, downgrade to python 3.11 or try the rc fix referenced at the bottom of it

@efriis efriis closed this as completed Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants