Cannot build from Git due to outdated numpy
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- numpy, python
- Domain
- build-system
Research direction
Start with the zkml package's pyproject.toml dependency metadata and reproduce the reported pip install from Git on Python 3.14. Check the numpy constraint and its compatibility with the reported interpreter and build output. Done means the package installs successfully from the Git subdirectory without the metadata-generation failure.
Written by the indexing model from the issue text.
Description
(venv) cc@pretty:~$ pip install git+https://github.com/ProvableHQ/python-sdk#subdirectory=zkml
Collecting git+https://github.com/ProvableHQ/python-sdk#subdirectory=zkml
Cloning https://github.com/ProvableHQ/python-sdk to /tmp/pip-req-build-uco145yl
Running command git clone --filter=blob:none --quiet https://github.com/ProvableHQ/python-sdk /tmp/pip-req-build-uco145yl
Resolved https://github.com/ProvableHQ/python-sdk to commit 8b8a68d22dfb4c92ec352d25a8829bf2ea5cfc1c
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting numpy<2.0.0,>=1.24.3 (from zkml==0.0.2b2)
Using cached numpy-1.26.4.tar.gz (15.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [974 lines of output]
+ /home/cc/venv/bin/python3.14t /tmp/pip-install-gm055cje/numpy_2a825225e91f447b82cc64a66718cae0/vendored-meson/meson/meson.py setup /tmp/pip-install-gm055cje/numpy_2a825225e91f447b82cc64a66718cae0 /tmp/pip-install-gm055cje/numpy_2a825225e91f447b82cc64a66718cae0/.mesonpy-84zkrpbg -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/pip-install-gm055cje/numpy_2a825225e91f447b82cc64a66718cae0/.mesonpy-84zkrpbg/meson-python-native-file.ini
The Meson build system
Version: 1.2.99
Source dir: /tmp/pip-install-gm055cje/numpy_2a825225e91f447b82cc64a66718cae0
Build dir: /tmp/pip-install-gm055cje/numpy_2a825225e91f447b82cc64a66718cae0/.mesonpy-84zkrpbg
Build type: native build
Project name: NumPy
...
[349/512] Compiling C object numpy/core/_multiarray_umath.cpython-314t-x86_64-linux-gnu.so.p/src_multiarray_shape.c.o
FAILED: [code=1] numpy/core/_multiarray_umath.cpython-314t-x86_64-linux-gnu.so.p/src_multiarray_shape.c.o
sccache cc -Inumpy/core/_multiarray_umath.cpython-314t-x86_64-linux-gnu.so.p -Inumpy/core -I../numpy/core -Inumpy/core/include -I../numpy/core/include -I../numpy/core/src/common -I../numpy/core/src/multiarray -I../numpy/core/src/npymath -I../numpy/core/src/umath -I/usr/include/python3.14t -I/tmp/pip-install-gm055cje/numpy_2a825225e91f447b82cc64a66718cae0/.mesonpy-84zkrpbg/meson_cpu -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -Wall -Winvalid-pch -std=c99 -O3 -fno-strict-aliasing -msse -msse2 -msse3 -DNPY_HAVE_SSE2 -DNPY_HAVE_SSE -DNPY_HAVE_SSE3 -fPIC -DNPY_INTERNAL_BUILD -DHAVE_NPY_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -MD -MQ numpy/core/_multiarray_umath.cpython-314t-x86_64-linux-gnu.so.p/src_multiarray_shape.c.o -MF numpy/core/_multiarray_umath.cpython-314t-x86_64-linux-gnu.so.p/src_multiarray_shape.c.o.d -o numpy/core/_multiarray_umath.cpython-314t-x86_64-linux-gnu.so.p/src_multiarray_shape.c.o -c ../numpy/core/src/multiarray/shape.c
In file included from ../numpy/core/include/numpy/arrayobject.h:5,
from ../numpy/core/src/multiarray/shape.c:8:
../numpy/core/src/multiarray/shape.c: In function ‘PyArray_Resize’:
../numpy/core/include/numpy/ndarrayobject.h:102:51: error: ‘PyObject’ {aka ‘struct _object’} has no member named ‘ob_refcnt’
102 | #define PyArray_REFCOUNT(obj) (((PyObject *)(obj))->ob_refcnt)
| ^~
../numpy/core/src/multiarray/shape.c:108:22: note: in expansion of macro ‘PyArray_REFCOUNT’
108 | refcnt = PyArray_REFCOUNT(self);
| ^~~~~~~~~~~~~~~~
[350/512] Compiling C++ object numpy/core/_multiarray_umath.cpython-314t-x86_64-linux-gnu.so.p/src_npysort_radixsort.cpp.o
[351/512] Compiling C object numpy/core/_multiarray_umath.cpython-314t-x86_64-linux-gnu.so.p/src_multiarray_textreading_growth.c.o
[352/512] Compiling C++ object numpy/core/_multiarray_umath.cpython-314t-x86_64-linux-gnu.so.p/src_npysort_timsort.cpp.o
[353/512] Compiling C object numpy/core/_multiarray_umath.cpython-314t-x86_64-linux-gnu.so.p/src_multiarray_textreading_readtext.c.o
[354/512] Compiling C object numpy/core/_multiarray_umath.cpython-314t-x86_64-linux-gnu.so.p/src_multiarray_textreading_conversions.c.o
[355/512] Compiling C object numpy/core/_multiarray_umath.cpython-314t-x86_64-linux-gnu.so.p/src_multiarray_textreading_rows.c.o
[356/512] Compiling C++ object numpy/core/_multiarray_umath.cpython-314t-x86_64-linux-gnu.so.p/src_npysort_quicksort.cpp.o
[357/512] Compiling C object numpy/core/_multiarray_umath.cpython-314t-x86_64-linux-gnu.so.p/src_multiarray_textreading_stream_pyobject.c.o
[358/512] Compiling C++ object numpy/core/_multiarray_umath.cpython-314t-x86_64-linux-gnu.so.p/src_npysort_binsearch.cpp.o
[359/512] Compiling C object numpy/core/_multiarray_umath.cpython-314t-x86_64-linux-gnu.so.p/src_multiarray_textreading_str_to_int.c.o
[360/512] Compiling C++ object numpy/core/_multiarray_umath.cpython-314t-x86_64-linux-gnu.so.p/src_npysort_selection.cpp.o
[361/512] Compiling C++ object numpy/core/_multiarray_umath.cpython-314t-x86_64-linux-gnu.so.p/src_multiarray_textreading_tokenize.cpp.o
[362/512] Compiling Cython source /tmp/pip-install-gm055cje/numpy_2a825225e91f447b82cc64a66718cae0/numpy/random/_pcg64.pyx
[363/512] Compiling Cython source /tmp/pip-install-gm055cje/numpy_2a825225e91f447b82cc64a66718cae0/numpy/random/_sfc64.pyx
[364/512] Compiling Cython source /tmp/pip-install-gm055cje/numpy_2a825225e91f447b82cc64a66718cae0/numpy/random/_philox.pyx
[365/512] Compiling Cython source /tmp/pip-install-gm055cje/numpy_2a825225e91f447b82cc64a66718cae0/numpy/random/_mt19937.pyx
[366/512] Compiling Cython source /tmp/pip-install-gm055cje/numpy_2a825225e91f447b82cc64a66718cae0/numpy/random/bit_generator.pyx
[367/512] Compiling Cython source numpy/random/_bounded_integers.pyx
[368/512] Compiling Cython source /tmp/pip-install-gm055cje/numpy_2a825225e91f447b82cc64a66718cae0/numpy/random/_common.pyx
[369/512] Compiling Cython source numpy/random/mtrand.pyx
[370/512] Compiling Cython source numpy/random/_generator.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.
- Dominant language
- Python
- Stars
- 44
- Forks
- 52
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 5
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ProvableHQ/python-sdk
-
Difficulty 4/5 3-5 days Newbie friendliness 65/100
ProvableHQ/python-sdk#48 ·
-
Research of efficient MNIST feature transformations, research zkML-friendly ML models for it, implement in transpiler and examplesMay be free again @kpandl claimed this 1169 days ago, and no pull request is open. Open
ProvableHQ/python-sdk#10 · 3 comments · 1 assignee ·
All issues in ProvableHQ/python-sdk
Similar issues
-
bug: conversation context selects the oldest thread messages instead of recent repliesPossibly taken @BLVCK-MAMBA-6 claimed this today. Openbug enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
AOSSIE-Org/SkillBot#74 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
bad-antics/lateralus-lang#1438 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
area: control app
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
glossyio/traffic-monitor#415 ·
Maintainers usually reply within 1 day
-
apply_matrix_rect takes 6-9% of extract_text timePossibly taken @g4lb claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
pdfminer/pdfminer.six#1333 ·
Maintainers usually reply within 1 day