Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python setup.py bdist_wheel did not run successfully - getting error on Mac M1 Pro #507

Open
shahzans opened this issue Jul 14, 2023 · 6 comments

Comments

@shahzans
Copy link

shahzans commented Jul 14, 2023

Hi, I'm getting the below errors, when I'm trying to execute the ./web_ui.sh from MacBook M1 Pro, I'm running on MacOS version 13.4.1 withzsh shell.

I followed the instructions as specified over here for Mac M1.

I also tried updating the version of numpy==1.24.3 and numba==0.57 but it didn't work.

Appreciate any help, thank you so much for your time!

❯ ./webui.sh

################################################################
Install script for SadTalker + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on shahzan user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launcher.py...
################################################################
Python 3.8.17 (default, Jul  5 2023, 15:45:03)
[Clang 14.0.6 ]
Commit hash: ae0b26359d44c9379450a8e02a38b45eeec15549
Installing requirements for SadTalker WebUI (may take longer time in first time)
Traceback (most recent call last):
  File "launcher.py", line 203, in <module>
    prepare_environment()
  File "launcher.py", line 189, in prepare_environment
    run_pip(f"install -r \"{requirements_file}\"", "requirements for SadTalker WebUI (may take longer time in first time)")
  File "launcher.py", line 118, in run_pip
    return run(f'"{python}" -m pip {args} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}")
  File "launcher.py", line 86, in run
    raise RuntimeError(message)
RuntimeError: Couldn't install requirements for SadTalker WebUI (may take longer time in first time).
Command: "/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/bin/python3" -m pip install -r "req.txt" --prefer-binary
Error code: 1
.
.
.
  Running setup.py install for numba: started
  Running setup.py install for numba: finished with status 'error'

stderr:   error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [948 lines of output]
      TBB not found
      Using OpenMP from: /Users/shahzan/anaconda3/envs/sadtalker
      running bdist_wheel
      running build
      got version from file /private/var/folders/pz/48z7z4c176n71ryxgzkjyvrm0000gn/T/pip-install-zjtr4zul/numba_4f23f95c5bed463db0b3ce78cd212478/numba/_version.py {'version': '0.55.1', 'full': '76720bf88350c70b99ab3d4272d01bd9f14eeace'}
      running build_py
      creating build
      creating build/lib.macosx-11.1-arm64-3.8
      creating build/lib.macosx-11.1-arm64-3.8/numba
      copying numba/_version.py -> build/lib.macosx-11.1-arm64-3.8/numba
      copying numba/__init__.py -> build/lib.macosx-11.1-arm64-3.8/numba
      copying numba/__main__.py -> build/lib.macosx-11.1-arm64-3.8/numba
      .
      .
      .
      copying numba/core/runtime/nrt_external.h -> build/lib.macosx-11.1-arm64-3.8/numba/core/runtime
      copying numba/core/annotations/template.html -> build/lib.macosx-11.1-arm64-3.8/numba/core/annotations
      copying numba/cuda/tests/cudadrv/data/jitlink.ptx -> build/lib.macosx-11.1-arm64-3.8/numba/cuda/tests/cudadrv/data
      running build_ext
      building 'numba._dynfunc' extension
      Warning: Can't read registry to find the necessary compiler setting
      Make sure that Python modules winreg, win32api or win32con are installed.
      C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64 -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64

      creating build/temp.macosx-11.1-arm64-3.8
      creating build/temp.macosx-11.1-arm64-3.8/numba
      compile options: '-I/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/include -I/Users/shahzan/anaconda3/envs/sadtalker/include/python3.8 -c'
      gcc: numba/_dynfuncmod.c
      In file included from numba/_dynfuncmod.c:1:
      numba/_dynfunc.c:143:5: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
          0,                         /* tp_print */
          ^
      /Users/shahzan/anaconda3/envs/sadtalker/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
          Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
          ^
      /Users/shahzan/anaconda3/envs/sadtalker/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
      #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                           ^
      In file included from numba/_dynfuncmod.c:1:
      numba/_dynfunc.c:253:5: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
          0,                         /* tp_print */
          ^
      /Users/shahzan/anaconda3/envs/sadtalker/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
          Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
          ^
      /Users/shahzan/anaconda3/envs/sadtalker/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
      #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                           ^
      In file included from numba/_dynfuncmod.c:1:
      numba/_dynfunc.c:470:5: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
          0,                         /* tp_print */
          ^
      /Users/shahzan/anaconda3/envs/sadtalker/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
          Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
          ^
      /Users/shahzan/anaconda3/envs/sadtalker/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
      #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                           ^
      3 warnings generated.
      gcc -bundle -undefined dynamic_lookup -L/Users/shahzan/anaconda3/envs/sadtalker/lib -arch arm64 -L/Users/shahzan/anaconda3/envs/sadtalker/lib -arch arm64 -arch arm64 build/temp.macosx-11.1-arm64-3.8/numba/_dynfuncmod.o -o build/lib.macosx-11.1-arm64-3.8/numba/_dynfunc.cpython-38-darwin.so
      building 'numba._dispatcher' extension
      C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64 -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64

      creating build/temp.macosx-11.1-arm64-3.8/numba/core
      creating build/temp.macosx-11.1-arm64-3.8/numba/core/typeconv
      compile options: '-I/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/lib/python3.8/site-packages/numpy/core/include -I/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/include -I/Users/shahzan/anaconda3/envs/sadtalker/include/python3.8 -c'
      gcc: numba/_dispatcher.cppgcc: numba/_typeof.c

      gcc: numba/core/typeconv/typeconv.cppgcc: numba/_hashtable.c

      numba/_dispatcher.cpp:1104:37: warning: offset of on non-POD type 'Dispatcher' [-Winvalid-offsetof]
          {(char*)"_can_compile", T_BOOL, offsetof(Dispatcher, can_compile), 0, NULL },
                                          ^                    ~~~~~~~~~~~
      /Library/Developer/CommandLineTools/usr/lib/clang/14.0.3/include/stddef.h:105:24: note: expanded from macro 'offsetof'
      #define offsetof(t, d) __builtin_offsetof(t, d)
                             ^                     ~
      numba/_dispatcher.cpp:1163:5: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
          0,                                           /* tp_print */
          ^
      /Users/shahzan/anaconda3/envs/sadtalker/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
          Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
          ^
      /Users/shahzan/anaconda3/envs/sadtalker/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
      #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                           ^
      2 warnings generated.
      g++ -bundle -undefined dynamic_lookup -L/Users/shahzan/anaconda3/envs/sadtalker/lib -arch arm64 -L/Users/shahzan/anaconda3/envs/sadtalker/lib -arch arm64 -arch arm64 build/temp.macosx-11.1-arm64-3.8/numba/_dispatcher.o build/temp.macosx-11.1-arm64-3.8/numba/_typeof.o build/temp.macosx-11.1-arm64-3.8/numba/_hashtable.o build/temp.macosx-11.1-arm64-3.8/numba/core/typeconv/typeconv.o -L/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/lib/python3.8/site-packages/numpy/core/lib -lnpymath -o build/lib.macosx-11.1-arm64-3.8/numba/_dispatcher.cpython-38-darwin.so
      building 'numba._helperlib' extension
      C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64 -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64

      creating build/temp.macosx-11.1-arm64-3.8/numba/cext
      compile options: '-I/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/lib/python3.8/site-packages/numpy/core/include -I/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/include -I/Users/shahzan/anaconda3/envs/sadtalker/include/python3.8 -c'
      gcc: numba/_helpermod.c
      gcc: numba/cext/utils.c
      gcc: numba/cext/dictobject.cgcc: numba/cext/listobject.c

      numba/cext/listobject.c:570:23: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
      numba_list_iter_sizeof() {
                            ^
                             void
      numba/cext/dictobject.c:964:23: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
      numba_dict_iter_sizeof() {
                            ^
                             void
      numba/_helpermod.c:281:25: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
      bool _numba_test_boolean()
                              ^
                               void
      1 warning generated.
      1 warning generated.
      1 warning generated.
      gcc -bundle -undefined dynamic_lookup -L/Users/shahzan/anaconda3/envs/sadtalker/lib -arch arm64 -L/Users/shahzan/anaconda3/envs/sadtalker/lib -arch arm64 -arch arm64 build/temp.macosx-11.1-arm64-3.8/numba/_helpermod.o build/temp.macosx-11.1-arm64-3.8/numba/cext/utils.o build/temp.macosx-11.1-arm64-3.8/numba/cext/dictobject.o build/temp.macosx-11.1-arm64-3.8/numba/cext/listobject.o -L/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/lib/python3.8/site-packages/numpy/core/lib -lnpymath -o build/lib.macosx-11.1-arm64-3.8/numba/_helperlib.cpython-38-darwin.so -headerpad_max_install_names
      building 'numba.core.typeconv._typeconv' extension
      C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64 -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64

      compile options: '-I/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/include -I/Users/shahzan/anaconda3/envs/sadtalker/include/python3.8 -c'
      gcc: numba/core/typeconv/typeconv.cppgcc: numba/core/typeconv/_typeconv.cpp

      g++ -bundle -undefined dynamic_lookup -L/Users/shahzan/anaconda3/envs/sadtalker/lib -arch arm64 -L/Users/shahzan/anaconda3/envs/sadtalker/lib -arch arm64 -arch arm64 build/temp.macosx-11.1-arm64-3.8/numba/core/typeconv/typeconv.o build/temp.macosx-11.1-arm64-3.8/numba/core/typeconv/_typeconv.o -o build/lib.macosx-11.1-arm64-3.8/numba/core/typeconv/_typeconv.cpython-38-darwin.so
      building 'numba.np.ufunc._internal' extension
      C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64 -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64

      creating build/temp.macosx-11.1-arm64-3.8/numba/np
      creating build/temp.macosx-11.1-arm64-3.8/numba/np/ufunc
      compile options: '-I/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/lib/python3.8/site-packages/numpy/core/include -I/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/include -I/Users/shahzan/anaconda3/envs/sadtalker/include/python3.8 -c'
      gcc: numba/np/ufunc/_internal.c
      gcc -bundle -undefined dynamic_lookup -L/Users/shahzan/anaconda3/envs/sadtalker/lib -arch arm64 -L/Users/shahzan/anaconda3/envs/sadtalker/lib -arch arm64 -arch arm64 build/temp.macosx-11.1-arm64-3.8/numba/np/ufunc/_internal.o -L/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/lib/python3.8/site-packages/numpy/core/lib -lnpymath -o build/lib.macosx-11.1-arm64-3.8/numba/np/ufunc/_internal.cpython-38-darwin.so
      building 'numba.np.ufunc._num_threads' extension
      C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64 -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64

      compile options: '-I/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/include -I/Users/shahzan/anaconda3/envs/sadtalker/include/python3.8 -c'
      gcc: numba/np/ufunc/_num_threads.c
      gcc -bundle -undefined dynamic_lookup -L/Users/shahzan/anaconda3/envs/sadtalker/lib -arch arm64 -L/Users/shahzan/anaconda3/envs/sadtalker/lib -arch arm64 -arch arm64 build/temp.macosx-11.1-arm64-3.8/numba/np/ufunc/_num_threads.o -o build/lib.macosx-11.1-arm64-3.8/numba/np/ufunc/_num_threads.cpython-38-darwin.so
      building 'numba.mviewbuf' extension
      C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64 -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64

      compile options: '-I/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/include -I/Users/shahzan/anaconda3/envs/sadtalker/include/python3.8 -c'
      gcc: numba/mviewbuf.c
      gcc -bundle -undefined dynamic_lookup -L/Users/shahzan/anaconda3/envs/sadtalker/lib -arch arm64 -L/Users/shahzan/anaconda3/envs/sadtalker/lib -arch arm64 -arch arm64 build/temp.macosx-11.1-arm64-3.8/numba/mviewbuf.o -o build/lib.macosx-11.1-arm64-3.8/numba/mviewbuf.cpython-38-darwin.so -headerpad_max_install_names
      building 'numba.core.runtime._nrt_python' extension
      C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64 -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64

      creating build/temp.macosx-11.1-arm64-3.8/numba/core/runtime
      compile options: '-I/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/lib/python3.8/site-packages/numpy/core/include -I/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/include -I/Users/shahzan/anaconda3/envs/sadtalker/include/python3.8 -c'
      gcc: numba/core/runtime/_nrt_pythonmod.c
      gcc: numba/core/runtime/nrt.c
      numba/core/runtime/nrt.c:111:34: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
      size_t NRT_MemSys_get_stats_alloc() {
                                       ^
                                        void
      numba/core/runtime/nrt.c:115:33: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
      size_t NRT_MemSys_get_stats_free() {
                                      ^
                                       void
      numba/core/runtime/nrt.c:119:37: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
      size_t NRT_MemSys_get_stats_mi_alloc() {
                                          ^
                                           void
      numba/core/runtime/nrt.c:123:36: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
      size_t NRT_MemSys_get_stats_mi_free() {
                                         ^
                                          void
      numba/core/runtime/nrt.c:526:58: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
      NRT_ExternalAllocator* _nrt_get_sample_external_allocator() {
                                                               ^
                                                                void
      5 warnings generated.
      gcc -bundle -undefined dynamic_lookup -L/Users/shahzan/anaconda3/envs/sadtalker/lib -arch arm64 -L/Users/shahzan/anaconda3/envs/sadtalker/lib -arch arm64 -arch arm64 build/temp.macosx-11.1-arm64-3.8/numba/core/runtime/_nrt_pythonmod.o build/temp.macosx-11.1-arm64-3.8/numba/core/runtime/nrt.o -L/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/lib/python3.8/site-packages/numpy/core/lib -lnpymath -o build/lib.macosx-11.1-arm64-3.8/numba/core/runtime/_nrt_python.cpython-38-darwin.so
      building 'numba.experimental.jitclass._box' extension
      C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64 -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64

      creating build/temp.macosx-11.1-arm64-3.8/numba/experimental
      creating build/temp.macosx-11.1-arm64-3.8/numba/experimental/jitclass
      compile options: '-I/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/include -I/Users/shahzan/anaconda3/envs/sadtalker/include/python3.8 -c'
      gcc: numba/experimental/jitclass/_box.c
      gcc -bundle -undefined dynamic_lookup -L/Users/shahzan/anaconda3/envs/sadtalker/lib -arch arm64 -L/Users/shahzan/anaconda3/envs/sadtalker/lib -arch arm64 -arch arm64 build/temp.macosx-11.1-arm64-3.8/numba/experimental/jitclass/_box.o -o build/lib.macosx-11.1-arm64-3.8/numba/experimental/jitclass/_box.cpython-38-darwin.so
      building 'numba.cuda.cudadrv._extras' extension
      C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64 -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64

      creating build/temp.macosx-11.1-arm64-3.8/numba/cuda
      creating build/temp.macosx-11.1-arm64-3.8/numba/cuda/cudadrv
      compile options: '-Inumba -I/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/include -I/Users/shahzan/anaconda3/envs/sadtalker/include/python3.8 -c'
      gcc: numba/cuda/cudadrv/_extras.c
      gcc -bundle -undefined dynamic_lookup -L/Users/shahzan/anaconda3/envs/sadtalker/lib -arch arm64 -L/Users/shahzan/anaconda3/envs/sadtalker/lib -arch arm64 -arch arm64 build/temp.macosx-11.1-arm64-3.8/numba/cuda/cudadrv/_extras.o -o build/lib.macosx-11.1-arm64-3.8/numba/cuda/cudadrv/_extras.cpython-38-darwin.so
      building 'numba._devicearray' extension
      C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64 -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64

      compile options: '-Inumba -I/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/include -I/Users/shahzan/anaconda3/envs/sadtalker/include/python3.8 -c'
      extra options: '-std=c++11'
      gcc: numba/_devicearray.cpp
      numba/_devicearray.cpp:90:5: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
          0,                                           /* tp_print */
          ^
      /Users/shahzan/anaconda3/envs/sadtalker/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
          Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
          ^
      /Users/shahzan/anaconda3/envs/sadtalker/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
      #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                           ^
      numba/_devicearray.cpp:20:5: warning: private field 'ob_base' is not used [-Wunused-private-field]
          PyObject_HEAD
          ^
      /Users/shahzan/anaconda3/envs/sadtalker/include/python3.8/object.h:81:50: note: expanded from macro 'PyObject_HEAD'
      #define PyObject_HEAD                   PyObject ob_base;
                                                       ^
      2 warnings generated.
      g++ -bundle -undefined dynamic_lookup -L/Users/shahzan/anaconda3/envs/sadtalker/lib -arch arm64 -L/Users/shahzan/anaconda3/envs/sadtalker/lib -arch arm64 -arch arm64 build/temp.macosx-11.1-arm64-3.8/numba/_devicearray.o -o build/lib.macosx-11.1-arm64-3.8/numba/_devicearray.cpython-38-darwin.so
      building 'numba.np.ufunc.omppool' extension
      C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64 -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64

      compile options: '-I/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/include -I/Users/shahzan/anaconda3/envs/sadtalker/include/python3.8 -c'
      extra options: '-fopenmp -std=c++11'
      gcc: numba/np/ufunc/omppool.cpp
      gcc: numba/np/ufunc/gufunc_scheduler.cpp
      clang: error: unsupported option '-fopenmp'
      clang: error: unsupported option '-fopenmp'
      error: Command "gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64 -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64 -I/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/include -I/Users/shahzan/anaconda3/envs/sadtalker/include/python3.8 -c numba/np/ufunc/omppool.cpp -o build/temp.macosx-11.1-arm64-3.8/numba/np/ufunc/omppool.o -fopenmp -std=c++11" failed with exit status 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for numba
  error: subprocess-exited-with-error

  × Running setup.py install for numba did not run successfully.
  │ exit code: 1
  ╰─> [69 lines of output]
      TBB not found
      Using OpenMP from: /Users/shahzan/anaconda3/envs/sadtalker
      running install
      running build
      got version from file /private/var/folders/pz/48z7z4c176n71ryxgzkjyvrm0000gn/T/pip-install-zjtr4zul/numba_4f23f95c5bed463db0b3ce78cd212478/numba/_version.py {'version': '0.55.1', 'full': '76720bf88350c70b99ab3d4272d01bd9f14eeace'}
      running build_py
      running build_ext
      building 'numba._helperlib' extension
      Warning: Can't read registry to find the necessary compiler setting
      Make sure that Python modules winreg, win32api or win32con are installed.
      C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64 -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64

      creating build/temp.macosx-11.1-arm64-3.8
      creating build/temp.macosx-11.1-arm64-3.8/numba
      creating build/temp.macosx-11.1-arm64-3.8/numba/cext
      compile options: '-I/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/lib/python3.8/site-packages/numpy/core/include -I/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/include -I/Users/shahzan/anaconda3/envs/sadtalker/include/python3.8 -c'
      gcc: numba/_helpermod.c
      gcc: numba/cext/utils.c
      gcc: numba/cext/dictobject.c
      gcc: numba/cext/listobject.c
      numba/cext/listobject.c:570:23: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
      numba_list_iter_sizeof() {
                            ^
                             void
      numba/cext/dictobject.c:964:23: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
      numba_dict_iter_sizeof() {
                            ^
                             void
      numba/_helpermod.c:281:25: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
      bool _numba_test_boolean()
                              ^
                               void
      1 warning generated.
      1 warning generated.
      1 warning generated.
      gcc -bundle -undefined dynamic_lookup -L/Users/shahzan/anaconda3/envs/sadtalker/lib -arch arm64 -L/Users/shahzan/anaconda3/envs/sadtalker/lib -arch arm64 -arch arm64 build/temp.macosx-11.1-arm64-3.8/numba/_helpermod.o build/temp.macosx-11.1-arm64-3.8/numba/cext/utils.o build/temp.macosx-11.1-arm64-3.8/numba/cext/dictobject.o build/temp.macosx-11.1-arm64-3.8/numba/cext/listobject.o -L/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/lib/python3.8/site-packages/numpy/core/lib -lnpymath -o build/lib.macosx-11.1-arm64-3.8/numba/_helperlib.cpython-38-darwin.so -headerpad_max_install_names
      building 'numba.experimental.jitclass._box' extension
      C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64 -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64

      creating build/temp.macosx-11.1-arm64-3.8/numba/experimental
      creating build/temp.macosx-11.1-arm64-3.8/numba/experimental/jitclass
      compile options: '-I/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/include -I/Users/shahzan/anaconda3/envs/sadtalker/include/python3.8 -c'
      gcc: numba/experimental/jitclass/_box.c
      gcc -bundle -undefined dynamic_lookup -L/Users/shahzan/anaconda3/envs/sadtalker/lib -arch arm64 -L/Users/shahzan/anaconda3/envs/sadtalker/lib -arch arm64 -arch arm64 build/temp.macosx-11.1-arm64-3.8/numba/experimental/jitclass/_box.o -o build/lib.macosx-11.1-arm64-3.8/numba/experimental/jitclass/_box.cpython-38-darwin.so
      building 'numba.np.ufunc.omppool' extension
      C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64 -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64

      creating build/temp.macosx-11.1-arm64-3.8/numba/np
      creating build/temp.macosx-11.1-arm64-3.8/numba/np/ufunc
      compile options: '-I/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/include -I/Users/shahzan/anaconda3/envs/sadtalker/include/python3.8 -c'
      extra options: '-fopenmp -std=c++11'
      gcc: numba/np/ufunc/omppool.cpp
      gcc: numba/np/ufunc/gufunc_scheduler.cpp
      clang: error: unsupported option '-fopenmp'
      clang: error: unsupported option '-fopenmp'
      error: Command "gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64 -I/Users/shahzan/anaconda3/envs/sadtalker/include -arch arm64 -I/Users/shahzan/Projects/Data Science/AI Projects/SadTalker/venv/include -I/Users/shahzan/anaconda3/envs/sadtalker/include/python3.8 -c numba/np/ufunc/omppool.cpp -o build/temp.macosx-11.1-arm64-3.8/numba/np/ufunc/omppool.o -fopenmp -std=c++11" failed with exit status 1
      Exception ignored in: <function Pool.__del__ at 0x11982d430>
      Traceback (most recent call last):
        File "/Users/shahzan/anaconda3/envs/sadtalker/lib/python3.8/multiprocessing/pool.py", line 268, in __del__
          self._change_notifier.put(None)
        File "/Users/shahzan/anaconda3/envs/sadtalker/lib/python3.8/multiprocessing/queues.py", line 368, in put
          self._writer.send_bytes(obj)
        File "/Users/shahzan/anaconda3/envs/sadtalker/lib/python3.8/multiprocessing/connection.py", line 200, in send_bytes
          self._send_bytes(m[offset:offset + size])
        File "/Users/shahzan/anaconda3/envs/sadtalker/lib/python3.8/multiprocessing/connection.py", line 411, in _send_bytes
          self._send(header + buf)
        File "/Users/shahzan/anaconda3/envs/sadtalker/lib/python3.8/multiprocessing/connection.py", line 368, in _send
          n = write(self._handle, buf)
      OSError: [Errno 9] Bad file descriptor
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> numba

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

[notice] A new release of pip is available: 23.0.1 -> 23.1.2
[notice] To update, run: pip install --upgrade pip
@shahzans shahzans changed the title Running setup.py install for numba did not run successfully Running setup.py install for numba did not run successfully - Getting error on Mac M1 Pro Jul 14, 2023
@shahzans shahzans changed the title Running setup.py install for numba did not run successfully - Getting error on Mac M1 Pro python setup.py bdist_wheel did not run successfully - Getting error on Mac M1 Pro Jul 14, 2023
@shahzans shahzans changed the title python setup.py bdist_wheel did not run successfully - Getting error on Mac M1 Pro python setup.py bdist_wheel did not run successfully - getting error on Mac M1 Pro Jul 14, 2023
@snakebite1980
Copy link

same issue

@cczw2010
Copy link

same

@naibbian
Copy link

same issue

@dst-seaton
Copy link

same issue,,,Waiting online, who can help me? Thank you very much

@gt2ming
Copy link

gt2ming commented Feb 4, 2024

same issue...

@Danny0802
Copy link

same issue...how to fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants