[Python] How can I install profiles-rudderstack on my Macbook pro? Pandas errors causing issues

Discussão em 'Python' iniciado por Stack, Março 27, 2025.

  1. Stack

    Stack Membro Participativo

    Currently running python 3.13 and have tried 3.11 with the same error and result.

    Running Sequioa 15.3.2 Apple M4 Pro chip.

    I am trying to install profiles-rudderstack so I can use terminal commands and recieve the following eror. The complete output is here.

    Collecting profiles-rudderstack
    Using cached profiles_rudderstack-0.21.5-py3-none-any.whl.metadata (2.7 kB)
    Collecting grpcio>=1.60.0 (from profiles-rudderstack)
    Using cached grpcio-1.71.0-cp313-cp313-macosx_10_14_universal2.whl.metadata (3.8 kB)
    Collecting grpc-interceptor>=0.15.4 (from profiles-rudderstack)
    Using cached grpc_interceptor-0.15.4-py3-none-any.whl.metadata (8.4 kB)
    Collecting protobuf<=6.30.1,>=5.27.0 (from profiles-rudderstack)
    Using cached protobuf-6.30.1-cp39-abi3-macosx_10_9_universal2.whl.metadata (593 bytes)
    Collecting pandas<2.2.0,>=1.3.0 (from profiles-rudderstack)
    Using cached pandas-2.1.4.tar.gz (4.3 MB)
    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
    ╰─> [91 lines of output]
    + meson setup /private/var/folders/nr/xgdrtlvs1911_36vr66n_f9h0000gn/T/pip-install-2ln_q1p6/pandas_74fb95a2090b4d42b08d175b6fd8fc66 /private/var/folders/nr/xgdrtlvs1911_36vr66n_f9h0000gn/T/pip-install-2ln_q1p6/pandas_74fb95a2090b4d42b08d175b6fd8fc66/.mesonpy-pmvfyvss/build -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --vsenv --native-file=/private/var/folders/nr/xgdrtlvs1911_36vr66n_f9h0000gn/T/pip-install-2ln_q1p6/pandas_74fb95a2090b4d42b08d175b6fd8fc66/.mesonpy-pmvfyvss/build/meson-python-native-file.ini
    The Meson build system
    Version: 1.2.1
    Source dir: /private/var/folders/nr/xgdrtlvs1911_36vr66n_f9h0000gn/T/pip-install-2ln_q1p6/pandas_74fb95a2090b4d42b08d175b6fd8fc66
    Build dir: /private/var/folders/nr/xgdrtlvs1911_36vr66n_f9h0000gn/T/pip-install-2ln_q1p6/pandas_74fb95a2090b4d42b08d175b6fd8fc66/.mesonpy-pmvfyvss/build
    Build type: native build
    Project name: pandas
    Project version: 2.1.4
    C compiler for the host machine: cc (clang 16.0.0 "Apple clang version 16.0.0 (clang-1600.0.26.6)")
    C linker for the host machine: cc ld64 1115.7.3
    C++ compiler for the host machine: c++ (clang 16.0.0 "Apple clang version 16.0.0 (clang-1600.0.26.6)")
    C++ linker for the host machine: c++ ld64 1115.7.3
    Cython compiler for the host machine: cython (cython 0.29.37)
    Host machine cpu family: aarch64
    Host machine cpu: aarch64
    Program python found: YES (/Volumes/My Passport/rudderstack/ruddervenv/bin/python3.13)
    Found pkg-config: /opt/homebrew/bin/pkg-config (2.4.3)
    Run-time dependency python found: YES 3.13
    Build targets in project: 53

    pandas 2.1.4

    User defined options
    Native files: /private/var/folders/nr/xgdrtlvs1911_36vr66n_f9h0000gn/T/pip-install-2ln_q1p6/pandas_74fb95a2090b4d42b08d175b6fd8fc66/.mesonpy-pmvfyvss/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 /private/var/folders/nr/xgdrtlvs1911_36vr66n_f9h0000gn/T/pip-build-env-s3glpytr/normal/bin/ninja

    Visual Studio environment is needed to run Ninja. It is recommended to use Meson wrapper:
    /private/var/folders/nr/xgdrtlvs1911_36vr66n_f9h0000gn/T/pip-build-env-s3glpytr/overlay/bin/meson compile -C .
    + /private/var/folders/nr/xgdrtlvs1911_36vr66n_f9h0000gn/T/pip-build-env-s3glpytr/normal/bin/ninja
    [1/151] Generating pandas/_libs/khash_primitive_helper_pxi with a custom command
    [2/151] Generating pandas/_libs/index_class_helper_pxi with a custom command
    [3/151] Generating pandas/_libs/hashtable_func_helper_pxi with a custom command
    [4/151] Generating pandas/_libs/algos_take_helper_pxi with a custom command
    [5/151] Generating pandas/_libs/algos_common_helper_pxi with a custom command
    [6/151] Generating pandas/_libs/sparse_op_helper_pxi with a custom command
    [7/151] Generating pandas/_libs/intervaltree_helper_pxi with a custom command
    [8/151] Generating pandas/_libs/hashtable_class_helper_pxi with a custom command
    [9/151] Generating pandas/__init__.py with a custom command
    [10/151] Compiling Cython source /private/var/folders/nr/xgdrtlvs1911_36vr66n_f9h0000gn/T/pip-install-2ln_q1p6/pandas_74fb95a2090b4d42b08d175b6fd8fc66/pandas/_libs/tslibs/base.pyx
    [11/151] Compiling C object pandas/_libs/tslibs/parsing.cpython-313-darwin.so.p/.._src_parser_tokenizer.c.o
    [12/151] Compiling C object pandas/_libs/tslibs/base.cpython-313-darwin.so.p/meson-generated_pandas__libs_tslibs_base.pyx.c.o
    FAILED: pandas/_libs/tslibs/base.cpython-313-darwin.so.p/meson-generated_pandas__libs_tslibs_base.pyx.c.o
    cc -Ipandas/_libs/tslibs/base.cpython-313-darwin.so.p -Ipandas/_libs/tslibs -I../../pandas/_libs/tslibs -I../../../../pip-build-env-s3glpytr/overlay/lib/python3.13/site-packages/numpy/core/include -I../../pandas/_libs/include -I/Library/Frameworks/Python.framework/Versions/3.13/include/python3.13 -fvisibility=hidden -fcolor-diagnostics -DNDEBUG -w -std=c99 -O3 -DNPY_NO_DEPRECATED_API=0 -DNPY_TARGET_VERSION=NPY_1_21_API_VERSION -MD -MQ pandas/_libs/tslibs/base.cpython-313-darwin.so.p/meson-generated_pandas__libs_tslibs_base.pyx.c.o -MF pandas/_libs/tslibs/base.cpython-313-darwin.so.p/meson-generated_pandas__libs_tslibs_base.pyx.c.o.d -o pandas/_libs/tslibs/base.cpython-313-darwin.so.p/meson-generated_pandas__libs_tslibs_base.pyx.c.o -c pandas/_libs/tslibs/base.cpython-313-darwin.so.p/pandas/_libs/tslibs/base.pyx.c
    pandas/_libs/tslibs/base.cpython-313-darwin.so.p/pandas/_libs/tslibs/base.pyx.c:5399:70: error: too few arguments to function call, expected 6, have 5
    5397 | int ret = _PyLong_AsByteArray((PyLongObject *)v,
    | ~~~~~~~~~~~~~~~~~~~
    5398 | bytes, sizeof(val),
    5399 | is_little, !is_unsigned);
    | ^
    /Library/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/longobject.h:111:17: note: '_PyLong_AsByteArray' declared here
    111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
    | ^ ~~~~~~~~~~~~~~~~
    112 | unsigned char* bytes, size_t n,
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    113 | int little_endian, int is_signed, int with_exceptions);
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    pandas/_libs/tslibs/base.cpython-313-darwin.so.p/pandas/_libs/tslibs/base.pyx.c:5633:70: error: too few arguments to function call, expected 6, have 5
    5631 | int ret = _PyLong_AsByteArray((PyLongObject *)v,
    | ~~~~~~~~~~~~~~~~~~~
    5632 | bytes, sizeof(val),
    5633 | is_little, !is_unsigned);
    | ^
    /Library/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/longobject.h:111:17: note: '_PyLong_AsByteArray' declared here
    111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
    | ^ ~~~~~~~~~~~~~~~~
    112 | unsigned char* bytes, size_t n,
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    113 | int little_endian, int is_signed, int with_exceptions);
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    2 errors generated.
    [13/151] Compiling Cython source /private/var/folders/nr/xgdrtlvs1911_36vr66n_f9h0000gn/T/pip-install-2ln_q1p6/pandas_74fb95a2090b4d42b08d175b6fd8fc66/pandas/_libs/tslibs/ccalendar.pyx
    [14/151] Compiling Cython source /private/var/folders/nr/xgdrtlvs1911_36vr66n_f9h0000gn/T/pip-install-2ln_q1p6/pandas_74fb95a2090b4d42b08d175b6fd8fc66/pandas/_libs/tslibs/dtypes.pyx
    [15/151] Compiling Cython source /private/var/folders/nr/xgdrtlvs1911_36vr66n_f9h0000gn/T/pip-install-2ln_q1p6/pandas_74fb95a2090b4d42b08d175b6fd8fc66/pandas/_libs/tslibs/np_datetime.pyx
    [16/151] Compiling Cython source /private/var/folders/nr/xgdrtlvs1911_36vr66n_f9h0000gn/T/pip-install-2ln_q1p6/pandas_74fb95a2090b4d42b08d175b6fd8fc66/pandas/_libs/tslibs/nattype.pyx
    [17/151] Compiling Cython source /private/var/folders/nr/xgdrtlvs1911_36vr66n_f9h0000gn/T/pip-install-2ln_q1p6/pandas_74fb95a2090b4d42b08d175b6fd8fc66/pandas/_libs/tslibs/timezones.pyx
    [18/151] Compiling Cython source /private/var/folders/nr/xgdrtlvs1911_36vr66n_f9h0000gn/T/pip-install-2ln_q1p6/pandas_74fb95a2090b4d42b08d175b6fd8fc66/pandas/_libs/tslibs/fields.pyx
    [19/151] Compiling Cython source /private/var/folders/nr/xgdrtlvs1911_36vr66n_f9h0000gn/T/pip-install-2ln_q1p6/pandas_74fb95a2090b4d42b08d175b6fd8fc66/pandas/_libs/tslibs/conversion.pyx
    [20/151] Compiling Cython source /private/var/folders/nr/xgdrtlvs1911_36vr66n_f9h0000gn/T/pip-install-2ln_q1p6/pandas_74fb95a2090b4d42b08d175b6fd8fc66/pandas/_libs/tslibs/strptime.pyx
    [21/151] Compiling Cython source /private/var/folders/nr/xgdrtlvs1911_36vr66n_f9h0000gn/T/pip-install-2ln_q1p6/pandas_74fb95a2090b4d42b08d175b6fd8fc66/pandas/_libs/tslibs/tzconversion.pyx
    [22/151] Compiling Cython source /private/var/folders/nr/xgdrtlvs1911_36vr66n_f9h0000gn/T/pip-install-2ln_q1p6/pandas_74fb95a2090b4d42b08d175b6fd8fc66/pandas/_libs/tslibs/offsets.pyx
    [23/151] Compiling Cython source /private/var/folders/nr/xgdrtlvs1911_36vr66n_f9h0000gn/T/pip-install-2ln_q1p6/pandas_74fb95a2090b4d42b08d175b6fd8fc66/pandas/_libs/tslibs/parsing.pyx
    [24/151] Compiling Cython source /private/var/folders/nr/xgdrtlvs1911_36vr66n_f9h0000gn/T/pip-install-2ln_q1p6/pandas_74fb95a2090b4d42b08d175b6fd8fc66/pandas/_libs/tslibs/vectorized.pyx
    [25/151] Compiling Cython source /private/var/folders/nr/xgdrtlvs1911_36vr66n_f9h0000gn/T/pip-install-2ln_q1p6/pandas_74fb95a2090b4d42b08d175b6fd8fc66/pandas/_libs/tslibs/timestamps.pyx
    [26/151] Compiling Cython source /private/var/folders/nr/xgdrtlvs1911_36vr66n_f9h0000gn/T/pip-install-2ln_q1p6/pandas_74fb95a2090b4d42b08d175b6fd8fc66/pandas/_libs/tslibs/period.pyx
    [27/151] Compiling Cython source /private/var/folders/nr/xgdrtlvs1911_36vr66n_f9h0000gn/T/pip-install-2ln_q1p6/pandas_74fb95a2090b4d42b08d175b6fd8fc66/pandas/_libs/tslibs/timedeltas.pyx
    ninja: build stopped: subcommand failed.
    [end of output]

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


    I have installed an older version of python, I ran setuptools, and installed various pandas versions including binary. I am trying this in a virtual environment that is properly activated. I am able to install on my windows laptop but that isn't my dev machine for work.

    Continue reading...

Compartilhe esta Página