Error on HF space build

I get the following errors. Any suggestions on how to handle them are appreciated.

  × 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-m_kkng8j/uvicorn_645b4fbdae894240872d3118c18bd2a3/", line 41, in <module>
        File "/tmp/pip-install-m_kkng8j/uvicorn_645b4fbdae894240872d3118c18bd2a3/", line 23, in get_long_description
          return open('', 'r').read()
      FileNotFoundError: [Errno 2] No such file or directory: ''
      [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.

[notice] A new release of pip available: 22.3.1 -> 23.2.1
[notice] To update, run: python -m pip install --upgrade pip

--> ERROR: process "/bin/sh -c pip install --no-cache-dir         ${SDK}==${SDK_VERSION}         spaces==${PYSPACES_VERSION}" did not complete successfully: exit code: 1
1 Like

I’m facing the same error and this answer’s solution (pin gradio to 3.44.1) does not solve the issue

Hi, can you please double check if Gradio versions are set correctly both on requirements.txt gradio==3.44.1 and sdk_version: 3.44.1 thanks

Thank you very much, radames. This solves my problem.

1 Like