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

No module named gradio._simple_templates #10712

Open
1 task done
anirbanbasu opened this issue Mar 3, 2025 · 1 comment
Open
1 task done

No module named gradio._simple_templates #10712

anirbanbasu opened this issue Mar 3, 2025 · 1 comment
Labels
bug Something isn't working pending clarification

Comments

@anirbanbasu
Copy link
Contributor

Describe the bug

When launching my app, I get the following error. However, this happens only in a specific environment as described in the system info below.

Traceback (most recent call last):
   File "/root/app/package/webapp.py", line 11, in <module>
      import gradio as gr
   File "/usr/local/lib/python3.12/site-packages/gradio/__init__.py", line 3, in <module>
      import gradio._simple_templates
ModuleNotFoundError: No module named 'gradio._simple_template'

What am I missing?

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

import gradio as gr

is enough.

Screenshot

No response

Logs

Traceback (most recent call last):
   File "/root/app/package/webapp.py", line 11, in <module>
      import gradio as gr
   File "/usr/local/lib/python3.12/site-packages/gradio/__init__.py", line 3, in <module>
      import gradio._simple_templates
ModuleNotFoundError: No module named 'gradio._simple_template'

System Info

Gradio Environment Information:
------------------------------
Operating System: Linux
gradio version: 5.20.0
gradio_client version: 1.7.2

------------------------------------------------
gradio dependencies in your environment:

aiofiles: 23.2.1
anyio: 4.8.0
audioop-lts is not installed.
fastapi: 0.115.11
ffmpy: 0.5.0
gradio-client==1.7.2 is not installed.
groovy: 0.1.2
httpx: 0.28.1
huggingface-hub: 0.29.1
jinja2: 3.1.5
markupsafe: 2.1.5
numpy: 2.0.2
orjson: 3.10.15
packaging: 24.2
pandas: 2.2.2
pillow: 11.1.0
pydantic: 2.10.6
pydub: 0.25.1
python-multipart: 0.0.20
pyyaml: 6.0.2
ruff: 0.9.9
safehttpx: 0.1.6
semantic-version: 2.10.0
starlette: 0.46.0
tomlkit: 0.13.2
typer: 0.15.1
typing-extensions: 4.12.2
urllib3: 2.3.0
uvicorn: 0.34.0
authlib; extra == 'oauth' is not installed.
itsdangerous; extra == 'oauth' is not installed.


gradio_client dependencies in your environment:

fsspec: 2025.2.0
httpx: 0.28.1
huggingface-hub: 0.29.1
packaging: 24.2
typing-extensions: 4.12.2
websockets: 15.0

Severity

Blocking usage of gradio

@anirbanbasu anirbanbasu added the bug Something isn't working label Mar 3, 2025
@abidlabs
Copy link
Member

abidlabs commented Mar 3, 2025

Can you please uninstall and reinstall gradio with pip? It looks like a broken installation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending clarification
Projects
None yet
Development

No branches or pull requests

2 participants