Open ForrestPi opened 1 month ago
Same error! Have you found the compatible version of numpy?
This issue is probably caused by numpy versions >= 2.0.0 .
pip install numpy==1.22.4
And change the 6th line of makefile to:
@pip install -r requirements.txt && pip list
Then BOOST_INCLUDE_DIRS=boost_path make all
, it should work.
error occurred
~~~~~^~~ mesh/src/aabb_normals.cpp:119:37: error: cannot convert ‘PyObject’ {aka ‘_object’} to ‘const PyArrayObject’ {aka ‘const tagPyArrayObject_fields’} 119~~~~~^~~ mesh/src/aabb_normals.cpp:132:87: error: cannot convert ‘PyObject’ {aka ‘_object’} to ‘const PyArrayObject’ {aka ‘const tagPyArrayObject_fields’} 132~~~~~^~~ mesh/src/aabb_normals.cpp:133:82: error: cannot convert ‘PyObject’ {aka ‘_object’} to ‘const PyArrayObject’ {aka ‘const tagPyArrayObject_fields’} 133~~~~~^~~ mesh/src/aabb_normals.cpp:150:35: warning: narrowing conversion of ‘S’ from ‘size_t’ {aka ‘long unsigned int’} to ‘npy_intp’ {aka ‘long int’} [-Wnarrowing] 150~~In file included from /tmp/pip-build-env-4ggzg8lx/normal/lib/python3.10/site-packages/numpy/_core/include/numpy/ndarrayobject.h:12, from /tmp/pip-build-env-4ggzg8lx/normal/lib/python3.10/site-packages/numpy/_core/include/numpy/arrayobject.h:5, from mesh/src/aabb_normals.cpp:4: /tmp/pip-build-env-4ggzg8lx/normal/lib/python3.10/site-packages/numpy/_core/include/numpy/ndarraytypes.h:1508:35: note: initializing argument 1 of ‘void PyArray_DATA(const PyArrayObject)’ 1508 | PyArray_DATA(const PyArrayObject arr) |
~~~~~^~~ mesh/src/aabb_normals.cpp:157:36: warning: narrowing conversion of ‘S’ from ‘size_t’ {aka ‘long unsigned int’} to ‘npy_intp’ {aka ‘long int’} [-Wnarrowing] 157 | npy_intp result2_dims[] = {S, 3}; | ^ mesh/src/aabb_normals.cpp:159:71: error: cannot convert ‘PyObject’ {aka ‘_object’} to ‘const PyArrayObject’ {aka ‘const tagPyArrayObject_fields*’}`which version numpy should work?