# This is the simplest code i get error in output box

**URL:** <https://discuss.huggingface.co/t/this-is-the-simplest-code-i-get-error-in-output-box/51560>\
**Category:** 🔒 Gradio\
**Created:** [August 21, 2023, 6:15pm UTC](https://discuss.huggingface.co/t/this-is-the-simplest-code-i-get-error-in-output-box/51560 "2023-08-21T18:15:36Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![tonnysasse](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@tonnysasse](https://discuss.huggingface.co/u/tonnysasse)\
**Post date:** [August 21, 2023, 6:15pm UTC](https://discuss.huggingface.co/t/this-is-the-simplest-code-i-get-error-in-output-box/51560/1 "2023-08-21T18:15:36Z")

</div>

I am suspecting that there is a browser issue (I use uptodate chrome on win 11)  
I can see anything wrong with the snippet below.  
thank you i am stuck

import gradio as gr

def this\_test(text):  
new\_text = text+text  
return new\_text

testing = gr.Interface(  
fn = this\_test,  
inputs =gr.inputs.Textbox(),  
outputs =gr.outputs.Textbox(),  
)

testing.launch(share=True)

---

<div class="post-metadata">

**Author:** ![freddyaboulton](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/freddyaboulton/32/32732_2.png) [@freddyaboulton](https://discuss.huggingface.co/u/freddyaboulton)\
**Post date:** [August 21, 2023, 6:56pm UTC](https://discuss.huggingface.co/t/this-is-the-simplest-code-i-get-error-in-output-box/51560/2 "2023-08-21T18:56:31Z")

</div>

What error are you getting @tonnysasse ?

---

<div class="post-metadata">

**Author:** ![tonnysasse](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@tonnysasse](https://discuss.huggingface.co/u/tonnysasse)\
**Post date:** [August 21, 2023, 7:01pm UTC](https://discuss.huggingface.co/t/this-is-the-simplest-code-i-get-error-in-output-box/51560/3 "2023-08-21T19:01:37Z")

</div>

the output box show red text with the word error. I have not been able to trap any more details. This error also occurs when i run hello word so it might be a permission issue of somekind. I run on win 11

---

<div class="post-metadata">

**Author:** ![tonnysasse](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@tonnysasse](https://discuss.huggingface.co/u/tonnysasse)\
**Post date:** [August 21, 2023, 7:04pm UTC](https://discuss.huggingface.co/t/this-is-the-simplest-code-i-get-error-in-output-box/51560/4 "2023-08-21T19:04:24Z")

</div>

additionally it was working a few days ago

---

<div class="post-metadata">

**Author:** ![freddyaboulton](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/freddyaboulton/32/32732_2.png) [@freddyaboulton](https://discuss.huggingface.co/u/freddyaboulton)\
**Post date:** [August 21, 2023, 7:34pm UTC](https://discuss.huggingface.co/t/this-is-the-simplest-code-i-get-error-in-output-box/51560/5 "2023-08-21T19:34:19Z")

</div>

Can you try `.launch(debug=True)` to see if anythings gets printed to the console?

---

<div class="post-metadata">

**Author:** ![tonnysasse](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@tonnysasse](https://discuss.huggingface.co/u/tonnysasse)\
**Post date:** [August 21, 2023, 7:51pm UTC](https://discuss.huggingface.co/t/this-is-the-simplest-code-i-get-error-in-output-box/51560/6 "2023-08-21T19:51:59Z")

</div>

I tried that multiple times also use the dev tools in the browser nothing nothing. I just ran a notebook that worked a few days ago that show the same error. The only change is that I moved my environment from Pip to conda and reinstalled conda and pycharm.

---

<div class="post-metadata">

**Author:** ![tonnysasse](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@tonnysasse](https://discuss.huggingface.co/u/tonnysasse)\
**Post date:** [August 21, 2023, 7:57pm UTC](https://discuss.huggingface.co/t/this-is-the-simplest-code-i-get-error-in-output-box/51560/7 "2023-08-21T19:57:22Z")

</div>

gradio version 3.18.0

---

<div class="post-metadata">

**Author:** ![freddyaboulton](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/freddyaboulton/32/32732_2.png) [@freddyaboulton](https://discuss.huggingface.co/u/freddyaboulton)\
**Post date:** [August 21, 2023, 8:13pm UTC](https://discuss.huggingface.co/t/this-is-the-simplest-code-i-get-error-in-output-box/51560/8 "2023-08-21T20:13:42Z")

</div>

I don’t think gradio works from conda install. So even if you are in a conda environment, install gradio with pip

---

<div class="post-metadata">

**Author:** ![tonnysasse](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@tonnysasse](https://discuss.huggingface.co/u/tonnysasse)\
**Post date:** [August 21, 2023, 8:27pm UTC](https://discuss.huggingface.co/t/this-is-the-simplest-code-i-get-error-in-output-box/51560/9 "2023-08-21T20:27:08Z")

</div>

conda is not installing the latest version when i use pip to instal 3.40.1 in my conda environment everything started to working. conda install is not installing the latest version of gradio - issue resolved thank you for you looking in to the issue

---

<div class="post-metadata">

**Author:** ![freddyaboulton](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/freddyaboulton/32/32732_2.png) [@freddyaboulton](https://discuss.huggingface.co/u/freddyaboulton)\
**Post date:** [August 21, 2023, 9:05pm UTC](https://discuss.huggingface.co/t/this-is-the-simplest-code-i-get-error-in-output-box/51560/10 "2023-08-21T21:05:24Z")

</div>

Yea we don’t maintain the gradio conda package so it’s entirely possible it’s out of date or broken
