# Runtime Error when duplicating SadTalker

**URL:** <https://discuss.huggingface.co/t/runtime-error-when-duplicating-sadtalker/51334>\
**Category:** Beginners\
**Created:** [August 19, 2023, 1:45pm UTC](https://discuss.huggingface.co/t/runtime-error-when-duplicating-sadtalker/51334 "2023-08-19T13:45:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trunet](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@trunet](https://discuss.huggingface.co/u/trunet)\
**Post date:** [August 19, 2023, 1:45pm UTC](https://discuss.huggingface.co/t/runtime-error-when-duplicating-sadtalker/51334/1 "2023-08-19T13:45:37Z")

</div>

Hey there, I signed up to HuggingFace to duplicate the SadTalker space, it worked initially, the next day I signed back on but it had a runtime error, since then the same issue has persisted. I assume its not an issue with SadTalker as their space is still up and running, but I’m not 100% sure.

> **[SadTalker - a Hugging Face Space by vinthony](https://huggingface.co/spaces/vinthony/SadTalker)**
>
> Discover amazing ML apps made by the community

```auto
Runtime error
Traceback (most recent call last):
  File "/home/user/app/app.py", line 4, in <module>
    from src.gradio_demo import SadTalker  
  File "/home/user/app/src/gradio_demo.py", line 3, in <module>
    from src.facerender.pirender_animate import AnimateFromCoeff_PIRender
  File "/home/user/app/src/facerender/pirender_animate.py", line 2, in <module>
    import cv2
  File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/site-packages/cv2/ __init__.py", line 181, in <module>
    bootstrap()
  File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/site-packages/cv2/ __init__.py", line 175, in bootstrap
    if __load_extra_py_code_for_module("cv2", submodule, DEBUG):
  File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/site-packages/cv2/ __init__.py", line 28, in __load_extra_py_code_for_module
    py_module = importlib.import_module(module_name)
  File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/importlib/ __init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/site-packages/cv2/typing/ __init__.py", line 69, in <module>
    NumPyArrayGeneric = numpy.ndarray[typing.Any, numpy.dtype[numpy.generic]]
TypeError: 'numpy._DTypeMeta' object is not subscriptable

```

Container logs:

```auto
Failed to retrieve error logs: Failed to initialize stream (code 404)

```

I sometimes receive these container logs:

```auto
===== Application Startup at 2023-08-16 22:01:42 =====

Traceback (most recent call last):
  File "/home/user/app/app.py", line 4, in <module>
    from src.gradio_demo import SadTalker  
  File "/home/user/app/src/gradio_demo.py", line 3, in <module>
    from src.facerender.pirender_animate import AnimateFromCoeff_PIRender
  File "/home/user/app/src/facerender/pirender_animate.py", line 2, in <module>
    import cv2
  File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/site-packages/cv2/ __init__.py", line 181, in <module>
    bootstrap()
  File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/site-packages/cv2/ __init__.py", line 175, in bootstrap
    if __load_extra_py_code_for_module("cv2", submodule, DEBUG):
  File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/site-packages/cv2/ __init__.py", line 28, in __load_extra_py_code_for_module
    py_module = importlib.import_module(module_name)
  File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/importlib/ __init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/site-packages/cv2/typing/ __init__.py", line 69, in <module>
    NumPyArrayGeneric = numpy.ndarray[typing.Any, numpy.dtype[numpy.generic]]
TypeError: 'numpy._DTypeMeta' object is not subscriptable

```

I have tried, restarting, rebooting and duplicating again, with the same outcomes. Any help would be appreciated 🙂
