Skip to content

Installation Issue #60

@burns-brian

Description

@burns-brian

I have tried to install resemble-enhance 2 different ways on a Mac Studio (M1).

Method 1

  • brew install python
  • python3 -m venv path/to/venv
  • source path/to/venv/bin/activate
  • python3 -m pip install resemble-enhance

Method 2

  • docker docker run -it -d --name resemble-ai -v path/to/working:/working python:3 bash
  • docker exec -it resemble-ai bash
  • pip install resemble-enhance --upgrade

Issue

Each time I get the following error:

Collecting resemble-enhance
  Downloading resemble_enhance-0.0.1-py3-none-any.whl.metadata (3.4 kB)
Collecting celluloid==0.2.0 (from resemble-enhance)
  Downloading celluloid-0.2.0-py3-none-any.whl.metadata (4.8 kB)
Collecting deepspeed==0.12.4 (from resemble-enhance)
  Downloading deepspeed-0.12.4.tar.gz (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 23.5 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting librosa==0.10.1 (from resemble-enhance)
  Downloading librosa-0.10.1-py3-none-any.whl.metadata (8.3 kB)
Collecting matplotlib==3.8.1 (from resemble-enhance)
  Downloading matplotlib-3.8.1.tar.gz (35.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 35.9/35.9 MB 61.5 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting numpy==1.26.2 (from resemble-enhance)
  Downloading numpy-1.26.2.tar.gz (15.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.7/15.7 MB 50.6 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Collecting omegaconf==2.3.0 (from resemble-enhance)
  Downloading omegaconf-2.3.0-py3-none-any.whl.metadata (3.9 kB)
Collecting pandas==2.1.3 (from resemble-enhance)
  Downloading pandas-2.1.3.tar.gz (4.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.3/4.3 MB 37.8 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [106 lines of output]
      + meson setup /tmp/pip-install-x2idej4m/pandas_f8f864366eb6468f8f795996458e1b5d /tmp/pip-install-x2idej4m/pandas_f8f864366eb6468f8f795996458e1b5d/.mesonpy-qvpvvtaj/build -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --vsenv --native-file=/tmp/pip-install-x2idej4m/pandas_f8f864366eb6468f8f795996458e1b5d/.mesonpy-qvpvvtaj/build/meson-python-native-file.ini
      The Meson build system
      Version: 1.2.1
      Source dir: /tmp/pip-install-x2idej4m/pandas_f8f864366eb6468f8f795996458e1b5d
      Build dir: /tmp/pip-install-x2idej4m/pandas_f8f864366eb6468f8f795996458e1b5d/.mesonpy-qvpvvtaj/build
      Build type: native build
      Project name: pandas
      Project version: 2.1.3
      C compiler for the host machine: cc (gcc 12.2.0 "cc (Debian 12.2.0-14) 12.2.0")
      C linker for the host machine: cc ld.bfd 2.40
      C++ compiler for the host machine: c++ (gcc 12.2.0 "c++ (Debian 12.2.0-14) 12.2.0")
      C++ linker for the host machine: c++ ld.bfd 2.40
      Cython compiler for the host machine: cython (cython 0.29.37)
      Host machine cpu family: aarch64
      Host machine cpu: aarch64
      Program python found: YES (/usr/local/bin/python3.13)
      Found pkg-config: /usr/bin/pkg-config (1.8.1)
      Run-time dependency python found: YES 3.13
      Build targets in project: 53
      
      pandas 2.1.3
      
        User defined options
          Native files: /tmp/pip-install-x2idej4m/pandas_f8f864366eb6468f8f795996458e1b5d/.mesonpy-qvpvvtaj/build/meson-python-native-file.ini
          buildtype   : release
          vsenv       : True
          b_ndebug    : if-release
          b_vscrt     : md
      
      Found ninja-1.11.1.git.kitware.jobserver-1 at /tmp/pip-build-env-b0c2l942/normal/bin/ninja
      
      Visual Studio environment is needed to run Ninja. It is recommended to use Meson wrapper:
      /tmp/pip-build-env-b0c2l942/overlay/bin/meson compile -C .
      + /tmp/pip-build-env-b0c2l942/normal/bin/ninja
      [1/151] Generating pandas/_libs/hashtable_class_helper_pxi with a custom command
      [2/151] Generating pandas/_libs/algos_common_helper_pxi with a custom command
      [3/151] Generating pandas/_libs/index_class_helper_pxi with a custom command
      [4/151] Generating pandas/_libs/algos_take_helper_pxi with a custom command
      [5/151] Generating pandas/_libs/khash_primitive_helper_pxi with a custom command
      [6/151] Generating pandas/_libs/hashtable_func_helper_pxi with a custom command
      [7/151] Generating pandas/_libs/intervaltree_helper_pxi with a custom command
      [8/151] Generating pandas/__init__.py with a custom command
      [9/151] Generating pandas/_libs/sparse_op_helper_pxi with a custom command
      [10/151] Compiling Cython source /tmp/pip-install-x2idej4m/pandas_f8f864366eb6468f8f795996458e1b5d/pandas/_libs/tslibs/base.pyx
      [11/151] Compiling Cython source /tmp/pip-install-x2idej4m/pandas_f8f864366eb6468f8f795996458e1b5d/pandas/_libs/tslibs/ccalendar.pyx
      [12/151] Compiling C object pandas/_libs/tslibs/base.cpython-313-aarch64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_base.pyx.c.o
      FAILED: pandas/_libs/tslibs/base.cpython-313-aarch64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_base.pyx.c.o
      cc -Ipandas/_libs/tslibs/base.cpython-313-aarch64-linux-gnu.so.p -Ipandas/_libs/tslibs -I../../pandas/_libs/tslibs -I../../../../pip-build-env-b0c2l942/overlay/lib/python3.13/site-packages/numpy/core/include -I../../pandas/_libs/include -I/usr/local/include/python3.13 -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -w -std=c99 -O3 -DNPY_NO_DEPRECATED_API=0 -DNPY_TARGET_VERSION=NPY_1_21_API_VERSION -fPIC -MD -MQ pandas/_libs/tslibs/base.cpython-313-aarch64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_base.pyx.c.o -MF pandas/_libs/tslibs/base.cpython-313-aarch64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_base.pyx.c.o.d -o pandas/_libs/tslibs/base.cpython-313-aarch64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_base.pyx.c.o -c pandas/_libs/tslibs/base.cpython-313-aarch64-linux-gnu.so.p/pandas/_libs/tslibs/base.pyx.c
      pandas/_libs/tslibs/base.cpython-313-aarch64-linux-gnu.so.p/pandas/_libs/tslibs/base.pyx.c: In function ‘__Pyx_PyInt_As_long’:
      pandas/_libs/tslibs/base.cpython-313-aarch64-linux-gnu.so.p/pandas/_libs/tslibs/base.pyx.c:5397:27: error: too few arguments to function ‘_PyLong_AsByteArray’
       5397 |                 int ret = _PyLong_AsByteArray((PyLongObject *)v,
            |                           ^~~~~~~~~~~~~~~~~~~
      In file included from /usr/local/include/python3.13/longobject.h:107,
                       from /usr/local/include/python3.13/Python.h:81,
                       from pandas/_libs/tslibs/base.cpython-313-aarch64-linux-gnu.so.p/pandas/_libs/tslibs/base.pyx.c:6:
      /usr/local/include/python3.13/cpython/longobject.h:111:17: note: declared here
        111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
            |                 ^~~~~~~~~~~~~~~~~~~
      pandas/_libs/tslibs/base.cpython-313-aarch64-linux-gnu.so.p/pandas/_libs/tslibs/base.pyx.c: In function ‘__Pyx_PyInt_As_int’:
      pandas/_libs/tslibs/base.cpython-313-aarch64-linux-gnu.so.p/pandas/_libs/tslibs/base.pyx.c:5631:27: error: too few arguments to function ‘_PyLong_AsByteArray’
       5631 |                 int ret = _PyLong_AsByteArray((PyLongObject *)v,
            |                           ^~~~~~~~~~~~~~~~~~~
      /usr/local/include/python3.13/cpython/longobject.h:111:17: note: declared here
        111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
            |                 ^~~~~~~~~~~~~~~~~~~
      [13/151] Compiling C object pandas/_libs/tslibs/parsing.cpython-313-aarch64-linux-gnu.so.p/.._src_parser_tokenizer.c.o
      [14/151] Compiling C object pandas/_libs/tslibs/ccalendar.cpython-313-aarch64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_ccalendar.pyx.c.o
      FAILED: pandas/_libs/tslibs/ccalendar.cpython-313-aarch64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_ccalendar.pyx.c.o
      cc -Ipandas/_libs/tslibs/ccalendar.cpython-313-aarch64-linux-gnu.so.p -Ipandas/_libs/tslibs -I../../pandas/_libs/tslibs -I../../../../pip-build-env-b0c2l942/overlay/lib/python3.13/site-packages/numpy/core/include -I../../pandas/_libs/include -I/usr/local/include/python3.13 -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -w -std=c99 -O3 -DNPY_NO_DEPRECATED_API=0 -DNPY_TARGET_VERSION=NPY_1_21_API_VERSION -fPIC -MD -MQ pandas/_libs/tslibs/ccalendar.cpython-313-aarch64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_ccalendar.pyx.c.o -MF pandas/_libs/tslibs/ccalendar.cpython-313-aarch64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_ccalendar.pyx.c.o.d -o pandas/_libs/tslibs/ccalendar.cpython-313-aarch64-linux-gnu.so.p/meson-generated_pandas__libs_tslibs_ccalendar.pyx.c.o -c pandas/_libs/tslibs/ccalendar.cpython-313-aarch64-linux-gnu.so.p/pandas/_libs/tslibs/ccalendar.pyx.c
      pandas/_libs/tslibs/ccalendar.cpython-313-aarch64-linux-gnu.so.p/pandas/_libs/tslibs/ccalendar.pyx.c: In function ‘__Pyx_PyInt_As_int’:
      pandas/_libs/tslibs/ccalendar.cpython-313-aarch64-linux-gnu.so.p/pandas/_libs/tslibs/ccalendar.pyx.c:7376:27: error: too few arguments to function ‘_PyLong_AsByteArray’
       7376 |                 int ret = _PyLong_AsByteArray((PyLongObject *)v,
            |                           ^~~~~~~~~~~~~~~~~~~
      In file included from /usr/local/include/python3.13/longobject.h:107,
                       from /usr/local/include/python3.13/Python.h:81,
                       from pandas/_libs/tslibs/ccalendar.cpython-313-aarch64-linux-gnu.so.p/pandas/_libs/tslibs/ccalendar.pyx.c:6:
      /usr/local/include/python3.13/cpython/longobject.h:111:17: note: declared here
        111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
            |                 ^~~~~~~~~~~~~~~~~~~
      pandas/_libs/tslibs/ccalendar.cpython-313-aarch64-linux-gnu.so.p/pandas/_libs/tslibs/ccalendar.pyx.c: In function ‘__Pyx_PyInt_As_long’:
      pandas/_libs/tslibs/ccalendar.cpython-313-aarch64-linux-gnu.so.p/pandas/_libs/tslibs/ccalendar.pyx.c:7686:27: error: too few arguments to function ‘_PyLong_AsByteArray’
       7686 |                 int ret = _PyLong_AsByteArray((PyLongObject *)v,
            |                           ^~~~~~~~~~~~~~~~~~~
      /usr/local/include/python3.13/cpython/longobject.h:111:17: note: declared here
        111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
            |                 ^~~~~~~~~~~~~~~~~~~
      [15/151] Compiling Cython source /tmp/pip-install-x2idej4m/pandas_f8f864366eb6468f8f795996458e1b5d/pandas/_libs/tslibs/np_datetime.pyx
      [16/151] Compiling Cython source /tmp/pip-install-x2idej4m/pandas_f8f864366eb6468f8f795996458e1b5d/pandas/_libs/tslibs/dtypes.pyx
      [17/151] Compiling Cython source /tmp/pip-install-x2idej4m/pandas_f8f864366eb6468f8f795996458e1b5d/pandas/_libs/tslibs/nattype.pyx
      [18/151] Compiling Cython source /tmp/pip-install-x2idej4m/pandas_f8f864366eb6468f8f795996458e1b5d/pandas/_libs/arrays.pyx
      [19/151] Compiling Cython source /tmp/pip-install-x2idej4m/pandas_f8f864366eb6468f8f795996458e1b5d/pandas/_libs/tslibs/timezones.pyx
      [20/151] Compiling Cython source /tmp/pip-install-x2idej4m/pandas_f8f864366eb6468f8f795996458e1b5d/pandas/_libs/hashing.pyx
      [21/151] Compiling Cython source /tmp/pip-install-x2idej4m/pandas_f8f864366eb6468f8f795996458e1b5d/pandas/_libs/tslibs/vectorized.pyx
      [22/151] Compiling Cython source /tmp/pip-install-x2idej4m/pandas_f8f864366eb6468f8f795996458e1b5d/pandas/_libs/tslibs/offsets.pyx
      [23/151] Compiling Cython source /tmp/pip-install-x2idej4m/pandas_f8f864366eb6468f8f795996458e1b5d/pandas/_libs/tslibs/tzconversion.pyx
      [24/151] Compiling Cython source /tmp/pip-install-x2idej4m/pandas_f8f864366eb6468f8f795996458e1b5d/pandas/_libs/tslibs/conversion.pyx
      [25/151] Compiling Cython source /tmp/pip-install-x2idej4m/pandas_f8f864366eb6468f8f795996458e1b5d/pandas/_libs/tslibs/parsing.pyx
      [26/151] Compiling Cython source /tmp/pip-install-x2idej4m/pandas_f8f864366eb6468f8f795996458e1b5d/pandas/_libs/tslibs/fields.pyx
      [27/151] Compiling Cython source /tmp/pip-install-x2idej4m/pandas_f8f864366eb6468f8f795996458e1b5d/pandas/_libs/tslibs/strptime.pyx
      [28/151] Compiling Cython source /tmp/pip-install-x2idej4m/pandas_f8f864366eb6468f8f795996458e1b5d/pandas/_libs/tslibs/timestamps.pyx
      [29/151] Compiling Cython source /tmp/pip-install-x2idej4m/pandas_f8f864366eb6468f8f795996458e1b5d/pandas/_libs/tslibs/timedeltas.pyx
      [30/151] Compiling Cython source /tmp/pip-install-x2idej4m/pandas_f8f864366eb6468f8f795996458e1b5d/pandas/_libs/tslibs/period.pyx
      [31/151] Compiling Cython source /tmp/pip-install-x2idej4m/pandas_f8f864366eb6468f8f795996458e1b5d/pandas/_libs/hashtable.pyx
      [32/151] Compiling Cython source /tmp/pip-install-x2idej4m/pandas_f8f864366eb6468f8f795996458e1b5d/pandas/_libs/groupby.pyx
      [33/151] Compiling Cython source /tmp/pip-install-x2idej4m/pandas_f8f864366eb6468f8f795996458e1b5d/pandas/_libs/algos.pyx
      ninja: build stopped: subcommand failed.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.

[notice] A new release of pip is available: 24.3.1 -> 25.0.1
[notice] To update, run: pip install --upgrade 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions