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 | ||
test_function_calling.py | ||
test_html.py | ||
test_imports.py | ||
test_iter.py | ||
test_json_schema.py | ||
test_rm_titles.py | ||
test_utils.py |