AIAnytime / Chat-with-PDF-Chatbot

This Chatbot is an interactive app developed to assist users to interact with their PDF. It is built using Open Source Stack. No OpenAI is required.
MIT License
144 stars 110 forks source link

Error #2

Open Tanujairam-TG opened 1 year ago

Tanujairam-TG commented 1 year ago

Screenshot_2023-08-21-18-45-33-172 I have deployed this repo in render.com

This error came when I opened the link

SathishNaqel commented 1 year ago

Hey Same error for me . Please any help.

raovsandhya commented 1 year ago

Same error. I tried to change the import statement to " from pydantic_settings import BaseSettings" After this, I started getting below error File "C:\Users\sanv\AppData\Local\Programs\Python\Python311\Lib\site-packages\pydantic\main.py", line 723, in getattr pydantic_extra = object.getattribute(self, 'pydantic_extra') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Collection' object has no attribute 'pydantic_extra'. Did you mean: '__pydantic_complete__'?

Not sure about this error, any help appreciated!

manjunathshiva commented 1 year ago

I too got same error! Just downgrade Pydantic V2 to Pydantic V1

pip install "pydantic==1.*"

After that got pypdf Module not found error! So pip install pypdf fixed the issue

gaurav66721 commented 1 year ago

after i enter pip install "pydantic==1.*"

now getting error like

ModuleNotFoundError: No module named 'pydantic._internal' Traceback: File "/home/ubuntu/.local/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script exec(code, module.dict) File "/home/ubuntu/Desktop/bot/Chat-with-PDF-Chatbot/chatbot_app.py", line 17, in from pydantic_settings import BaseSettings File "/home/ubuntu/.local/lib/python3.10/site-packages/pydantic_settings/init.py", line 1, in from .main import BaseSettings, SettingsConfigDict File "/home/ubuntu/.local/lib/python3.10/site-packages/pydantic_settings/main.py", line 7, in from pydantic._internal._config import config_keys