# Error on HF space build

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-on-hf-space-build%2F54935%3E%5C
**Category:** Spaces\
**Created:** [September 14, 2023, 3:52am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-on-hf-space-build%2F54935 "2023-09-14T03:52:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pchen](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@pchen](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fpchen)%5C
**Post date:** [September 14, 2023, 3:52am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-on-hf-space-build%2F54935%2F1 "2023-09-14T03:52:56Z")

</div>

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

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

```

---

<div class="post-metadata">

**Author:** ![vict0rsch](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/vict0rsch/32/12254_2.png) [@vict0rsch](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fvict0rsch)%5C
**Post date:** [September 14, 2023, 3:15pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-on-hf-space-build%2F54935%2F2 "2023-09-14T15:15:23Z")

</div>

I’m facing the same error and [this answer](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-error-no-such-file-or-directory-readme-md%2F54885)%E2%80%99s solution (pin gradio to `3.44.1`) does not solve the issue

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fradames)%5C
**Post date:** [September 14, 2023, 9:04pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-on-hf-space-build%2F54935%2F3 "2023-09-14T21:04:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pchen](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@pchen](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fpchen)%5C
**Post date:** [September 14, 2023, 10:18pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-on-hf-space-build%2F54935%2F4 "2023-09-14T22:18:10Z")

</div>

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