Robby-chatbot icon indicating copy to clipboard operation
Robby-chatbot copied to clipboard

Running into this error while starting the application locally

Open FaranMustafa opened this issue 1 year ago • 4 comments

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)

FaranMustafa avatar Sep 25 '23 14:09 FaranMustafa

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.

yvann-ba avatar Sep 27 '23 08:09 yvann-ba

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

FaranMustafa avatar Sep 27 '23 11:09 FaranMustafa

Having the same issue as well!!!

sorydi3 avatar Oct 08 '23 12:10 sorydi3

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

mjDanny avatar Jun 23 '24 15:06 mjDanny