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 frontend.py

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

Hi

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

❗️ Streamlit server consistently failed status checks

Hi

Thanks Franky1 for the inputs

I have been able to solve errors and the app is now showing on streamlit
https://emtelchatbot.streamlit.app/
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/script_runner.py", line 552, in _run_script
    exec(code, module.__dict__)
  File "/app/chatbotcode1/frontend.py", line 93, in <module>
    data=load_document(file_name)
  File "/app/chatbotcode1/frontend.py", line 29, in load_document
    data =loader.load()
  File "/home/appuser/venv/lib/python3.9/site-packages/langchain/document_loaders/text.py", 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.