[X] I added a very descriptive title to this issue.
[X] I searched the LangChain documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain rather than my code.
[X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).
Example Code
cd langchain
poetry install --with lint,docs --no-root
make clean
make api_docs_build
Error Message and Stack Trace (if applicable)
Running make api_docs_build as is results in this error
poetry run python docs/api_reference/create_api_rst.py
Starting to build API reference files.
Building package: community
Building package: text-splitters
Building package: core
Building package: experimental
Building package: standard-tests
pyproject.toml not found in /home/karim/Projects/langchain/libs/partners/standard-tests.
You are either attempting to build a directory which is not a package or the package is missing a pyproject.toml file which should be added.Aborting the build.
make: *** [Makefile:37: api_docs_build] Error 1
Excluding standard-tests and running the same command results in this error:
API reference files built.
cd docs/api_reference && poetry run make html
Running Sphinx v4.5.0
Extension error:
Could not import extension sphinxcontrib.autodoc_pydantic (exception: `BaseSettings` has been moved to the `pydantic-settings` package. See https://docs.pydantic.dev/2.6/migration/#basesettings-has-moved-to-pydantic-settings for more details.
For further information visit https://errors.pydantic.dev/2.6/u/import-error)
make[1]: *** [html] Error 2
make: *** [api_docs_build] Error 2
Description
When I run make api_docs_build I get an error regarding lib/standard-tests folder. This is likely causing the first problem.
When I exclude lib/standard-tests folder, I get a migration error from pydantic
Adding standard-tests to the exclusions list and upgrading autodoc_pydantic to 1.9.0 eliminates both issues
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Running
make api_docs_build
as is results in this errorExcluding
standard-tests
and running the same command results in this error:Description
make api_docs_build
I get an error regardinglib/standard-tests
folder. This is likely causing the first problem.lib/standard-tests
folder, I get a migration error from pydanticstandard-tests
to the exclusions list and upgradingautodoc_pydantic
to1.9.0
eliminates both issuesSystem Info
platform mac and wsl