mirror of
https://github.com/hwchase17/langchain
synced 2024-11-10 01:10:59 +00:00
3ef8b24277
Issues (nit): 1. `utils.guard_import` prints wrong error message when there is an import `error.` It prints the whole `module_name` but should be only the first part as the pip package name. E.i. `langchain_core.utils` -> print not `langchain-core` but `langchain_core.utils`. Also replace '_' with '-' in the pip package name. 2. it does not handle the `ModuleNotFoundError` which raised if `guard_import("wrong_module")` Fixed issues; added ut-s. Controversial: I've reraised `ModuleNotFoundError` as `ImportError`, since in case of the error, the proposed action is the same - we need to install a missed package. |
||
---|---|---|
.. | ||
__init__.py | ||
_merge.py | ||
aiter.py | ||
env.py | ||
formatting.py | ||
function_calling.py | ||
html.py | ||
image.py | ||
input.py | ||
interactive_env.py | ||
iter.py | ||
json_schema.py | ||
json.py | ||
loading.py | ||
mustache.py | ||
pydantic.py | ||
strings.py | ||
utils.py |