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

Share link not generated, error message references non-existent file #4548

Closed
1 task done
mijaba opened this issue Jun 16, 2023 · 4 comments · Fixed by #4773
Closed
1 task done

Share link not generated, error message references non-existent file #4548

mijaba opened this issue Jun 16, 2023 · 4 comments · Fixed by #4773
Labels
bug Something isn't working

Comments

@mijaba
Copy link

mijaba commented Jun 16, 2023

Describe the bug

I am attempting to run the Oobabooga text-generation-webui, which uses Gradio v3.33.1. This produces a local link, but fails to create a sharing link. Instead, it reports that it could not create a shared link and gives a message saying to ensure that my antivirus or firewall is not blocking the frpc_windows_amd64_v0.2 binary file. This file does not exist at the given path.

Upgrading to Gradio v3.34.0 has no effect. Using Gradio v3.35.2 fails with an unrelated stacktrace.

This may be related to issue #4347 and its resolution #4380.

Is there an existing issue for this?

  • I have searched the existing issues

Reproduction

Errors arise when using the repository at https://github.com/oobabooga/text-generation-webui and following their instructions.

conda activate textgen
python server.py --share

Screenshot

No response

Logs

Error message when running Gradio app:

Running on local URL:  http://127.0.0.1:7860

Could not create share link. Please check your internet connection or our status page: https://status.gradio.app.

Also please ensure that your antivirus or firewall is not blocking the binary file located at: C:\Users\BarberM\Anaconda3\envs\textgen\lib\site-packages\gradio\frpc_windows_amd64_v0.2


Listing the file:

(textgen) C:\Users\BarberM\OneDrive - AIT\OneDrive home\Projects\TRACE\LLaMa\LLaMa web interface\text-generation-webui>dir C:\Users\BarberM\Anaconda3\envs\textgen\lib\site-packages\gradio\frpc_windows_amd64_v0.2
 Volume in drive C is Windows
 Volume Serial Number is D684-6696

 Directory of C:\Users\BarberM\Anaconda3\envs\textgen\lib\site-packages\gradio

File Not Found(textgen) C:\Users\BarberM\OneDrive - AIT\OneDrive home\Projects\TRACE\LLaMa\LLaMa web interface\text-generation-webui>dir C:\Users\BarberM\Anaconda3\envs\textgen\lib\site-packages\gradio\frpc_windows_amd64_v0.2
 Volume in drive C is Windows
 Volume Serial Number is D684-6696

 Directory of C:\Users\BarberM\Anaconda3\envs\textgen\lib\site-packages\gradio

File Not Found

(textgen) C:\Users\BarberM\OneDrive - AIT\OneDrive home\Projects\TRACE\LLaMa\LLaMa web interface\text-generation-webui>dir C:\Users\BarberM\Anaconda3\envs\textgen\lib\site-packages\gradio\
 Volume in drive C is Windows
 Volume Serial Number is D684-6696

 Directory of C:\Users\BarberM\Anaconda3\envs\textgen\lib\site-packages\gradio

06/16/2023  12:30 PM    <DIR>          .
06/16/2023  12:30 PM    <DIR>          ..
06/16/2023  12:26 PM                43 .dockerignore
06/16/2023  12:26 PM             5,798 analytics.py
06/16/2023  12:26 PM            90,990 blocks.py
06/16/2023  12:26 PM               271 cli.py
06/16/2023  12:26 PM           258,365 components.py
06/16/2023  12:26 PM               715 context.py
06/16/2023  12:26 PM             1,516 data_classes.py
06/16/2023  12:26 PM             5,867 deploy_space.py
06/16/2023  12:26 PM               541 deploy_space_action.yaml
06/16/2023  12:26 PM             1,887 deprecation.py
06/16/2023  12:26 PM            12,984 events.py
06/16/2023  12:26 PM             1,062 exceptions.py
06/16/2023  12:26 PM            21,730 external.py
06/16/2023  12:26 PM             4,620 external_utils.py
06/16/2023  12:26 PM            19,387 flagging.py
06/16/2023  12:26 PM            34,433 helpers.py
06/16/2023  12:26 PM            18,544 inputs.py
06/16/2023  12:26 PM            40,156 interface.py
06/16/2023  12:26 PM            14,324 interpretation.py
06/16/2023  12:26 PM               564 ipython_ext.py
06/16/2023  12:29 PM                16 launches.json
06/16/2023  12:26 PM            10,723 layouts.py
06/16/2023  12:26 PM             4,970 mix.py
06/16/2023  12:26 PM             7,502 networking.py
06/16/2023  12:26 PM            12,616 outputs.py
06/16/2023  12:26 PM             9,835 pipelines.py
06/16/2023  12:26 PM            18,943 processing_utils.py
06/16/2023  12:26 PM            17,705 queueing.py
06/16/2023  12:26 PM             6,167 ranged_response.py
06/16/2023  12:26 PM             2,740 reload.py
06/16/2023  12:26 PM            30,869 routes.py
06/16/2023  12:26 PM             3,334 strings.py
06/16/2023  12:26 PM    <DIR>          templates
06/16/2023  12:26 PM            15,092 templates.py
06/16/2023  12:26 PM    <DIR>          test_data
06/16/2023  12:26 PM    <DIR>          themes
06/16/2023  12:26 PM             3,161 tunneling.py
06/16/2023  12:26 PM            30,675 utils.py
06/16/2023  12:26 PM                 7 version.txt
06/16/2023  12:26 PM             2,039 __init__.py
06/16/2023  12:26 PM    <DIR>          __pycache__
              37 File(s)        710,191 bytes
               6 Dir(s)  56,710,893,568 bytes free

System Info

Gradio version: 3.33.1
Python version: 3.10.9
Windows 10

Severity

serious, but I can work around it

@mijaba mijaba added the bug Something isn't working label Jun 16, 2023
@abidlabs
Copy link
Member

Hi @mijaba it looks like some software is blocking the download of your share file. Can you try these steps:

  1. Manually download this file: https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_windows_amd64.exe
  2. Move the file inside the C:\Users\BarberM\Anaconda3\envs\textgen\lib\site-packages\gradio\ folder
  3. Please rename the file to frpc_windows_amd64_v0.2

Let us know if it then works for you!

@abidlabs abidlabs added pending clarification and removed bug Something isn't working labels Jun 16, 2023
@mijaba
Copy link
Author

mijaba commented Jun 19, 2023

Thanks for your help. The download is blocked on the computer where I was installing it. When I download the file to a different machine and copy it over, the file is removed.

I don't actually have a working version, yet, but I can now see that it's another instance of the problem described in issue #3230. In my case, I'd guess the issue is Windows Defender.

It may be worth considering if the error message that Gradio provides could be improved.

I think this can be closed; any follow-up makes more sense in issue #3230.

@abidlabs
Copy link
Member

Ok agreed I think we can improve the messaging -- I'll leave this issue open until we do

@kirubeltadesse
Copy link

I am having the same issue running this inside the docker. The window installer doesn't work because I also use a Mac. Could you please let me fix this problem?

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

Successfully merging a pull request may close this issue.

3 participants