pwnagotchi
pwnagotchi copied to clipboard
[BUG] Debian 12 - scipy / numpy install problem
During requirements install
python -m pip install -r requirements.txt
scipy install is broken with ending error :
668 | static inline Py_ssize_t PyUnicode_GET_DATA_SIZE(PyObject *op)
| ^~~~~~~~~~~~~~~~~~~~~~~
numpy/core/src/multiarray/scalarapi.c: In function ‘PyArray_Scalar’:
numpy/core/src/multiarray/scalarapi.c:715:13: warning: ‘ob_shash’ is deprecated [-Wdeprecated-declarations]
715 | ((PyStringObject *)obj)->ob_shash = -1;
| ^
In file included from /usr/include/python3.11/bytesobject.h:62,
from /usr/include/python3.11/Python.h:50:
/usr/include/python3.11/cpython/bytesobject.h:7:35: note: declared here
7 | Py_DEPRECATED(3.11) Py_hash_t ob_shash;
| ^~~~~~~~
numpy/core/src/multiarray/scalarapi.c:801:27: error: lvalue required as left operand of assignment
801 | Py_SIZE(vobj) = itemsize;
| ^
error: Command "x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Ibuild/src.linux-x86_64-3.1/numpy/core/src/private -Inumpy/core/include -Ibuild/src.linux-x86_64-3.1/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/home/frd/.venvs/pwnagotchi/include -I/usr/include/python3.11 -Ibuild/src.linux-x86_64-3.1/numpy/core/src/private -Ibuild/src.linux-x86_64-3.1/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.1/numpy/core/src/private -Ibuild/src.linux-x86_64-3.1/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.1/numpy/core/src/private -Ibuild/src.linux-x86_64-3.1/numpy/core/src/npymath -c numpy/core/src/multiarray/scalarapi.c -o build/temp.linux-x86_64-cpython-311/numpy/core/src/multiarray/scalarapi.o -MMD -MF build/temp.linux-x86_64-cpython-311/numpy/core/src/multiarray/scalarapi.o.d" failed with exit status 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> numpy
I tried python -m pip install numpy
by nothing better.
Python 3.11.2
download the fixed image 1.5.5FIX. Won't link here just in case its not allowed but it can be found on reddit. Works right out of the box :)