Skip to content

Error message while trying to use hydralit components #35

@zerojun-wows

Description

@zerojun-wows

When I execute the example source texts with streamlit I get the following error message::

AttributeError: partially initialized module 'hydralit_components' has no attribute 'option_bar' (most likely due to a circular import) Traceback: File "C:\games\workspace\build-mbomf-Desktop_Qt_5_13_0_MinGW_32_bit-Release\release\_python-projects\streamlittest\.venv\Lib\site-packages\streamlit\runtime\scriptrunner\exec_code.py", line 121, in exec_func_with_error_handling result = func() ^^^^^^ File "C:\games\workspace\build-mbomf-Desktop_Qt_5_13_0_MinGW_32_bit-Release\release\_python-projects\streamlittest\.venv\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 591, in code_to_exec exec(code, module.__dict__) File "C:\games\workspace\build-mbomf-Desktop_Qt_5_13_0_MinGW_32_bit-Release\release\_python-projects\streamlittest\hydralit_components.py", line 2, in <module> import hydralit_components as hc File "c:\games\workspace\build-mbomf-Desktop_Qt_5_13_0_MinGW_32_bit-Release\release\_python-projects\streamlittest\hydralit_components.py", line 21, in <module> op = hc.option_bar( ^^^^^^^^^^^^^

Streamlit is v1.42.0 and i installed hydralit_components via pip install -U hydralit_components.

I have not been able to find any reason for this error - maybe someone hava a hint for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions