# No module named 'gradio\_client'

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fno-module-named-gradio-client%2F158234%3E%5C
**Category:** Beginners\
**Created:** [June 6, 2025, 11:10am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fno-module-named-gradio-client%2F158234 "2025-06-06T11:10:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MShijas](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mshijas/32/48780_2.png) [@MShijas](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FMShijas)%5C
**Post date:** [June 6, 2025, 11:10am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fno-module-named-gradio-client%2F158234%2F1 "2025-06-06T11:10:32Z")

</div>

image\_generation\_tool = Tool.from\_space(  
“black-forest-labs/FLUX.1-schnell”,  
name=“image\_generator”,  
description=“Generate an image from a prompt”  
)

When I am trying to import the above tool from space I am facing the following error  
ModuleNotFoundError: No module named ‘gradio\_client’  
I have already installed the module and its present in the environment, what may be the possible reason?

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [June 6, 2025, 12:21pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fno-module-named-gradio-client%2F158234%2F2 "2025-06-06T12:21:13Z")

</div>

I thought it was a problem specific to `smolagents`, but it seems that no one else has experienced this error yet…  
Could it be that the Gradio client is installed but Gradio itself is not?

> <https://github.com/TheLastBen/fast-stable-diffusion/issues/2076>
>
> Deleted all folders and installed them again. Gradio or Ngrok\_token - the result… is the same.
> 
> Traceback (most recent call last):
> File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 29, in \<module\>
> import gradio
> File "/usr/local/lib/python3.10/dist-packages/gradio/\_\_init\_\_.py", line 3, in \<module\>
> import gradio.components as components
> File "/usr/local/lib/python3.10/dist-packages/gradio/components.py", line 34, in \<module\>
> from gradio\_client import media\_data
> ModuleNotFoundError: No module named 'gradio\_client'
> 
> 
> UPD: The issue is resolved. From the fourth time of reinstalling everything started.
