Build error: after adding dependencies

I have created a new Gradio Space. Here is the list of dependencies in requirements.txt

torch
transformers
gradio>=5.0.0
scipy
sounddevice
pydub
TTS
wheel

The building process shows a lot of errors like this

Building wheels for collected packages: bnunicodenormalizer, gruut, umap-learn, unidic-lite, bnnumerizer, jieba, gruut-ipa, gruut_lang_de, gruut_lang_en, gruut_lang_es, gruut_lang_fr, docopt
  Building wheel for bnunicodenormalizer (setup.py): started
  Building wheel for bnunicodenormalizer (setup.py): finished with status 'error'
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
         or: setup.py --help [cmd1 cmd2 ...]
         or: setup.py --help-commands
         or: setup.py cmd --help
      
      error: invalid command 'bdist_wheel'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for bnunicodenormalizer

I’ve tried to do a Factor rebuild and Restart in Space settings, but nothing helps. I have a few questions.:

  1. What are the restrictions on installing dependencies? Is there a description somewhere of what can and cannot be done with Gradio Space?
  2. How do I install Gradio 5 correctly?
1 Like

wheel

I hear there’s no wheel

How do I install Gradio 5 correctly?

gradio>=5.0.0

This is enough. If you set it up as a Gradio space, you only need to set up the README.md (actually, the first half is a YAML configuration file), and you don’t need to specify it in requirements.txt.

What are the restrictions on installing dependencies?

There are various things, but this is what is clearly stated.

Using tools like Cloudflare Tunnel, TOR, proxies, VNC, Chrome Remote Server, etc., to bypass restrictions.

Thank you very much! Once again, you’re helping me out! I figured it all out :slight_smile:

1 Like