Building errors with ROOT 6.07: TMVA API change?
peremato opened this issue · 9 comments
Does root_numpy support ROOT 6? I have the following build error
$ pip install --user root_numpy
Collecting root-numpy
Downloading root_numpy-4.5.0.tar.gz (468kB)
100% |████████████████████████████████| 471kB 1.1MB/s
Building wheels for collected packages: root-numpy
Running setup.py bdist_wheel for root-numpy ... error
Complete output from command /cvmfs/sft.cern.ch/lcg/views/LCG_84swan3/x86_64-slc6-gcc49-opt/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-sqAH0v/root-numpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmp28JQ7Apip-wheel- --python-tag cp27:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/root_numpy
copying root_numpy/_matrix.py -> build/lib.linux-x86_64-2.7/root_numpy
copying root_numpy/_evaluate.py -> build/lib.linux-x86_64-2.7/root_numpy
copying root_numpy/_array.py -> build/lib.linux-x86_64-2.7/root_numpy
copying root_numpy/info.py -> build/lib.linux-x86_64-2.7/root_numpy
copying root_numpy/setup_utils.py -> build/lib.linux-x86_64-2.7/root_numpy
copying root_numpy/__init__.py -> build/lib.linux-x86_64-2.7/root_numpy
copying root_numpy/_hist.py -> build/lib.linux-x86_64-2.7/root_numpy
copying root_numpy/_graph.py -> build/lib.linux-x86_64-2.7/root_numpy
copying root_numpy/_utils.py -> build/lib.linux-x86_64-2.7/root_numpy
copying root_numpy/_warnings.py -> build/lib.linux-x86_64-2.7/root_numpy
copying root_numpy/_tree.py -> build/lib.linux-x86_64-2.7/root_numpy
copying root_numpy/_sample.py -> build/lib.linux-x86_64-2.7/root_numpy
copying root_numpy/tests.py -> build/lib.linux-x86_64-2.7/root_numpy
creating build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/__init__.py -> build/lib.linux-x86_64-2.7/root_numpy/testdata
creating build/lib.linux-x86_64-2.7/root_numpy/extern
copying root_numpy/extern/__init__.py -> build/lib.linux-x86_64-2.7/root_numpy/extern
copying root_numpy/extern/ordereddict.py -> build/lib.linux-x86_64-2.7/root_numpy/extern
copying root_numpy/extern/six.py -> build/lib.linux-x86_64-2.7/root_numpy/extern
creating build/lib.linux-x86_64-2.7/root_numpy/tmva
copying root_numpy/tmva/_evaluate.py -> build/lib.linux-x86_64-2.7/root_numpy/tmva
copying root_numpy/tmva/_factory.py -> build/lib.linux-x86_64-2.7/root_numpy/tmva
copying root_numpy/tmva/__init__.py -> build/lib.linux-x86_64-2.7/root_numpy/tmva
copying root_numpy/tmva/tests.py -> build/lib.linux-x86_64-2.7/root_numpy/tmva
copying root_numpy/testdata/vary1.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/single1.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/fixed2.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/object1.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/single2.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/vector.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/trees.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/directories.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/string.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/fixed1.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/test.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/object2.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/ntuple.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/vary2.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/struct.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
running build_ext
building 'root_numpy._librootnumpy' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/root_numpy
creating build/temp.linux-x86_64-2.7/root_numpy/src
/cvmfs/sft.cern.ch/lcg/contrib/gcc/4.9.3/x86_64-slc6-gcc49-opt/bin/gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/cvmfs/sft.cern.ch/lcg/views/LCG_84swan3/x86_64-slc6-gcc49-opt/lib/python2.7/site-packages/numpy/core/include -Iroot_numpy/src -I/cvmfs/sft.cern.ch/lcg/releases/Python/2.7.10-8dd46/x86_64-slc6-gcc49-opt/include/python2.7 -c root_numpy/src/_librootnumpy.cpp -o build/temp.linux-x86_64-2.7/root_numpy/src/_librootnumpy.o -pthread -std=c++11 -Wno-deprecated-declarations -m64 -I/cvmfs/sft.cern.ch/lcg/releases/ROOT/v6-07-07-aliceml-e576f/x86_64-slc6-gcc49-opt/include -Wno-unused-function -Wno-write-strings
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /cvmfs/sft.cern.ch/lcg/views/LCG_84swan3/x86_64-slc6-gcc49-opt/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1804:0,
from /cvmfs/sft.cern.ch/lcg/views/LCG_84swan3/x86_64-slc6-gcc49-opt/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
from /cvmfs/sft.cern.ch/lcg/views/LCG_84swan3/x86_64-slc6-gcc49-opt/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from root_numpy/src/_librootnumpy.cpp:275:
/cvmfs/sft.cern.ch/lcg/views/LCG_84swan3/x86_64-slc6-gcc49-opt/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^
/cvmfs/sft.cern.ch/lcg/contrib/gcc/4.9.3/x86_64-slc6-gcc49-opt/bin/g++ -pthread -shared -Wl,-rpath,$ORIGIN/../lib build/temp.linux-x86_64-2.7/root_numpy/src/_librootnumpy.o -L/cvmfs/sft.cern.ch/lcg/releases/Python/2.7.10-8dd46/x86_64-slc6-gcc49-opt/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/root_numpy/_librootnumpy.so -L/cvmfs/sft.cern.ch/lcg/releases/ROOT/v6-07-07-aliceml-e576f/x86_64-slc6-gcc49-opt/lib -lCore -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lMultiProc -pthread -lm -ldl -rdynamic -lTreePlayer
building 'root_numpy.tmva._libtmvanumpy' extension
creating build/temp.linux-x86_64-2.7/root_numpy/tmva
creating build/temp.linux-x86_64-2.7/root_numpy/tmva/src
/cvmfs/sft.cern.ch/lcg/contrib/gcc/4.9.3/x86_64-slc6-gcc49-opt/bin/gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/cvmfs/sft.cern.ch/lcg/views/LCG_84swan3/x86_64-slc6-gcc49-opt/lib/python2.7/site-packages/numpy/core/include -Iroot_numpy/src -Iroot_numpy/tmva/src -I/cvmfs/sft.cern.ch/lcg/releases/Python/2.7.10-8dd46/x86_64-slc6-gcc49-opt/include/python2.7 -c root_numpy/tmva/src/_libtmvanumpy.cpp -o build/temp.linux-x86_64-2.7/root_numpy/tmva/src/_libtmvanumpy.o -pthread -std=c++11 -Wno-deprecated-declarations -m64 -I/cvmfs/sft.cern.ch/lcg/releases/ROOT/v6-07-07-aliceml-e576f/x86_64-slc6-gcc49-opt/include -Wno-unused-function -Wno-write-strings
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /cvmfs/sft.cern.ch/lcg/views/LCG_84swan3/x86_64-slc6-gcc49-opt/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1804:0,
from /cvmfs/sft.cern.ch/lcg/views/LCG_84swan3/x86_64-slc6-gcc49-opt/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
from /cvmfs/sft.cern.ch/lcg/views/LCG_84swan3/x86_64-slc6-gcc49-opt/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from root_numpy/tmva/src/_libtmvanumpy.cpp:275:
/cvmfs/sft.cern.ch/lcg/views/LCG_84swan3/x86_64-slc6-gcc49-opt/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^
root_numpy/tmva/src/factory.pyx: In function ‘PyObject* __pyx_pf_13_libtmvanumpy_factory_add_events_twoclass(PyObject*, PyObject*, PyArrayObject*, PyArrayObject*, int, PyArrayObject*, bool)’:
root_numpy/tmva/src/factory.pyx:28:25: error: ‘class TMVA::Factory’ has no member named ‘AddEvent’
_factory.AddEvent("Signal", treetype, event[0], weight)
^
root_numpy/tmva/src/factory.pyx:30:25: error: ‘class TMVA::Factory’ has no member named ‘AddEvent’
_factory.AddEvent("Background", treetype, event[0], weight)
^
root_numpy/tmva/src/factory.pyx: In function ‘PyObject* __pyx_pf_13_libtmvanumpy_2factory_add_events_multiclass(PyObject*, PyObject*, PyArrayObject*, PyArrayObject*, PyArrayObject*, bool)’:
root_numpy/tmva/src/factory.pyx:58:23: error: ‘class TMVA::Factory’ has no member named ‘AddEvent’
_factory.AddEvent("Class_{0:d}".format(label), treetype, event[0], weight)
^
root_numpy/tmva/src/factory.pyx: In function ‘PyObject* __pyx_pf_13_libtmvanumpy_4factory_add_events_regression(PyObject*, PyObject*, PyArrayObject*, PyArrayObject*, PyArrayObject*, bool)’:
root_numpy/tmva/src/factory.pyx:87:23: error: ‘class TMVA::Factory’ has no member named ‘AddEvent’
_factory.AddEvent("Regression", treetype, event[0], weight)
^
error: command '/cvmfs/sft.cern.ch/lcg/contrib/gcc/4.9.3/x86_64-slc6-gcc49-opt/bin/gcc' failed with exit status 1
----------------------------------------
Failed building wheel for root-numpy
Running setup.py clean for root-numpy
Failed to build root-numpy
Installing collected packages: root-numpy
Running setup.py install for root-numpy ... error
Complete output from command /cvmfs/sft.cern.ch/lcg/views/LCG_84swan3/x86_64-slc6-gcc49-opt/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-sqAH0v/root-numpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-IjstdS-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
_
_ __ ___ ___ | |_ _ __ _ _ _ __ ___ _ __ _ _
| '__/ _ \ / _ \| __| | '_ \| | | | '_ ` _ \| '_ \| | | |
| | | (_) | (_) | |_ | | | | |_| | | | | | | |_) | |_| |
|_| \___/ \___/ \__|___|_| |_|\__,_|_| |_| |_| .__/ \__, | 4.5.0
|_____| |_| |___/
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/root_numpy
copying root_numpy/_matrix.py -> build/lib.linux-x86_64-2.7/root_numpy
copying root_numpy/_evaluate.py -> build/lib.linux-x86_64-2.7/root_numpy
copying root_numpy/_array.py -> build/lib.linux-x86_64-2.7/root_numpy
copying root_numpy/info.py -> build/lib.linux-x86_64-2.7/root_numpy
copying root_numpy/setup_utils.py -> build/lib.linux-x86_64-2.7/root_numpy
copying root_numpy/__init__.py -> build/lib.linux-x86_64-2.7/root_numpy
copying root_numpy/_hist.py -> build/lib.linux-x86_64-2.7/root_numpy
copying root_numpy/_graph.py -> build/lib.linux-x86_64-2.7/root_numpy
copying root_numpy/_utils.py -> build/lib.linux-x86_64-2.7/root_numpy
copying root_numpy/_warnings.py -> build/lib.linux-x86_64-2.7/root_numpy
copying root_numpy/_tree.py -> build/lib.linux-x86_64-2.7/root_numpy
copying root_numpy/_sample.py -> build/lib.linux-x86_64-2.7/root_numpy
copying root_numpy/tests.py -> build/lib.linux-x86_64-2.7/root_numpy
creating build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/__init__.py -> build/lib.linux-x86_64-2.7/root_numpy/testdata
creating build/lib.linux-x86_64-2.7/root_numpy/extern
copying root_numpy/extern/__init__.py -> build/lib.linux-x86_64-2.7/root_numpy/extern
copying root_numpy/extern/ordereddict.py -> build/lib.linux-x86_64-2.7/root_numpy/extern
copying root_numpy/extern/six.py -> build/lib.linux-x86_64-2.7/root_numpy/extern
creating build/lib.linux-x86_64-2.7/root_numpy/tmva
copying root_numpy/tmva/_evaluate.py -> build/lib.linux-x86_64-2.7/root_numpy/tmva
copying root_numpy/tmva/_factory.py -> build/lib.linux-x86_64-2.7/root_numpy/tmva
copying root_numpy/tmva/__init__.py -> build/lib.linux-x86_64-2.7/root_numpy/tmva
copying root_numpy/tmva/tests.py -> build/lib.linux-x86_64-2.7/root_numpy/tmva
copying root_numpy/testdata/vary1.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/single1.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/fixed2.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/object1.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/single2.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/vector.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/trees.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/directories.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/string.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/fixed1.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/test.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/object2.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/ntuple.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/vary2.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/testdata/struct.root -> build/lib.linux-x86_64-2.7/root_numpy/testdata
copying root_numpy/config.json -> build/lib.linux-x86_64-2.7/root_numpy
running build_ext
building 'root_numpy._librootnumpy' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/root_numpy
creating build/temp.linux-x86_64-2.7/root_numpy/src
/cvmfs/sft.cern.ch/lcg/contrib/gcc/4.9.3/x86_64-slc6-gcc49-opt/bin/gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/cvmfs/sft.cern.ch/lcg/views/LCG_84swan3/x86_64-slc6-gcc49-opt/lib/python2.7/site-packages/numpy/core/include -Iroot_numpy/src -I/cvmfs/sft.cern.ch/lcg/releases/Python/2.7.10-8dd46/x86_64-slc6-gcc49-opt/include/python2.7 -c root_numpy/src/_librootnumpy.cpp -o build/temp.linux-x86_64-2.7/root_numpy/src/_librootnumpy.o -pthread -std=c++11 -Wno-deprecated-declarations -m64 -I/cvmfs/sft.cern.ch/lcg/releases/ROOT/v6-07-07-aliceml-e576f/x86_64-slc6-gcc49-opt/include -Wno-unused-function -Wno-write-strings
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /cvmfs/sft.cern.ch/lcg/views/LCG_84swan3/x86_64-slc6-gcc49-opt/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1804:0,
from /cvmfs/sft.cern.ch/lcg/views/LCG_84swan3/x86_64-slc6-gcc49-opt/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
from /cvmfs/sft.cern.ch/lcg/views/LCG_84swan3/x86_64-slc6-gcc49-opt/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from root_numpy/src/_librootnumpy.cpp:275:
/cvmfs/sft.cern.ch/lcg/views/LCG_84swan3/x86_64-slc6-gcc49-opt/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^
/cvmfs/sft.cern.ch/lcg/contrib/gcc/4.9.3/x86_64-slc6-gcc49-opt/bin/g++ -pthread -shared -Wl,-rpath,$ORIGIN/../lib build/temp.linux-x86_64-2.7/root_numpy/src/_librootnumpy.o -L/cvmfs/sft.cern.ch/lcg/releases/Python/2.7.10-8dd46/x86_64-slc6-gcc49-opt/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/root_numpy/_librootnumpy.so -L/cvmfs/sft.cern.ch/lcg/releases/ROOT/v6-07-07-aliceml-e576f/x86_64-slc6-gcc49-opt/lib -lCore -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lMultiProc -pthread -lm -ldl -rdynamic -lTreePlayer
building 'root_numpy.tmva._libtmvanumpy' extension
creating build/temp.linux-x86_64-2.7/root_numpy/tmva
creating build/temp.linux-x86_64-2.7/root_numpy/tmva/src
/cvmfs/sft.cern.ch/lcg/contrib/gcc/4.9.3/x86_64-slc6-gcc49-opt/bin/gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/cvmfs/sft.cern.ch/lcg/views/LCG_84swan3/x86_64-slc6-gcc49-opt/lib/python2.7/site-packages/numpy/core/include -Iroot_numpy/src -Iroot_numpy/tmva/src -I/cvmfs/sft.cern.ch/lcg/releases/Python/2.7.10-8dd46/x86_64-slc6-gcc49-opt/include/python2.7 -c root_numpy/tmva/src/_libtmvanumpy.cpp -o build/temp.linux-x86_64-2.7/root_numpy/tmva/src/_libtmvanumpy.o -pthread -std=c++11 -Wno-deprecated-declarations -m64 -I/cvmfs/sft.cern.ch/lcg/releases/ROOT/v6-07-07-aliceml-e576f/x86_64-slc6-gcc49-opt/include -Wno-unused-function -Wno-write-strings
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /cvmfs/sft.cern.ch/lcg/views/LCG_84swan3/x86_64-slc6-gcc49-opt/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1804:0,
from /cvmfs/sft.cern.ch/lcg/views/LCG_84swan3/x86_64-slc6-gcc49-opt/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
from /cvmfs/sft.cern.ch/lcg/views/LCG_84swan3/x86_64-slc6-gcc49-opt/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from root_numpy/tmva/src/_libtmvanumpy.cpp:275:
/cvmfs/sft.cern.ch/lcg/views/LCG_84swan3/x86_64-slc6-gcc49-opt/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^
root_numpy/tmva/src/factory.pyx: In function ‘PyObject* __pyx_pf_13_libtmvanumpy_factory_add_events_twoclass(PyObject*, PyObject*, PyArrayObject*, PyArrayObject*, int, PyArrayObject*, bool)’:
root_numpy/tmva/src/factory.pyx:28:25: error: ‘class TMVA::Factory’ has no member named ‘AddEvent’
_factory.AddEvent("Signal", treetype, event[0], weight)
^
root_numpy/tmva/src/factory.pyx:30:25: error: ‘class TMVA::Factory’ has no member named ‘AddEvent’
_factory.AddEvent("Background", treetype, event[0], weight)
^
root_numpy/tmva/src/factory.pyx: In function ‘PyObject* __pyx_pf_13_libtmvanumpy_2factory_add_events_multiclass(PyObject*, PyObject*, PyArrayObject*, PyArrayObject*, PyArrayObject*, bool)’:
root_numpy/tmva/src/factory.pyx:58:23: error: ‘class TMVA::Factory’ has no member named ‘AddEvent’
_factory.AddEvent("Class_{0:d}".format(label), treetype, event[0], weight)
^
root_numpy/tmva/src/factory.pyx: In function ‘PyObject* __pyx_pf_13_libtmvanumpy_4factory_add_events_regression(PyObject*, PyObject*, PyArrayObject*, PyArrayObject*, PyArrayObject*, bool)’:
root_numpy/tmva/src/factory.pyx:87:23: error: ‘class TMVA::Factory’ has no member named ‘AddEvent’
_factory.AddEvent("Regression", treetype, event[0], weight)
^
error: command '/cvmfs/sft.cern.ch/lcg/contrib/gcc/4.9.3/x86_64-slc6-gcc49-opt/bin/gcc' failed with exit status 1
----------------------------------------
Command "/cvmfs/sft.cern.ch/lcg/views/LCG_84swan3/x86_64-slc6-gcc49-opt/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-sqAH0v/root-numpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-IjstdS-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-sqAH0v/root-numpy/
You are using pip version 8.1.1, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Yes, it supports ROOT 5 and 6, and python 2 and 3. We have all of this in our CI build matrix. I'll have a look.
This appears to be a TMVA API change in ROOT 6.07?
Yikes. They removed AddEvent?
All is fine in 6.06/02
OK, I understand now. We need to adapt root_numpy to handle their new DataLoader interface. This should be easy. For now, I'm going to release again with a flag to optionally disable building the TMVA interface.
For now, try this:
NOTMVA=1 pip install --upgrade --user root_numpy
I also noted this in the docs:
http://rootpy.github.io/root_numpy/reference/index.html#root-numpy-tmva
Feel free to reopen this issue if needed.
Great! Thanks very much.
I will need to develop on a machine with older GCC:
/home/endw/software/ROOT/root/interpreter/cling/lib/Interpreter/CIFactory.cpp:530:4: error: #error "cling does not support the GCC 5 ABI yet."
# error "cling does not support the GCC 5 ABI yet."
^
/home/endw/software/ROOT/root/interpreter/cling/lib/Interpreter/CIFactory.cpp:531:4: error: #error "See https://sft.its.cern.ch/jira/browse/ROOT-7947"
# error "See https://sft.its.cern.ch/jira/browse/ROOT-7947"
^
You can use a new GCC but with the old ABI for the time being. See for example https://root.cern.ch/phpBB3/viewtopic.php?f=3&t=21803
We are working hard to overcome this problem with an upgrade of the llvm/clang.