generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
Hello,
I could not run the package using Python 3.13 as I get the following error message on pip install fmeval
Collecting markdown (from fmeval)
Using cached Markdown-3.7-py3-none-any.whl.metadata (7.0 kB)
Collecting matplotlib<4.0.0,>=3.8.3 (from fmeval)
Using cached matplotlib-3.10.0-cp313-cp313-macosx_11_0_arm64.whl.metadata (11 kB)
Collecting mypy-boto3-bedrock<2.0.0,>=1.33.2 (from fmeval)
Using cached mypy_boto3_bedrock-1.35.75-py3-none-any.whl.metadata (15 kB)
Collecting nltk<4.0.0,>=3.9.0 (from fmeval)
Using cached nltk-3.9.1-py3-none-any.whl.metadata (2.9 kB)
Collecting pandas==2.1.4 (from fmeval)
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
╰─> [87 lines of output]
+ meson setup /private/var/folders/h8/6nd87j491lq207z1qntz_wjw0000gr/T/pip-install-grk6oykh/pandas_276017e43c4f49a7add11cb796cc4282 /private/var/folders/h8/6nd87j491lq207z1qntz_
The Meson build system
Version: 1.2.1
Source dir: /private/var/folders/h8/6nd87j491lq207z1qntz_wjw0000gr/T/pip-install-grk6oykh/pandas_276017e43c4f49a7add11cb796cc4282
Build dir: /private/var/folders/h8/6nd87j491lq207z1qntz_wjw0000gr/T/pip-install-grk6oykh/pandas_276017e43c4f49a7add11cb796cc4282/.mesonpy-qev8_03b/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 (/private/tmp/fmeval-test/.venv/bin/python3)
Found pkg-config: /opt/homebrew/bin/pkg-config (2.3.0)
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/h8/6nd87j491lq207z1qntz_wjw0000gr/T/pip-install-grk6oykh/pandas_276017e43c4f49a7add11cb796cc4282/.mesonpy-qev8_03b/build/meson-python-nati
buildtype : release
vsenv : True
b_ndebug : if-release
b_vscrt : md
Found ninja-1.11.1.git.kitware.jobserver-1 at /private/var/folders/h8/6nd87j491lq207z1qntz_wjw0000gr/T/pip-build-env-9rnaxq9_/normal/bin/ninja
Visual Studio environment is needed to run Ninja. It is recommended to use Meson wrapper:
/private/var/folders/h8/6nd87j491lq207z1qntz_wjw0000gr/T/pip-build-env-9rnaxq9_/overlay/bin/meson compile -C .
+ /private/var/folders/h8/6nd87j491lq207z1qntz_wjw0000gr/T/pip-build-env-9rnaxq9_/normal/bin/ninja
[1/151] Generating pandas/_libs/algos_common_helper_pxi with a custom command
[2/151] Generating pandas/_libs/khash_primitive_helper_pxi with a custom command
[3/151] Generating pandas/_libs/algos_take_helper_pxi with a custom command
[4/151] Generating pandas/_libs/index_class_helper_pxi with a custom command
[5/151] Generating pandas/_libs/sparse_op_helper_pxi with a custom command
[6/151] Generating pandas/_libs/intervaltree_helper_pxi with a custom command
[7/151] Generating pandas/_libs/hashtable_class_helper_pxi with a custom command
[8/151] Generating pandas/_libs/hashtable_func_helper_pxi with a custom command
[9/151] Generating pandas/__init__.py with a custom command
[10/151] Compiling C object pandas/_libs/tslibs/parsing.cpython-313-darwin.so.p/.._src_parser_tokenizer.c.o
[11/151] Compiling Cython source /private/var/folders/h8/6nd87j491lq207z1qntz_wjw0000gr/T/pip-install-grk6oykh/pandas_276017e43c4f49a7add11cb796cc4282/pandas/_libs/tslibs/base.p
[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-9rnaxq9_/overlay/lib/python3.13/site-packages
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);
| ^
/Users/amrsaber/.pyenv/versions/3.13.1/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);
| ^
/Users/amrsaber/.pyenv/versions/3.13.1/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/h8/6nd87j491lq207z1qntz_wjw0000gr/T/pip-install-grk6oykh/pandas_276017e43c4f49a7add11cb796cc4282/pandas/_libs/tslibs/ccalendar.pyx
[14/151] Compiling Cython source /private/var/folders/h8/6nd87j491lq207z1qntz_wjw0000gr/T/pip-install-grk6oykh/pandas_276017e43c4f49a7add11cb796cc4282/pandas/_libs/tslibs/dtypes.pyx
[15/151] Compiling Cython source /private/var/folders/h8/6nd87j491lq207z1qntz_wjw0000gr/T/pip-install-grk6oykh/pandas_276017e43c4f49a7add11cb796cc4282/pandas/_libs/tslibs/np_datetime.pyx
[16/151] Compiling Cython source /private/var/folders/h8/6nd87j491lq207z1qntz_wjw0000gr/T/pip-install-grk6oykh/pandas_276017e43c4f49a7add11cb796cc4282/pandas/_libs/tslibs/nattype.pyx
[17/151] Compiling Cython source /private/var/folders/h8/6nd87j491lq207z1qntz_wjw0000gr/T/pip-install-grk6oykh/pandas_276017e43c4f49a7add11cb796cc4282/pandas/_libs/tslibs/fields.pyx
[18/151] Compiling Cython source /private/var/folders/h8/6nd87j491lq207z1qntz_wjw0000gr/T/pip-install-grk6oykh/pandas_276017e43c4f49a7add11cb796cc4282/pandas/_libs/tslibs/conversion.pyx
[19/151] Compiling Cython source /private/var/folders/h8/6nd87j491lq207z1qntz_wjw0000gr/T/pip-install-grk6oykh/pandas_276017e43c4f49a7add11cb796cc4282/pandas/_libs/tslibs/strptime.pyx
[20/151] Compiling Cython source /private/var/folders/h8/6nd87j491lq207z1qntz_wjw0000gr/T/pip-install-grk6oykh/pandas_276017e43c4f49a7add11cb796cc4282/pandas/_libs/tslibs/offsets.pyx
[21/151] Compiling Cython source /private/var/folders/h8/6nd87j491lq207z1qntz_wjw0000gr/T/pip-install-grk6oykh/pandas_276017e43c4f49a7add11cb796cc4282/pandas/_libs/tslibs/parsing.pyx
[22/151] Compiling Cython source /private/var/folders/h8/6nd87j491lq207z1qntz_wjw0000gr/T/pip-install-grk6oykh/pandas_276017e43c4f49a7add11cb796cc4282/pandas/_libs/tslibs/period.pyx
[23/151] Compiling Cython source /private/var/folders/h8/6nd87j491lq207z1qntz_wjw0000gr/T/pip-install-grk6oykh/pandas_276017e43c4f49a7add11cb796cc4282/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.
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.
I am using python version 3.13.1 on MacOS 15.2.
I tried running it with python 3.10 (since readme says fmeval is developed using 3.10) and it works. It also works with python 3.11
This took me some time to figure out, so maybe we can document that the library only works with specific versions of python until underlying problems are fixed?
mericano1 and ruperthair
Metadata
Metadata
Assignees
Labels
No labels