Your app is having trouble loading the streamlit_option_menu.option_menu component

  1. Are you running your app locally or is it deployed?
    - app is deployed on cloud ; locally its working fine
  2. If your app is deployed:
    a. Is it deployed on Community Cloud or another hosting platform? e2e cloud platform
    b. Share the link to the public deployed app. https://st.threadzip.com
  3. Share the full text of the error message (not a screenshot).
index.6xX1278W.js:462 Your app is having trouble loading the **streamlit_option_menu.option_menu** component.

If this is an installed component that works locally, the app may be having trouble accessing the component frontend assets due to network latency or proxy settings in your app deployment.

For more troubleshooting help, please see the [Streamlit Component docs]
  1. Share the Streamlit and Python versions.
  • streamlit v 1.50.0
  • python v 3.12.8

requirements.txt ( although using poetry to run streamlit )


dependencies = [
 "boto3>=1.36.16",
 "fastapi>=0.116.1",
 "google-api-core>=2.25.1",
 "google-genai>=1.29.0",
 "lancedb>=0.24.3",
 "numpy==1.26.2",
 "pandas==2.2.3",
 "pandas-stubs>=2.2.3.241126",
 "piexif>=1.1.3",
 "pillow>=10.3.0",
 "python-dotenv>=1.0.1",
 "python-multipart>=0.0.20",
 "requests==2.32.4",
 "scikit-image==0.22.0",
 "scikit-learn>=1.6.1",
 "sentencepiece>=0.2.0",
 "slowapi>=0.1.9",
 "streamlit>=1.49.0",
 "streamlit_mic_recorder==0.0.8",
 "streamlit-audiorec==0.1.3",
 "streamlit-option-menu>=0.4.0",
 "werkzeug>=3.1.3",
 "profanity-hinglish (>=0.1.5,<0.2.0)",
 "click (>=8.3.0,<9.0.0)",
 "uvicorn (>=0.37.0,<0.38.0)",
 "fastapi-mcp (>=0.4.0,<0.5.0)",
 "torch (==2.5.1)",
 "torchvision (==0.20.1)",
]

requirements.txt

# poetry.lock hash: 48ca067f151abcc9104e7923ed472011f5f42298

# This file is generated by poetry-auto-export

# The SHA1 hash of the poetry.lock file is printed above

--extra-index-url https://download.pytorch.org/whl/cpu

altair==5.5.0 ; python_version >= "3.10" and python_version < "3.13"

annotated-types==0.7.0 ; python_version >= "3.10" and python_version < "3.13"

anyio==4.11.0 ; python_version >= "3.10" and python_version < "3.13"

attrs==25.4.0 ; python_version >= "3.10" and python_version < "3.13"

better-profanity==0.7.0

blinker==1.9.0 ; python_version >= "3.10" and python_version < "3.13"

boto3==1.40.54 ; python_version >= "3.10" and python_version < "3.13"

botocore==1.40.54 ; python_version >= "3.10" and python_version < "3.13"

cachetools==6.2.1 ; python_version >= "3.10" and python_version < "3.13"

certifi==2025.10.5 ; python_version >= "3.10" and python_version < "3.13"

charset-normalizer==3.4.4 ; python_version >= "3.10" and python_version < "3.13"

click==8.3.0 ; python_version >= "3.10" and python_version < "3.13"

colorama==0.4.6 ; python_version >= "3.10" and python_version < "3.13" and platform_system == "Windows"

contourpy==1.3.2 ; python_version == "3.10"

contourpy==1.3.3 ; python_version >= "3.11" and python_version < "3.13"

cycler==0.12.1 ; python_version >= "3.10" and python_version < "3.13"

deprecated==1.2.18 ; python_version >= "3.10" and python_version < "3.13"

deprecation==2.1.0 ; python_version >= "3.10" and python_version < "3.13"

easyocr==1.7.2 ; python_version >= "3.10" and python_version < "3.13"

exceptiongroup==1.3.0 ; python_version == "3.10"

fastapi-mcp==0.4.0 ; python_version >= "3.10" and python_version < "3.13"

fastapi==0.119.0 ; python_version >= "3.10" and python_version < "3.13"

filelock==3.20.0 ; python_version >= "3.10" and python_version < "3.13"

fonttools==4.60.1 ; python_version >= "3.10" and python_version < "3.13"

fsspec==2025.9.0 ; python_version >= "3.10" and python_version < "3.13"

gitdb==4.0.12 ; python_version >= "3.10" and python_version < "3.13"

gitpython==3.1.45 ; python_version >= "3.10" and python_version < "3.13"

google-api-core==2.26.0 ; python_version >= "3.10" and python_version < "3.13"

google-auth==2.41.1 ; python_version >= "3.10" and python_version < "3.13"

google-genai==1.45.0 ; python_version >= "3.10" and python_version < "3.13"

googleapis-common-protos==1.70.0 ; python_version >= "3.10" and python_version < "3.13"

h11==0.16.0 ; python_version >= "3.10" and python_version < "3.13"

hf-xet==1.1.10 ; python_version >= "3.10" and python_version < "3.13" and (platform_machine == "x86_64" or platform_machine == "amd64" or platform_machine == "arm64" or platform_machine == "aarch64")

httpcore==1.0.9 ; python_version >= "3.10" and python_version < "3.13"

httpx-sse==0.4.3 ; python_version >= "3.10" and python_version < "3.13"

httpx==0.28.1 ; python_version >= "3.10" and python_version < "3.13"

huggingface-hub==0.35.3 ; python_version >= "3.10" and python_version < "3.13"

idna==3.11 ; python_version >= "3.10" and python_version < "3.13"

imageio==2.37.0 ; python_version >= "3.10" and python_version < "3.13"

jinja2==3.1.6 ; python_version >= "3.10" and python_version < "3.13"

jmespath==1.0.1 ; python_version >= "3.10" and python_version < "3.13"

joblib==1.5.2 ; python_version >= "3.10" and python_version < "3.13"

jsonschema-specifications==2025.9.1 ; python_version >= "3.10" and python_version < "3.13"

jsonschema==4.25.1 ; python_version >= "3.10" and python_version < "3.13"

kiwisolver==1.4.9 ; python_version >= "3.10" and python_version < "3.13"

lance-namespace-urllib3-client==0.0.18 ; python_version >= "3.10" and python_version < "3.13"

lance-namespace==0.0.18 ; python_version >= "3.10" and python_version < "3.13"

lancedb==0.25.2 ; python_version >= "3.10" and python_version < "3.13"

lazy-loader==0.4 ; python_version >= "3.10" and python_version < "3.13"

limits==5.6.0 ; python_version >= "3.10" and python_version < "3.13"

markdown-it-py==4.0.0 ; python_version >= "3.10" and python_version < "3.13"

markupsafe==3.0.3 ; python_version >= "3.10" and python_version < "3.13"

matplotlib==3.10.7 ; python_version >= "3.10" and python_version < "3.13"

mcp==1.18.0 ; python_version >= "3.10" and python_version < "3.13"

mdurl==0.1.2 ; python_version >= "3.10" and python_version < "3.13"

mpmath==1.3.0 ; python_version >= "3.10" and python_version < "3.13"

narwhals==2.8.0 ; python_version >= "3.10" and python_version < "3.13"

networkx==3.4.2 ; python_version == "3.10"

networkx==3.5 ; python_version >= "3.11" and python_version < "3.13"

ninja==1.13.0 ; python_version >= "3.10" and python_version < "3.13"

numpy==1.26.2 ; python_version >= "3.10" and python_version < "3.13"

opencv-python-headless==4.11.0.86 ; python_version >= "3.10" and python_version < "3.13"

opencv-python==4.11.0.86 ; python_version >= "3.10" and python_version < "3.13"

overrides==7.7.0 ; python_version >= "3.10" and python_version < "3.12"

packaging==25.0 ; python_version >= "3.10" and python_version < "3.13"

pandas-stubs==2.3.2.250926 ; python_version >= "3.10" and python_version < "3.13"

pandas==2.2.3 ; python_version >= "3.10" and python_version < "3.13"

piexif==1.1.3 ; python_version >= "3.10" and python_version < "3.13"

pillow==11.3.0 ; python_version >= "3.10" and python_version < "3.13"

polars-runtime-32==1.34.0 ; python_version >= "3.10" and python_version < "3.13"

polars==1.34.0 ; python_version >= "3.10" and python_version < "3.13"

profanity-hinglish==0.1.5 ; python_version >= "3.10" and python_version < "3.13"

proto-plus==1.26.1 ; python_version >= "3.10" and python_version < "3.13"

protobuf==6.33.0 ; python_version >= "3.10" and python_version < "3.13"

psutil==7.1.0 ; python_version >= "3.10" and python_version < "3.13"

pyarrow==21.0.0 ; python_version >= "3.10" and python_version < "3.13"

pyasn1-modules==0.4.2 ; python_version >= "3.10" and python_version < "3.13"

pyasn1==0.6.1 ; python_version >= "3.10" and python_version < "3.13"

pyclipper==1.3.0.post6 ; python_version >= "3.10" and python_version < "3.13"

pydantic-core==2.41.4 ; python_version >= "3.10" and python_version < "3.13"

pydantic-settings==2.11.0 ; python_version >= "3.10" and python_version < "3.13"

pydantic==2.12.2 ; python_version >= "3.10" and python_version < "3.13"

pydeck==0.9.1 ; python_version >= "3.10" and python_version < "3.13"

pygments==2.19.2 ; python_version >= "3.10" and python_version < "3.13"

pylance==0.38.2 ; python_version >= "3.10" and python_version < "3.13"

pyparsing==3.2.5 ; python_version >= "3.10" and python_version < "3.13"

python-bidi==0.6.6 ; python_version >= "3.10" and python_version < "3.13"

python-dateutil==2.9.0.post0 ; python_version >= "3.10" and python_version < "3.13"

python-dotenv==1.1.1 ; python_version >= "3.10" and python_version < "3.13"

python-multipart==0.0.20 ; python_version >= "3.10" and python_version < "3.13"

pytz==2025.2 ; python_version >= "3.10" and python_version < "3.13"

pywin32==311 ; python_version >= "3.10" and python_version < "3.13" and sys_platform == "win32"

pyyaml==6.0.3 ; python_version >= "3.10" and python_version < "3.13"

referencing==0.37.0 ; python_version >= "3.10" and python_version < "3.13"

regex==2025.9.18 ; python_version >= "3.10" and python_version < "3.13"

requests==2.32.4 ; python_version >= "3.10" and python_version < "3.13"

rich==14.2.0 ; python_version >= "3.10" and python_version < "3.13"

rpds-py==0.27.1 ; python_version >= "3.10" and python_version < "3.13"

rsa==4.9.1 ; python_version >= "3.10" and python_version < "3.13"

s3transfer==0.14.0 ; python_version >= "3.10" and python_version < "3.13"

safetensors==0.6.2 ; python_version >= "3.10" and python_version < "3.13"

scikit-image==0.22.0 ; python_version >= "3.10" and python_version < "3.13"

scikit-learn==1.7.2 ; python_version >= "3.10" and python_version < "3.13"

scipy==1.15.3 ; python_version == "3.10"

scipy==1.16.2 ; python_version >= "3.11" and python_version < "3.13"

sentencepiece==0.2.1 ; python_version >= "3.10" and python_version < "3.13"

setuptools==80.9.0 ; python_version == "3.12"

shapely==2.1.2 ; python_version >= "3.10" and python_version < "3.13"

shellingham==1.5.4 ; python_version >= "3.10" and python_version < "3.13"

six==1.17.0 ; python_version >= "3.10" and python_version < "3.13"

slowapi==0.1.9 ; python_version >= "3.10" and python_version < "3.13"

smmap==5.0.2 ; python_version >= "3.10" and python_version < "3.13"

sniffio==1.3.1 ; python_version >= "3.10" and python_version < "3.13"

speechrecognition==3.14.3 ; python_version >= "3.10" and python_version < "3.13"

sse-starlette==3.0.2 ; python_version >= "3.10" and python_version < "3.13"

starlette==0.48.0 ; python_version >= "3.10" and python_version < "3.13"

streamlit-audiorec==0.1.3 ; python_version >= "3.10" and python_version < "3.13"

streamlit-mic-recorder==0.0.8 ; python_version >= "3.10" and python_version < "3.13"

streamlit-option-menu==0.4.0 ; python_version >= "3.10" and python_version < "3.13"

streamlit==1.50.0 ; python_version >= "3.10" and python_version < "3.13"

sympy==1.13.1 ; python_version >= "3.10" and python_version < "3.13"

tenacity==9.1.2 ; python_version >= "3.10" and python_version < "3.13"

threadpoolctl==3.6.0 ; python_version >= "3.10" and python_version < "3.13"

tifffile==2025.10.16 ; python_version >= "3.11" and python_version < "3.13"

tifffile==2025.5.10 ; python_version == "3.10"

tokenizers==0.22.1 ; python_version >= "3.10" and python_version < "3.13"

toml==0.10.2 ; python_version >= "3.10" and python_version < "3.13"

tomli==2.3.0 ; python_version >= "3.10" and python_version < "3.13"

torch==2.5.1+cpu ; python_version >= "3.10" and python_version < "3.13"

torchvision==0.20.1+cpu ; python_version >= "3.10" and python_version < "3.13"

tornado==6.5.2 ; python_version >= "3.10" and python_version < "3.13"

tqdm==4.67.1 ; python_version >= "3.10" and python_version < "3.13"

transformers==4.56.2 ; python_version >= "3.10" and python_version < "3.13"

typer==0.19.2 ; python_version >= "3.10" and python_version < "3.13"

types-pytz==2025.2.0.20250809 ; python_version >= "3.10" and python_version < "3.13"

typing-extensions==4.15.0 ; python_version >= "3.10" and python_version < "3.13"

typing-inspection==0.4.2 ; python_version >= "3.10" and python_version < "3.13"

tzdata==2025.2 ; python_version >= "3.10" and python_version < "3.13"

ultralytics-thop==2.0.17 ; python_version >= "3.10" and python_version < "3.13"

ultralytics==8.3.217 ; python_version >= "3.10" and python_version < "3.13"

urllib3==2.5.0 ; python_version >= "3.10" and python_version < "3.13"

uvicorn==0.37.0 ; python_version >= "3.10" and python_version < "3.13"

watchdog==6.0.0 ; python_version >= "3.10" and python_version < "3.13" and platform_system != "Darwin"

websockets==15.0.1 ; python_version >= "3.10" and python_version < "3.13"

werkzeug==3.1.3 ; python_version >= "3.10" and python_version < "3.13"

wrapt==1.17.3 ; python_version >= "3.10" and python_version < "3.13"

also see this in chrome console

chrome-error://chromewebdata/:1 Refused to display 'https://st.threadzip.com/' in a frame because it set 'X-Frame-Options' to 'deny'.

because it show Iframe where st-option menu, see attached screenshot

while we have set this to allow sameorigin as below

st.threadzip.com {
	encode gzip zstd

	header {
		Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
		X-Frame-Options "SAMEORIGIN"
		X-Content-Type-Options "nosniff"
		Referrer-Policy "no-referrer-when-downgrade"
		Permissions-Policy "geolocation=(self), camera=(self), microphone=(self)"
		X-XSS-Protection "0"
	}
...

Note:this issue occured in chrome only v 141.0 on Ubuntu 24.04 , in firefix it loads the sidebar

This has been resolved after adding - X-Frame-Options along with X-Frame-Options "SAMEORIGIN" and reload with clear cache from chrome

header {
- X-Frame-Options
… other options
}

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.