Error on HF spaces

Getting the error below on a space.

My requirements file has

× python egg_info did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-611p9q2j/datasets_6c67b773cca8498f82acdb8f88688353/", line 10, in <module>
          with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f:
        File "/usr/local/lib/python3.8/", line 905, in open
          file =, mode, buffering)
      FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-install-611p9q2j/datasets_6c67b773cca8498f82acdb8f88688353/DESCRIPTION.rst'
      [end of output]
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
WARNING: You are using pip version 22.0.2; however, version 23.0 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.

--> ERROR: process "/bin/sh -c pip install --no-cache-dir -r requirements.txt" did not complete successfully: exit code: 1

Hi @mwitiderrick !

Does the issue persist if you do a Factory Reboot ?

Unfortunately, yes

Can you link the space and share a bit more of the error log? I’m wondering which dependency it’s failing to install.

hi @mwitiderrick , it looks like it’s due to our locked pip version 22.0.2 for our Spaces Gradio template.
I open an internal issue to bump it. Meanwhile, you could use our Docker Spaces to build your Space, if you’re interested I can send you a PR?

Send it over please

send you a PR
but it turns out you can bypass the pip error following this recommendation

1 Like