I get the following error when I run the install command for cratedb with the langchain adapter:
root@ATWE7429:/code# pip3 install --upgrade git+https://github.com/crate-workbench/langchain@cratedb#egg=langchain[openai,cratedb]&subdirectory=libs/langchain
[1] 4307
root@ATWE7429:/code# DEPRECATION: git+https://github.com/crate-workbench/langchain@cratedb#egg=langchain[openai,cratedb] contains an egg fragment with a non-PEP 508 name pip 25.0 will enforce this behaviour change. A possible replacement is to use the req @ url syntax, and remove the egg fragment. Discussion can be found at https://github.com/pypa/pip/issues/11617
Collecting langchain[cratedb,openai]
Cloning https://github.com/crate-workbench/langchain (to revision cratedb) to /tmp/pip-install-fxes_z2b/langchain_4d919d4063234641a8a0490298c38861
Running command git clone --filter=blob:none --quiet https://github.com/crate-workbench/langchain /tmp/pip-install-fxes_z2b/langchain_4d919d4063234641a8a0490298c38861
Resolved https://github.com/crate-workbench/langchain to commit 8e1824c8e01151da40ca827870e42d67ea047eef
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
error: Multiple top-level packages discovered in a flat-layout: ['libs', 'docker', 'cookbook', 'templates'].
To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.
If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:
1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names
To find more information, look for "package discovery" on setuptools docs.
[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.
System Info
I get the following error when I run the install command for cratedb with the langchain adapter:
Who can help?
No response
Information
Related Components
Reproduction
Here is the definition of the docker container:
FROM python:3.9 AS core
WORKDIR /root
RUN pip3 install pandas \ streamlit==1.28 \ altair==4.0 \ streamlit-aggrid \ scikit-learn==1.3.2 \ crate \ matplotlib \ plotly \ pyinstrument \ openpyxl \ simplejson \ python-dotenv \ susi \ st-annotated-text \ streamlit-plotly-events \ streamlit-javascript >=0.1.4 \ azure-storage-blob \ azure-identity \ ttl_cache \ azure-cli
Expected behavior
it should install without errors