mirror of
https://github.com/hwchase17/langchain
synced 2024-11-08 07:10:35 +00:00
dc7c06bc07
Issue: When the third-party package is not installed, whenever we need to `pip install <package>` the ImportError is raised. But sometimes, the `ValueError` or `ModuleNotFoundError` is raised. It is bad for consistency. Change: replaced the `ValueError` or `ModuleNotFoundError` with `ImportError` when we raise an error with the `pip install <package>` message. Note: Ideally, we replace all `try: import... except... raise ... `with helper functions like `import_aim` or just use the existing [langchain_core.utils.utils.guard_import](https://api.python.langchain.com/en/latest/utils/langchain_core.utils.utils.guard_import.html#langchain_core.utils.utils.guard_import) But it would be much bigger refactoring. @baskaryan Please, advice on this. |
||
---|---|---|
.. | ||
blob_loaders | ||
loaders | ||
parsers | ||
sample_documents | ||
test_docs | ||
__init__.py | ||
test_airbyte.py | ||
test_arcgis_loader.py | ||
test_assemblyai.py | ||
test_bibtex.py | ||
test_bshtml.py | ||
test_confluence.py | ||
test_couchbase.py | ||
test_csv_loader.py | ||
test_cube_semantic.py | ||
test_detect_encoding.py | ||
test_directory_loader.py | ||
test_directory.py | ||
test_evernote_loader.py | ||
test_generic_loader.py | ||
test_git.py | ||
test_github.py | ||
test_hugging_face_model.py | ||
test_hugging_face.py | ||
test_imports.py | ||
test_json_loader.py | ||
test_lakefs.py | ||
test_mediawikidump.py | ||
test_mhtml.py | ||
test_mongodb.py | ||
test_notebook.py | ||
test_obsidian.py | ||
test_onenote.py | ||
test_oracleadb.py | ||
test_pebblo.py | ||
test_psychic.py | ||
test_readthedoc.py | ||
test_rspace_loader.py | ||
test_rss.py | ||
test_trello.py | ||
test_web_base.py | ||
test_youtube.py |