Skip to content

Build error with numpy 1.19.0 #202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ozon2 opened this issue Jul 6, 2020 · 3 comments
Closed

Build error with numpy 1.19.0 #202

ozon2 opened this issue Jul 6, 2020 · 3 comments

Comments

@ozon2
Copy link

ozon2 commented Jul 6, 2020

Hello, there is an error compiling eigenpy on Arch Linux with numpy 1.19.0.

/home/ozon/.cache/yay/eigenpy/src/eigenpy-2.4.0/include/eigenpy/ufunc.hpp:149:5: erreur: pas de correspondance pour convertir la fonction « binary_op_greater_equal » vers le type « PyUFuncGenericFunction » {aka « void (*)(char**, const long int*, const long int*, void*) »}
  149 |     EIGENPY_REGISTER_BINARY_UFUNC(greater_equal,code,Scalar,Scalar,bool);
      |     ^
/home/ozon/.cache/yay/eigenpy/src/eigenpy-2.4.0/include/eigenpy/ufunc.hpp:48:5: note: les candidats sont : « template<class T> void eigenpy::internal::binary_op_greater_equal(char**, npy_intp*, npy_intp*, void*) »
   48 |     EIGENPY_REGISTER_BINARY_OPERATOR(greater_equal,>=)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ozon/.cache/yay/eigenpy/src/eigenpy-2.4.0/include/eigenpy/ufunc.hpp:48:5: note:                      « template<class T1, class T2, class R> void eigenpy::internal::binary_op_greater_equal(char**, npy_intp*, npy_intp*, void*) »
   48 |     EIGENPY_REGISTER_BINARY_OPERATOR(greater_equal,>=)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ozon/.cache/yay/eigenpy/src/eigenpy-2.4.0/include/eigenpy/ufunc.hpp:150:5: erreur: pas de correspondance pour convertir la fonction « binary_op_less_equal » vers le type « PyUFuncGenericFunction » {aka « void (*)(char**, const long int*, const long int*, void*) »}
  150 |     EIGENPY_REGISTER_BINARY_UFUNC(less_equal,code,Scalar,Scalar,bool);
      |     ^
/home/ozon/.cache/yay/eigenpy/src/eigenpy-2.4.0/include/eigenpy/ufunc.hpp:47:5: note: les candidats sont : « template<class T> void eigenpy::internal::binary_op_less_equal(char**, npy_intp*, npy_intp*, void*) »
   47 |     EIGENPY_REGISTER_BINARY_OPERATOR(less_equal,<=)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ozon/.cache/yay/eigenpy/src/eigenpy-2.4.0/include/eigenpy/ufunc.hpp:47:5: note:                      « template<class T1, class T2, class R> void eigenpy::internal::binary_op_less_equal(char**, npy_intp*, npy_intp*, void*) »
   47 |     EIGENPY_REGISTER_BINARY_OPERATOR(less_equal,<=)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ozon/.cache/yay/eigenpy/src/eigenpy-2.4.0/include/eigenpy/ufunc.hpp:153:5: erreur: pas de correspondance pour convertir la fonction « unary_op_negative » vers le type « PyUFuncGenericFunction » {aka « void (*)(char**, const long int*, const long int*, void*) »}
  153 |     EIGENPY_REGISTER_UNARY_UFUNC(negative,code,Scalar,Scalar);
      |     ^
/home/ozon/.cache/yay/eigenpy/src/eigenpy-2.4.0/include/eigenpy/ufunc.hpp:73:5: note: les candidats sont : « template<class T> void eigenpy::internal::unary_op_negative(char**, npy_intp*, npy_intp*, void*) »
   73 |     EIGENPY_REGISTER_UNARY_OPERATOR(negative,-)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ozon/.cache/yay/eigenpy/src/eigenpy-2.4.0/include/eigenpy/ufunc.hpp:73:5: note:                      « template<class T, class R> void eigenpy::internal::unary_op_negative(char**, npy_intp*, npy_intp*, void*) »
   73 |     EIGENPY_REGISTER_UNARY_OPERATOR(negative,-)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [unittest/CMakeFiles/user_type.dir/build.make:86 : unittest/CMakeFiles/user_type.dir/user_type.cpp.o] Erreur 1
make[2] : on quitte le répertoire « /home/ozon/.cache/yay/eigenpy/src/eigenpy-2.4.0 »
make[1]: *** [CMakeFiles/Makefile2:1442 : unittest/CMakeFiles/user_type.dir/all] Erreur 2
make[1] : on quitte le répertoire « /home/ozon/.cache/yay/eigenpy/src/eigenpy-2.4.0 »
make: *** [Makefile:164 : all] Erreur 2
==> ERREUR : Une erreur s’est produite dans build().

This error probably comes from numpy/numpy#15355.
pip install 'numpy<1.19.0' fixes the issue.

@nim65s
Copy link
Contributor

nim65s commented Jul 6, 2020

Thanks for the report ! I think this can be a relatively low priority, as the workaround is trivial, but the fix seems really easy too: tensorflow/tensorflow#40728

@jcarpent
Copy link
Contributor

Thanks a lot @ozon2 for raising this issue. I've proposed a fix here #203. I will proceed to a new release afterwards.

@jcarpent
Copy link
Contributor

Solved by #203.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants