-
Notifications
You must be signed in to change notification settings - Fork 125
Description
After running the file streamlit run chatbot_app.py, I am getting the below error.
All the libraries are installed properly.
What could be the reason?
AttributeError: pydantic_private
Traceback:
File "C:\GithubRepository\Chat-with-PDF-Chatbot.venv\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 535, in _run_script
exec(code, module.dict)
File "C:\GithubRepository\Chat-with-PDF-Chatbot\chatbot_app.py", line 172, in
main()
File "C:\GithubRepository\Chat-with-PDF-Chatbot\chatbot_app.py", line 140, in main
ingested_data = data_ingestion()
File "C:\GithubRepository\Chat-with-PDF-Chatbot.venv\lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 212, in wrapper
return cached_func(*args, **kwargs)
File "C:\GithubRepository\Chat-with-PDF-Chatbot.venv\lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 241, in call
return self._get_or_create_cached_value(args, kwargs)
File "C:\GithubRepository\Chat-with-PDF-Chatbot.venv\lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 268, in _get_or_create_cached_value
return self._handle_cache_miss(cache, value_key, func_args, func_kwargs)
File "C:\GithubRepository\Chat-with-PDF-Chatbot.venv\lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 324, in _handle_cache_miss
computed_value = self._info.func(*func_args, **func_kwargs)
File "C:\GithubRepository\Chat-with-PDF-Chatbot\chatbot_app.py", line 47, in data_ingestion
db = Chroma.from_documents(texts, embeddings, persist_directory=persist_directory, client_settings=CHROMA_SETTINGS)
File "C:\GithubRepository\Chat-with-PDF-Chatbot.venv\lib\site-packages\langchain\vectorstores\chroma.py", line 613, in from_documents
return cls.from_texts(
File "C:\GithubRepository\Chat-with-PDF-Chatbot.venv\lib\site-packages\langchain\vectorstores\chroma.py", line 568, in from_texts
chroma_collection = cls(
File "C:\GithubRepository\Chat-with-PDF-Chatbot.venv\lib\site-packages\langchain\vectorstores\chroma.py", line 126, in init
self._collection = self._client.get_or_create_collection(
File "C:\GithubRepository\Chat-with-PDF-Chatbot.venv\lib\site-packages\chromadb\api\local.py", line 141, in get_or_create_collection
return self.create_collection(
File "C:\GithubRepository\Chat-with-PDF-Chatbot.venv\lib\site-packages\chromadb\api\local.py", line 111, in create_collection
return Collection(
File "C:\GithubRepository\Chat-with-PDF-Chatbot.venv\lib\site-packages\chromadb\api\models\Collection.py", line 52, in init
self._client = client
File "C:\GithubRepository\Chat-with-PDF-Chatbot.venv\lib\site-packages\pydantic\main.py", line 776, in setattr
if self.pydantic_private is None or name not in self.private_attributes:
File "C:\GithubRepository\Chat-with-PDF-Chatbot.venv\lib\site-packages\pydantic\main.py", line 764, in getattr
return super().getattribute(item) # Raises AttributeError if appropriate