# Error while cloning Space repository - No Build Logs

**URL:** <https://discuss.huggingface.co/t/error-while-cloning-space-repository-no-build-logs/19221>\
**Category:** Spaces\
**Created:** [June 15, 2022, 10:22pm UTC](https://discuss.huggingface.co/t/error-while-cloning-space-repository-no-build-logs/19221 "2022-06-15T22:22:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![butterswords](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/butterswords/32/17156_2.png) [@butterswords](https://discuss.huggingface.co/u/butterswords)\
**Post date:** [June 15, 2022, 10:22pm UTC](https://discuss.huggingface.co/t/error-while-cloning-space-repository-no-build-logs/19221/1 "2022-06-15T22:22:07Z")

</div>

Hi, I’ve seen this post [Error while cloning Space repository](https://discuss.huggingface.co/t/error-while-cloning-space-repository/16179) and wanted to check if I am experiencing a server error or if I’ve done something wrong. My app was working a few days ago, but when I went to share it with someone I encountered a build error (see below). There are no Build Logs or I’d provide those as well.

 ![2022-06-15_15-20-28](https://us1.discourse-cdn.com/hellohellohello/original/2X/6/6996202b8dc0aeceaba7fadbd42ea05687a4c9f0.png)

Any help or guidance would be appreciated.

---

<div class="post-metadata">

**Author:** ![butterswords](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/butterswords/32/17156_2.png) [@butterswords](https://discuss.huggingface.co/u/butterswords)\
**Post date:** [June 16, 2022, 11:59pm UTC](https://discuss.huggingface.co/t/error-while-cloning-space-repository-no-build-logs/19221/2 "2022-06-16T23:59:30Z")

</div>

I deleted the contents of the repository and pushed it back to identify the problem. It appears to be my usage of spaCy “en\_web\_core\_lg” using LFS. I have updated the code to download it the first time the app loads, but I feel this is very computationally inefficient. So any guidance on how to get a stable spaCy model into my Spaces repository would be appreciated.

---

<div class="post-metadata">

**Author:** ![osanseviero](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/osanseviero/32/38738_2.png) [@osanseviero](https://discuss.huggingface.co/u/osanseviero)\
**Post date:** [June 18, 2022, 4:43pm UTC](https://discuss.huggingface.co/t/error-while-cloning-space-repository-no-build-logs/19221/3 "2022-06-18T16:43:18Z")

</div>

One option is to download the model from the Hub. FYI `spacy` pipelines are really `whl` files, which means you can do `pip install spacy_pipeline.whl`. So for example you can go to [spacy/en\_core\_web\_lg · Hugging Face](https://huggingface.co/spacy/en_core_web_lg) and do `!pip install https://huggingface.co/spacy/en_core_web_lg/resolve/main/en_core_web_lg-any-py3-none-any.whl`. Likewise, you can specify this in your `requirements.txt` file as a dependency, as done [here](https://huggingface.co/spaces/spacy/pipeline-visualizer/blob/main/requirements.txt).

---

<div class="post-metadata">

**Author:** ![butterswords](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/butterswords/32/17156_2.png) [@butterswords](https://discuss.huggingface.co/u/butterswords)\
**Post date:** [June 18, 2022, 5:22pm UTC](https://discuss.huggingface.co/t/error-while-cloning-space-repository-no-build-logs/19221/4 "2022-06-18T17:22:39Z")

</div>

Thanks, Omar, this is very helpful.

> [@osanseviero](#):
>
> Likewise, you can specify this in your `requirements.txt` file as a dependency, as done [here](https://huggingface.co/spaces/spacy/pipeline-visualizer/blob/main/requirements.txt).

I believe I got this to work. I didn’t realize you could put direct links to wheels in the requirements.txt to have models included in the image. This is really helpful.

> [@osanseviero](#):
>
> So for example you can go to [spacy/en\_core\_web\_lg · Hugging Face](https://huggingface.co/spacy/en_core_web_lg) and do `!pip install https://huggingface.co/spacy/en_core_web_lg/resolve/main/en_core_web_lg-any-py3-none-any.whl`.

Just checking on this option for a sanity check. I tried to do this in my app.py script and it threw an error. When I installed the model on my local machine within the repository it didn’t get pushed to the Spaces instance. If I were to try this implementation, is app.py the right location?

I ended up using the code below to get around the error I ran into. I doubt it’s the right way to go, but it worked until you pointed out that I can include it in the requirements.txt.

```auto
try:
    nlp = spacy.load("en_core_web_lg")
except:
    script = "python -m spacy download en_core_web_lg"
    os.system("bash -c '%s'" % script)
nlp = spacy.load("en_core_web_lg")

```
