python-sdk icon indicating copy to clipboard operation
python-sdk copied to clipboard

Cannot build from Git due to outdated numpy

Open clin1234 opened this issue 4 months ago • 0 comments

(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.

clin1234 avatar Sep 25 '25 22:09 clin1234