arnaudmiribel / streamlit-extras

Discover, try, install and share Streamlit re-usable bits we call "extras"!
https://extras.streamlit.app
Apache License 2.0
727 stars 124 forks source link

🐛 [BUG] - Error displayed in the `App logo` Extra. #126

Closed CharlyWargnier closed 9 months ago

CharlyWargnier commented 1 year ago

Description

Description Error displayed in the App logo Extra.

image

Reproduction steps See below

Logs

FileNotFoundError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you're on Streamlit Cloud, click on 'Manage app' in the lower right of your app).
Traceback:
File "/app/streamlit-extras/gallery/streamlit_patches.py", line 283, in _run_script
    c()
File "/app/streamlit-extras/gallery/streamlit_app.py", line 223, in page_content
    function_explorer(func=func)
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/metrics_util.py", line 311, in wrapped_func
    result = non_optional_func(*args, **kwargs)
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit_extras/function_explorer/__init__.py", line 115, in function_explorer
    func(**inputs)
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit_extras/app_logo/__init__.py", line 24, in add_logo
    logo = f"url(data:image/png;base64,{base64.b64encode(Path(logo_url).read_bytes()).decode()})"
File "/usr/local/lib/python3.9/pathlib.py", line 1259, in read_bytes
    with self.open(mode='rb') as f:
File "/usr/local/lib/python3.9/pathlib.py", line 1252, in open
    return io.open(self, mode, buffering, encoding, errors, newline,
File "/usr/local/lib/python3.9/pathlib.py", line 1120, in _opener
    return self._accessor.open(self, flags, mode)

Version of streamlit na

Version of streamlit-extras na

Reproduction steps

1. Go to 'https://extras.streamlit.app/App%20logo'
2. See error

Screenshots

![DESCRIPTION](LINK.png)

Logs

No response

Version of streamlit

na

Version of streamlit-extras

na