You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The build step of pyadolc, i.e. running python setup.py build
fails when version 1.65 of boost is installed on the system. The first error message thrown is:
gcc: adolc/src/py_adolc.cpp
In file included from adolc/src/py_adolc.hpp:5:0,
from adolc/src/py_adolc.cpp:3:
adolc/src/num_util.h:32:18: error: ‘numeric’ in namespace ‘boost::python’ does not name a type
boost::python::numeric::array makeNum(boost::python::object x);
^~~~~~~
followed by many similar error messages related to the boost::python::numeric namespace.
The boost::python::numeric API has been removed, as it is being obsoleted by boost::python::numpy.
In other words I think the solution may be to change all references to the old namespace to the new numpy namespace. I'm going to try this out and, if it works, submit a pull request.
The text was updated successfully, but these errors were encountered:
paulrozdeba
changed the title
pyadolc will not build with boost 1.65 ("obsoleted" boost:python::numeric API)
pyadolc will not build with boost 1.65 ("obsoleted" boost::python::numeric API)
Oct 19, 2017
After changing references to boost::python::numeric to boost::python::numpy, and also taking the error message in my previous comment into account, I think the problem is more complicated. There is some issue with the numpy array dtype being fed to makeNum (scattered throughout num_util.h and num_util.cpp), I'm just not exactly sure what's going on at the moment.
Brad Bell might have solved a similar problem for pycppad. I recommend looking at the pycppad build process, before attempting to adapt pyadolc to boost >= 1.65.1.
I don't have time to do it myself but can offer to test and merge a PR.
The build step of pyadolc, i.e. running
python setup.py build
fails when version 1.65 of boost is installed on the system. The first error message thrown is:
followed by many similar error messages related to the boost::python::numeric namespace.
According to the boost 1.65.1 release notes:
In other words I think the solution may be to change all references to the old namespace to the new numpy namespace. I'm going to try this out and, if it works, submit a pull request.
The text was updated successfully, but these errors were encountered: