# How come I get "Build Error" just for duplicating a space that contained no errors?

**URL:** <https://discuss.huggingface.co/t/how-come-i-get-build-error-just-for-duplicating-a-space-that-contained-no-errors/144309>\
**Category:** Beginners\
**Created:** [March 5, 2025, 11:51pm UTC](https://discuss.huggingface.co/t/how-come-i-get-build-error-just-for-duplicating-a-space-that-contained-no-errors/144309 "2025-03-05T23:51:33Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ALLbeebz](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@ALLbeebz](https://discuss.huggingface.co/u/ALLbeebz)\
**Post date:** [March 5, 2025, 11:51pm UTC](https://discuss.huggingface.co/t/how-come-i-get-build-error-just-for-duplicating-a-space-that-contained-no-errors/144309/1 "2025-03-05T23:51:33Z")

</div>

I am trying to duplicate [this space](https://huggingface.co/spaces/r3gm/RVC_HFv2)

but when I do, I get “build error” [here](https://huggingface.co/spaces/ALLbeebz/RVC_HFv2)

I did not change any of it’s settings.

I don’t understand how one person could have a space that works perfectly fine and another person have that EXACT space however theirs’s gets errors? I am just a beginner, so maybe someone could educate me.

error:

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

```

code that leads to error:

```auto
tornado>=6.1
setuptools
pydantic
fairseq==0.12.2
wheel
google-auth-oauthlib
pedalboard
pydub==0.25.1
httpx==0.23.0
tensorboardX
faiss_cpu==1.7.3
ffmpeg_python==0.2.0
ffmpy==0.3.1
websockets>=10.0
gradio==3.34.0
librosa==0.9.1
elevenlabs
gTTS==2.3.2
wget
psutil
matplotlib==3.7.2
mega.py==1.0.8
gdown
edge-tts
git+https://github.com/suno-ai/bark.git
nltk
noisereduce==2.0.1
unidecode
numba==0.57.1
numpy==1.23.5
onnxruntime
onnxruntime_gpu==1.15.1
opencv_python==4.8.0.74
opencv_python_headless==4.8.0.74
pandas==2.0.3
praat-parselmouth==0.4.2
PySimpleGUI==4.60.5
requests==2.31.0
resampy==0.4.2
scikit_learn==1.3.0
scipy==1.11.1
yt_dlp==2023.7.6
pyngrok==4.1.12
sounddevice==0.4.6
soundfile==0.12.1
tensorboard==2.13.0
tb_nightly==2.14.0a20230803
torch==2.0.0
torchcrepe==0.0.21
torch_directml==0.2.0.dev230426
torchaudio==2.0.1
torchvision==0.15.1
torchgen>=0.0.1
tqdm==4.65.0
python-dotenv>=1.0.0
av

```

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [March 6, 2025, 3:15am UTC](https://discuss.huggingface.co/t/how-come-i-get-build-error-just-for-duplicating-a-space-that-contained-no-errors/144309/2 "2025-03-06T03:15:28Z")

</div>

This is because the library has been updated. Specifically, there is a bug in some of the other libraries that fairseq is referencing, so some adjustments are needed. Like this.

> **[RVC Inference HF - a Hugging Face Space by John6666](https://huggingface.co/spaces/John6666/RVC_HFv2)**
>
> Discover amazing ML apps made by the community

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [March 6, 2025, 5:18am UTC](https://discuss.huggingface.co/t/how-come-i-get-build-error-just-for-duplicating-a-space-that-contained-no-errors/144309/3 "2025-03-06T05:18:22Z")

</div>

I’ve made it compatible with Gradio 5. The layout isn’t perfect, but it works for now.

> **[RVC Inference HF - a Hugging Face Space by John6666](https://huggingface.co/spaces/John6666/RVC_HFv2_gradio5)**
>
> Discover amazing ML apps made by the community

---

<div class="post-metadata">

**Author:** ![ALLbeebz](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@ALLbeebz](https://discuss.huggingface.co/u/ALLbeebz)\
**Post date:** [March 6, 2025, 6:44pm UTC](https://discuss.huggingface.co/t/how-come-i-get-build-error-just-for-duplicating-a-space-that-contained-no-errors/144309/4 "2025-03-06T18:44:45Z")

</div>

Thank you!

---

<div class="post-metadata">

**Author:** ![Aillan](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/aillan/32/57334_2.png) [@Aillan](https://discuss.huggingface.co/u/Aillan)\
**Post date:** [January 18, 2026, 8:02pm UTC](https://discuss.huggingface.co/t/how-come-i-get-build-error-just-for-duplicating-a-space-that-contained-no-errors/144309/5 "2026-01-18T20:02:32Z")

</div>

Hello! I’m sorry for reopening this thread. I’m having exactly the same problem with the same space (and one called AiCoverGen from the same original autor -r3gm-).

Sadly, the links posted by John6666 seems to be sleeping.

Is there any way of getting these duplicated spaces to work?  
(Since I’m quite noob, i thought it was a problem with my account, so, I deleted it, but using a new one brings the same error)…

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [January 18, 2026, 11:03pm UTC](https://discuss.huggingface.co/t/how-come-i-get-build-error-just-for-duplicating-a-space-that-contained-no-errors/144309/6 "2026-01-18T23:03:19Z")

</div>

For now, I restarted the Space.

Since you can basically duplicate other people’s Spaces, it’s convenient to duplicate it first when making changes.

1. ![dupspace1](https://us1.discourse-cdn.com/hellohellohello/original/3X/3/5/3590b86bc0ff809ae6147c689d36c1ba167b1635.jpeg)
2. ![dupspace2](https://us1.discourse-cdn.com/hellohellohello/original/3X/0/d/0d1b6f6513a51d65df97d19dc3dde24e3a82169c.jpeg)

---

<div class="post-metadata">

**Author:** ![Aillan](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/aillan/32/57334_2.png) [@Aillan](https://discuss.huggingface.co/u/Aillan)\
**Post date:** [January 19, 2026, 7:49pm UTC](https://discuss.huggingface.co/t/how-come-i-get-build-error-just-for-duplicating-a-space-that-contained-no-errors/144309/7 "2026-01-19T19:49:13Z")

</div>

Thank you for reopening the space! I followed the steps for duplicating it (it’s the way I always did), but for some reason, I’m still getting a Build error.

I currently logged in another device, not the usual one, because I thought this could infere too, but… I don’t know.

This is the error I get in the logs:

```auto
          ~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1023, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/tmp/pip-build-env-e71apx1g/overlay/lib/python3.13/site-packages/setuptools/ __init__.py", line 10, in <module>
    import distutils.core
ModuleNotFoundError: No module named 'distutils'

[notice] A new release of pip is available: 24.0 -> 25.3
[notice] To update, run: pip install --upgrade pip

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

```

I only duplicated it (but instead of public I set it as private but setting it Public still comes with the same error)… What does it mean? Thanks again.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [January 20, 2026, 3:02am UTC](https://discuss.huggingface.co/t/how-come-i-get-build-error-just-for-duplicating-a-space-that-contained-no-errors/144309/8 "2026-01-20T03:02:37Z")

</div>

I tried duplicating it here and was able to reproduce the same issue. Seems like the default Python version for Gradio spaces is set to 3.13…? Probably an HF bug.🤔

I’ve fixed that part for now, so I think you should be able to duplicate it now.

---

<div class="post-metadata">

**Author:** ![Aillan](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/aillan/32/57334_2.png) [@Aillan](https://discuss.huggingface.co/u/Aillan)\
**Post date:** [January 20, 2026, 3:13am UTC](https://discuss.huggingface.co/t/how-come-i-get-build-error-just-for-duplicating-a-space-that-contained-no-errors/144309/9 "2026-01-20T03:13:15Z")

</div>

Thanks again for answering.

I guess it’s a HF bug, now I see Runtime error in your space ☹

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [January 20, 2026, 5:41am UTC](https://discuss.huggingface.co/t/how-come-i-get-build-error-just-for-duplicating-a-space-that-contained-no-errors/144309/10 "2026-01-20T05:41:08Z")

</div>

Yeah. I fixed again for now but HF is buggy today…

---

<div class="post-metadata">

**Author:** ![Aillan](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/aillan/32/57334_2.png) [@Aillan](https://discuss.huggingface.co/u/Aillan)\
**Post date:** [January 20, 2026, 7:43pm UTC](https://discuss.huggingface.co/t/how-come-i-get-build-error-just-for-duplicating-a-space-that-contained-no-errors/144309/11 "2026-01-20T19:43:55Z")

</div>

I was able to duplicate it! Thank you so much for your time 🙂
