# Error on HF spaces

**URL:** <https://discuss.huggingface.co/t/error-on-hf-spaces/31254>\
**Category:** Spaces\
**Created:** [February 7, 2023, 11:13am UTC](https://discuss.huggingface.co/t/error-on-hf-spaces/31254 "2023-02-07T11:13:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mwitiderrick](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mwitiderrick/32/17324_2.png) [@mwitiderrick](https://discuss.huggingface.co/u/mwitiderrick)\
**Post date:** [February 7, 2023, 11:13am UTC](https://discuss.huggingface.co/t/error-on-hf-spaces/31254/1 "2023-02-07T11:13:09Z")

</div>

Getting the error below on a space.

My requirements file has  
deepsparse[haystack]  
sparseml[torch]  
farm-haystack[all]==1.4.0  
faiss-cpu==1.7.2

```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-611p9q2j/datasets_6c67b773cca8498f82acdb8f88688353/setup.py", line 10, in <module>
          with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f:
        File "/usr/local/lib/python3.8/codecs.py", line 905, in open
          file = builtins.open(filename, 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

```

---

<div class="post-metadata">

**Author:** ![freddyaboulton](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/freddyaboulton/32/32732_2.png) [@freddyaboulton](https://discuss.huggingface.co/u/freddyaboulton)\
**Post date:** [February 7, 2023, 3:52pm UTC](https://discuss.huggingface.co/t/error-on-hf-spaces/31254/2 "2023-02-07T15:52:05Z")

</div>

Hi @mwitiderrick !

Does the issue persist if you do a `Factory Reboot` ?

---

<div class="post-metadata">

**Author:** ![mwitiderrick](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mwitiderrick/32/17324_2.png) [@mwitiderrick](https://discuss.huggingface.co/u/mwitiderrick)\
**Post date:** [February 7, 2023, 5:09pm UTC](https://discuss.huggingface.co/t/error-on-hf-spaces/31254/3 "2023-02-07T17:09:12Z")

</div>

Unfortunately, yes

---

<div class="post-metadata">

**Author:** ![freddyaboulton](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/freddyaboulton/32/32732_2.png) [@freddyaboulton](https://discuss.huggingface.co/u/freddyaboulton)\
**Post date:** [February 7, 2023, 5:23pm UTC](https://discuss.huggingface.co/t/error-on-hf-spaces/31254/4 "2023-02-07T17:23:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mwitiderrick](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mwitiderrick/32/17324_2.png) [@mwitiderrick](https://discuss.huggingface.co/u/mwitiderrick)\
**Post date:** [February 7, 2023, 5:37pm UTC](https://discuss.huggingface.co/t/error-on-hf-spaces/31254/5 "2023-02-07T17:37:15Z")

</div>

> **[Neuralmagic Haystack Information Retrieval - a Hugging Face Space by neuralmagic](https://huggingface.co/spaces/neuralmagic/haystack-information-retrieval)**
>
> Discover amazing ML apps made by the community

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](https://discuss.huggingface.co/u/radames)\
**Post date:** [February 7, 2023, 7:27pm UTC](https://discuss.huggingface.co/t/error-on-hf-spaces/31254/6 "2023-02-07T19:27:53Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![mwitiderrick](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mwitiderrick/32/17324_2.png) [@mwitiderrick](https://discuss.huggingface.co/u/mwitiderrick)\
**Post date:** [February 8, 2023, 4:13am UTC](https://discuss.huggingface.co/t/error-on-hf-spaces/31254/7 "2023-02-08T04:13:19Z")

</div>

Send it over please

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](https://discuss.huggingface.co/u/radames)\
**Post date:** [February 8, 2023, 7:02am UTC](https://discuss.huggingface.co/t/error-on-hf-spaces/31254/8 "2023-02-08T07:02:28Z")

</div>

send you a [PR](https://huggingface.co/spaces/neuralmagic/haystack-information-retrieval/discussions/2)  
but it turns out you can bypass the pip error following this recommendation

> **[GitHub - deepset-ai/haystack: Haystack is an open source NLP framework to...](https://github.com/deepset-ai/haystack#floppy_disk-installation)**
>
> :mag: Haystack is an open source NLP framework to interact with your data using Transformer models and LLMs (GPT-3 and alike). Haystack offers production-ready tools to quickly build ChatGPT-like q...
