Error in Building Generative AI Applications with Gradio

Hi!

Getting the following error while trying to run the Gradio notebook in the video 2:

Closing server running on port: 53752 Running on local URL: https://0.0.0.0:53752 Could not create share link. Missing file: /usr/local/lib/python3.9/site-packages/gradio/frpc_linux_amd64_v0.2. Please check your internet connection. This can happen if your antivirus software blocks the download of this file. You can install manually by following these steps: 1. Download this file: https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_linux_amd64 2. Rename the downloaded file to: frpc_linux_amd64_v0.2 3. Move the file to this location: /usr/local/lib/python3.9/site-packages/gradio

Hi @greycellz

Welcome to the community.

I was able to workaround it by restarts and clear the kernel a few times

Best regards
elirod

Didn’t work for me. Will keep trying - perhaps need to start in a new browser etc.

Yep!

We can try a basic troubleshooting workflow.

Try the follow:

  • Restart your browser, clear your browser cache, or try a different browser.
  • Use a different network connection.
  • Check if the firewall, proxy, or antivirus software is blocking the connection.
  • Temporarily turn off all browser extensions, and then try again.

Let me know the results as soon as you complete.

Thanks!

Same here, tried multiple work arounds but I’m still getting this error… :frowning:

Could not create share link. Missing file: /usr/local/lib/python3.9/site-packages/gradio/frpc_linux_amd64_v0.2.

Apparently the whole issue is that the server si missing this file “frpc_linux_amd64_v0.2” in this path: “/usr/local/lib/python3.9/site-packages/gradio/” (I checked and the is not there).
Can you not download the file on the server?

Hi guys,

Restart and clearing the kernel worked for me and some others learners.

So sorry that wasn’t work for you guys.

Please, be patient, the develop team is awarred of this issue and is workin on it.

It should be fix any time soon.

best regards
elirod

1 Like

I am facing the same error. Please help!

  1. On my macbook air, there is no Python3.9 under the folder /usr/local/lib
  2. However, I do have Python3.11 installed on my machine

As a result of #1, I am not even able to place the downloaded file into the right location because that location does not exist.

Thanks,

1 Like

Hi @JADAV_RAJVEER

Just to be clear, are you trying to running locally?

I am running in the browser window that comes along with the course.

1 Like

Hi @Ajay_Bawa

I got confuse about this statements:

There is no need to install Python or other packages.
All the resources are stored on course served.

So, when you saying that your macbook air hasn’t a Python version installed what are you mean exactly?

Sorry for the confusion. I understand why it was caused. Restating my problem - the resources in the course are giving me this error.

Oh, OK.

So, if you did restart & cleaning all de outputs of your kernel doesn’t resolve, maybe it is a issue with the course environment.

Lets do this: send me a private message with your notebook.
You can download your notebook by clicking in File > Download as > Notebook (.ipynb)

After that, send me this notebook by send me a private message:
Click on my avatar > Click on the mail icon.

As soon as a received i will check your notebook to understand what causing this issue.

Never the less, the develop team is working on this course in order to fix some issues that was reported before. Maybe this is related with that instability.

Best regards
elirod

Hi Elirod, I restarted the kernel and cleared all the outputs. Still getting the same error. I am also not able to download the notebook. By clicking the File->download, it takes me to a blank about:blank page with no further action. Appreciate any help you can provide to help move me along. Thanks

Hello all! I am running into the same issue Ajay_Bawa is facing, where even when I reload the kernel multiple times the error is still occurring. I also tried to download the notebook to run locally on my machine, however, I am also taken to an “about:blank” page without a download occurring. Has anyone been able to figure out a workaround? Thank you!

Hello @Jacobaa2 ,

Try this to download notebooks :

With regards,
Nilosree Sengupta

1 Like

Awesome, I was able to download it that way. Thank you!

Hello @Jacobaa2 ,

You’re welcome!!
Happy learning!!

With regards,
Nilosree Sengupta

That’s an awesome solution. Thank you.

However, have seen same problem with few other notebooks in some of the other short courses. They all show ‘error’ in Windows or ‘forbidden’ in Mac next to Trusted. Whenever I have seen this, that notebook does not download. I have manually copied cells and saved them with the same file name in local folder. Very inelegant and haven’t checked if they work at local or not.

Download problem is solved. But the notebook is not running online along with the lecture video. It is giving 502 Bad Gateway. And the same message as what others are reporting:

Running on local URL: https://0.0.0.0:20683 Could not create share link. Missing file: /usr/local/lib/python3.9/site-packages/gradio/frpc_linux_amd64_v0.2. Please check your internet connection. This can happen if your antivirus software blocks the download of this file. You can install manually by following these steps: 1. Download this file: https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_linux_amd64 2. Rename the downloaded file to: frpc_linux_amd64_v0.2 3. Move the file to this location: /usr/local/lib/python3.9/site-packages/gradio

This refers to gradio installation at cloud server where all packages should be preloaded.

Please help