yvann-ba / Robby-chatbot

AI chatbot 🤖 for chat with CSV, PDF, TXT files 📄 and YTB videos 🎥 | using Langchain🦜 | OpenAI | Streamlit ⚡
MIT License
782 stars 289 forks source link

Running into this error while starting the application locally #61

Open FaranMustafa opened 1 year ago

FaranMustafa commented 1 year ago

I just cloned the project and followed the readme and ran into this error can someone help me figure out this issue, I think there is some library incompatibility or I am using the higher version of python or streamlit

python: 3.11.0 streamlit: 1.22.0 OS: windows 11

  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "D:\internal-projects\Robby-chatbot\.venv\Scripts\streamlit.exe\__main__.py", line 7, in <module>
  File "D:\internal-projects\Robby-chatbot\.venv\Lib\site-packages\click\core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\internal-projects\Robby-chatbot\.venv\Lib\site-packages\click\core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "D:\internal-projects\Robby-chatbot\.venv\Lib\site-packages\click\core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\internal-projects\Robby-chatbot\.venv\Lib\site-packages\click\core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\internal-projects\Robby-chatbot\.venv\Lib\site-packages\click\core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\internal-projects\Robby-chatbot\.venv\Lib\site-packages\streamlit\web\cli.py", line 201, in main_run
    bootstrap.load_config_options(flag_options=kwargs)
  File "D:\internal-projects\Robby-chatbot\.venv\Lib\site-packages\streamlit\web\bootstrap.py", line 342, in load_config_options
    config.get_config_options(force_reparse=True, options_from_flags=options_from_flags)
  File "D:\internal-projects\Robby-chatbot\.venv\Lib\site-packages\streamlit\config.py", line 1184, in get_config_options
    _update_config_with_toml(file_contents, filename)
  File "D:\internal-projects\Robby-chatbot\.venv\Lib\site-packages\streamlit\config.py", line 1062, in _update_config_with_toml
    parsed_config_file = toml.loads(raw_toml)
                         ^^^^^^^^^^^^^^^^^^^^
  File "D:\internal-projects\Robby-chatbot\.venv\Lib\site-packages\toml\decoder.py", line 433, in loads
    raise TomlDecodeError("Key group not on a line by itself.",
toml.decoder.TomlDecodeError: Key group not on a line by itself. (line 1 column 1 char 0)
yvann-ba commented 1 year ago

Hey I checked and I have exactly the same version as you and the same OS and it works perfectly. There seems to be a problem with a TOML file, maybe linked to the streamlit config.toml file. Don't hesitate to let me know if you find a solution to your problem.

FaranMustafa commented 1 year ago

Hey thanks for getting back to me not too proficient with Python, I think the problem lies with the streamlit version will post if found the solution to this problem

sorydi3 commented 12 months ago

Having the same issue as well!!!

mjDanny commented 3 months ago

Hello, u can check this video https://www.youtube.com/watch?v=2E6HJlSliY8 They help me solve same problem