Getting error ModuleNot found

Here my link to git GitHub - Vkdel001/chatbotcode1
When running this code , I am getting module not found error when running

I have updated requirments.txt also

Can you help

  • typo: requirements.txt
  • however, this file will not work anyway, because it contains at least these errors:
    • remove os
    • use python-dotenv instead of dotenv


I did the changes …Now I am getting this error …anything else I am missing

❗️ Streamlit server consistently failed status checks


Thanks Franky1 for the inputs

I have been able to solve errors and the app is now showing on streamlit
Only issue is now , while loading the file , there is an error …

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x92 in position 789: invalid start byte

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/", line 552, in _run_script
    exec(code, module.__dict__)
  File "/app/chatbotcode1/", line 93, in <module>
  File "/app/chatbotcode1/", line 29, in load_document
    data =loader.load()
  File "/home/appuser/venv/lib/python3.9/site-packages/langchain/document_loaders/", line 54, in load
    raise RuntimeError(f"Error loading {self.file_path}") from e
RuntimeError: Error loading ./blink.txt

Looks like you are using a different encoding which is not compatible, you might want to try different encodings or use chardet module to find it

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.