Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running into this error while starting the application locally #61

Open
FaranMustafa opened this issue Sep 25, 2023 · 4 comments
Open

Comments

@FaranMustafa
Copy link

FaranMustafa commented Sep 25, 2023

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Contributor

sorydi3 commented Oct 8, 2023

Having the same issue as well!!!

@mjDanny
Copy link

mjDanny commented Jun 23, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants