Cannot build from Git due to outdated numpy
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- numpy, python
- Ambito
- build-system
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
(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.
- Lingua principale
- Python
- Stelle
- 44
- Fork
- 52
- Merge medio
- 3g 16h
- PR unite (30g)
- 5
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ProvableHQ/python-sdk
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 65/100
ProvableHQ/python-sdk#48 ·
-
Research of efficient MNIST feature transformations, research zkML-friendly ML models for it, implement in transpiler and examplesForse di nuovo libera @kpandl l’ha presa 1169 giorni fa e non c’è nessuna pull request aperta. Aperta
ProvableHQ/python-sdk#10 · 3 commenti · 1 assegnatario ·
Tutte le issue di ProvableHQ/python-sdk
Issue simili
-
review-panel severity:low
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
kristovatlas/coin-accounting#576 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 78/100
anthropics/skills#2328 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
repo-harnesses: the entrypoint-guard check greps a message `#13692` reworded, so it fails on mainAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
daniel-ospina/tortoise#14947 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100