ntnu-arl / ORACLE

(Visually-attentive) Uncertainty-aware navigation method using deep neural networks
BSD 3-Clause "New" or "Revised" License
66 stars 5 forks source link

error: return-statement with a value, in function returning 'void' #2

Closed guglielmo610 closed 8 months ago

guglielmo610 commented 8 months ago

Hello, setting up the environment, I got this problem with numpy_eigen package:

In file included from /usr/include/x86_64-linux-gnu/bits/types/stack_t.h:23:0, from /usr/include/signal.h:303, from /home/dgguglielmo/.local/lib/python3.8/site-packages/numpy/core/include/numpy/npy_interrupt.h:23, from /home/dgguglielmo/.local/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:6, from /home/dgguglielmo/norv_ws/src/mapping/numpy_eigen/include/numpy_eigen/NumpyEigenConverter.hpp:28, from /home/dgguglielmo/norv_ws/src/mapping/numpy_eigen/src/autogen_module/numpy_eigen_export_module.cpp:2: /home/dgguglielmo/norv_ws/src/mapping/numpy_eigen/src/autogen_module/numpy_eigen_export_module.cpp: In function ‘void init_module_libnumpy_eigen()’: /home/dgguglielmo/.local/lib/python3.8/site-packages/numpy/core/include/numpy/__multiarray_api.h:1553:151: error: return-statement with a value, in function returning 'void' [-fpermissive]

define import_array() {if (_import_array() < 0) {PyErr_Print(); PyErr_SetString(PyExc_ImportError, "numpy.core.multiarray failed to import"); return NULL; } }

Screenshot from 2024-02-01 15-02-37

Have you ever faced this error? Seems that the error occurs in the init_module_libnumpy_eigen() function, where a return statement with a value is encountered in a function returning void. Also, is there a specific version of protobuf to use? Thank you