scikit-hep / root_pandas

A Python module for conveniently loading/saving ROOT files as pandas DataFrames
MIT License
109 stars 35 forks source link

to_root and read_root fail on macOS #85

Closed goi42 closed 4 years ago

goi42 commented 4 years ago

to_root fails:

In [1]: import ROOT

In [2]: rdf = ROOT.RDataFrame(10).Define('e', 'rdfentry_')

In [3]: asdict = rdf.AsNumpy()

In [4]: import pandas as pd

In [6]: df = pd.DataFrame.from_dict(asdict)

In [7]: import root_pandas as rp

In [9]: rp.to_root(df, 'temp.root', 'myTree')
/Users/michael/anaconda2/lib/python2.7/site-packages/root_numpy/_tree.py:575: UserWarning: converter for dtype('O') is not implemented (skipping)
  cobj = _librootnumpy.array2tree_toCObj(arr, name=name, tree=incobj)

 *** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[<unknown binary>] (no debug info)
[/Users/michael/anaconda2/lib/python2.7/site-packages/root_numpy/_librootnumpy.so] __pyx_f_13_librootnumpy_array2tree(tagPyArrayObject_fields*, __pyx_opt_args_13_librootnumpy_array2tree*) (no debug info)
[/Users/michael/anaconda2/lib/python2.7/site-packages/root_numpy/_librootnumpy.so] __pyx_pw_13_librootnumpy_17array2tree_toCObj(_object*, _object*, _object*) (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] function_call (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyObject_Call (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCode (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyRun_FileExFlags (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyRun_SimpleFileExFlags (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] Py_Main (no debug info)
[/usr/lib/system/libdyld.dylib] start (no debug info)

read_root fails:

In [1]: import ROOT

In [2]: rdf = ROOT.RDataFrame(10).Define('e', 'rdfentry_')

In [3]: rdf.Snapshot('myTree', 'temp.root')
Out[3]: <ROOT.ROOT::RDF::RResultPtr<ROOT::RDF::RInterface<ROOT::Detail::RDF::RLoopManager,void> > object at 0x7ff19787b5d0>

In [4]: import root_pandas as rp

In [6]: df = rp.read_root('temp.root', 'myTree')

 *** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[<unknown binary>] (no debug info)
[/Users/michael/anaconda2/lib/python2.7/site-packages/root_numpy/_librootnumpy.so] __pyx_pw_13_librootnumpy_3list_objects(_object*, _object*, _object*) (no debug info)
[/Users/michael/anaconda2/lib/python2.7/site-packages/root_numpy/_librootnumpy.so] __pyx_pw_13_librootnumpy_5list_trees(_object*, _object*) (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] function_call (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyObject_Call (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCode (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyRun_FileExFlags (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyRun_SimpleFileExFlags (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] Py_Main (no debug info)
[/usr/lib/system/libdyld.dylib] start (no debug info)

macOS 10.15.1 Python 2.7.16 IPython 5.8.0

chrisburr commented 4 years ago

What is the output of conda info? And conda list?

goi42 commented 4 years ago
$ conda info

     active environment : base
    active env location : /Users/michael/anaconda2
            shell level : 1
       user config file : /Users/michael/.condarc
 populated config files : /Users/michael/.condarc
          conda version : 4.7.12
    conda-build version : 3.18.8
         python version : 2.7.16.final.0
       virtual packages : 
       base environment : /Users/michael/anaconda2  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/osx-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/osx-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /Users/michael/anaconda2/pkgs
                          /Users/michael/.conda/pkgs
       envs directories : /Users/michael/anaconda2/envs
                          /Users/michael/.conda/envs
               platform : osx-64
             user-agent : conda/4.7.12 requests/2.22.0 CPython/2.7.16 Darwin/19.0.0 OSX/10.15.1
                UID:GID : 502:20
             netrc file : None
           offline mode : False
$ conda list
# packages in environment at /Users/michael/anaconda2:
#
# Name                    Version                   Build  Channel
_anaconda_depends         2019.03                  py27_0  
_ipyw_jlab_nb_ext_conf    0.1.0                    py27_0  
alabaster                 0.7.12                   py27_0  
anaconda                  custom                   py27_1  
anaconda-client           1.7.2                    py27_0  
anaconda-navigator        1.9.7                    py27_0  
anaconda-project          0.8.3                      py_0  
appnope                   0.1.0            py27hb466136_0  
appscript                 1.1.0            py27h1de35cc_0  
asn1crypto                1.0.1                    py27_0  
astroid                   1.6.5                    py27_0  
astropy                   2.0.9            py27h1d22016_0  
atomicwrites              1.3.0                    py27_1  
attrs                     19.2.0                     py_0  
autopep8                  1.4.4                    pypi_0    pypi
babel                     2.7.0                      py_0  
backports                 1.0                        py_2  
backports.functools_lru_cache 1.5                        py_2  
backports.os              0.1.1                    py27_0  
backports.shutil_get_terminal_size 1.0.0                    py27_2  
backports.tempfile        1.0                        py_1  
backports.weakref         1.0.post1                  py_1  
backports_abc             0.5              py27h6972548_0  
beautifulsoup4            4.8.0                    py27_0  
bitarray                  1.0.1            py27h1de35cc_0  
bkcharts                  0.2              py27haafc882_0  
blas                      1.0                         mkl  
bleach                    3.1.0                    py27_0  
blosc                     1.16.3               hd9629dc_0  
bokeh                     1.3.4                    py27_0  
boto                      2.49.0                   py27_0  
bottleneck                1.2.1            py27h1d22016_1  
bzip2                     1.0.8                h1de35cc_0  
ca-certificates           2019.8.28                     0  
cdecimal                  2.3              py27h1de35cc_3  
certifi                   2019.9.11                py27_0  
cffi                      1.12.3           py27hb5b8e2f_0  
chardet                   3.0.4                 py27_1003  
click                     7.0                      py27_0  
cloudpickle               1.2.2                      py_0  
clyent                    1.2.2                    py27_1  
colorama                  0.4.1                    py27_0  
conda                     4.7.12                   py27_0  
conda-build               3.18.8                   py27_0  
conda-env                 2.6.0                         1  
conda-package-handling    1.6.0            py27h1de35cc_0  
conda-verify              3.4.2                      py_1  
configparser              4.0.2                    py27_0  
contextlib2               0.6.0                      py_0  
cryptography              2.7              py27ha12b0ac_0  
curl                      7.65.3               ha441bb4_0  
cycler                    0.10.0           py27hfc73c78_0  
cython                    0.29.13          py27h0a44026_0  
cytoolz                   0.10.0           py27h1de35cc_0  
dask                      1.2.2                      py_0  
dask-core                 1.2.2                      py_0  
dbus                      1.13.6               h90a0687_0  
decorator                 4.4.0                    py27_1  
defusedxml                0.6.0                      py_0  
distributed               1.28.1                   py27_0  
docutils                  0.15.2                   py27_0  
entrypoints               0.3                      py27_0  
enum34                    1.1.6                    py27_1  
et_xmlfile                1.0.1            py27hc42f929_0  
expat                     2.2.6                h0a44026_0  
fastcache                 1.1.0            py27h1de35cc_0  
filelock                  3.0.12                     py_0  
flask                     1.1.1                      py_0  
freetype                  2.9.1                hb4e5f40_0  
funcsigs                  1.0.2            py27hb9f6266_0  
functools32               3.2.3.2                  py27_1  
future                    0.17.1                   py27_0  
futures                   3.3.0                    py27_0  
get_terminal_size         1.0.0                h7520d66_0  
gettext                   0.19.8.1             h15daf44_3  
gevent                    1.4.0            py27h1de35cc_0  
glib                      2.56.2               hd9629dc_0  
glob2                     0.7                        py_0  
gmp                       6.1.2                hb37e062_1  
gmpy2                     2.0.8            py27h6ef4df4_2  
greenlet                  0.4.15           py27h1de35cc_0  
grin                      1.2.1                    py27_4  
h5py                      2.9.0            py27h3134771_0  
hdf5                      1.10.4               hfa1e0ec_0  
heapdict                  1.0.1                      py_0  
html5lib                  1.0.1                    py27_0  
icu                       58.2                 h4b95b61_1  
idna                      2.8                      py27_0  
imageio                   2.6.0                    py27_0  
imagesize                 1.1.0                    py27_0  
importlib_metadata        0.23                     py27_0  
intel-openmp              2019.4                      233  
ipaddress                 1.0.22                   py27_0  
ipykernel                 4.10.0                   py27_0  
ipython                   5.8.0                    py27_0  
ipython_genutils          0.2.0            py27h8b9a179_0  
ipywidgets                7.5.1                      py_0  
isort                     4.3.21                   py27_0  
itsdangerous              1.1.0                    py27_0  
jbig                      2.1                  h4d881f8_0  
jdcal                     1.4.1                      py_0  
jedi                      0.15.1                   py27_0  
jinja2                    2.10.3                     py_0  
jpeg                      9b                   he5867d9_2  
jsonschema                3.0.2                    py27_0  
jupyter                   1.0.0                    py27_7  
jupyter_client            5.3.3                    py27_1  
jupyter_console           5.2.0                    py27_1  
jupyter_core              4.5.0                      py_0  
jupyterlab                0.33.11                  py27_0  
jupyterlab_launcher       0.11.2           py27h28b3542_0  
keyring                   18.0.0                   py27_0  
kiwisolver                1.1.0            py27h0a44026_0  
krb5                      1.16.1               hddcf347_7  
lazy-object-proxy         1.4.2            py27h1de35cc_0  
libarchive                3.3.3                h786848e_5  
libcurl                   7.65.3               h051b688_0  
libcxx                    4.0.1                hcfea43d_1  
libcxxabi                 4.0.1                hcfea43d_1  
libedit                   3.1.20181209         hb402a30_0  
libffi                    3.2.1                h475c297_4  
libgfortran               3.0.1                h93005f0_2  
libiconv                  1.15                 hdd342a3_7  
liblief                   0.9.0                h2a1bed3_2  
libpng                    1.6.37               ha441bb4_0  
libsodium                 1.0.16               h3efe00b_0  
libssh2                   1.8.2                ha12b0ac_0  
libtiff                   4.0.10               hcb84e12_2  
libxml2                   2.9.9                hf6e021a_1  
libxslt                   1.1.33               h33a18ac_0  
linecache2                1.0.0                    py27_0  
llvmlite                  0.29.0           py27h98b8051_0  
locket                    0.2.0            py27ha10513d_1  
lxml                      4.4.1            py27hef8c89e_0  
lz4-c                     1.8.1.2              h1de35cc_0  
lzo                       2.10                 h362108e_2  
markupsafe                1.1.1            py27h1de35cc_0  
matplotlib                2.2.3            py27h54f8f79_0  
mccabe                    0.6.1                    py27_1  
mistune                   0.8.4            py27h1de35cc_0  
mkl                       2019.4                      233  
mkl-service               2.3.0            py27hfbe908c_0  
mkl_fft                   1.0.14           py27h5e564d8_0  
mkl_random                1.1.0            py27ha771720_0  
mock                      3.0.5                    py27_0  
more-itertools            5.0.0                    py27_0  
mpc                       1.1.0                h6ef4df4_1  
mpfr                      4.0.1                h3018a27_3  
mpmath                    1.1.0                    py27_0  
msgpack-python            0.6.1            py27h04f5b5a_1  
multipledispatch          0.6.0                    py27_0  
navigator-updater         0.2.1                    py27_0  
nbconvert                 5.6.0                    py27_1  
nbformat                  4.4.0            py27hddc86d0_0  
ncurses                   6.1                  h0a44026_1  
networkx                  2.2                      py27_1  
nltk                      3.4.5                    py27_0  
nose                      1.3.7                    py27_2  
notebook                  5.7.8                    py27_0  
numba                     0.44.1           py27h6440ff4_0  
numexpr                   2.7.0            py27h7413580_0  
numpy                     1.16.4           py27hacdab7b_0  
numpy-base                1.16.4           py27h6575580_0  
numpydoc                  0.9.1                      py_0  
olefile                   0.46                     py27_0  
openpyxl                  2.6.2                      py_0  
openssl                   1.1.1d               h1de35cc_2  
packaging                 19.2                       py_0  
pandas                    0.24.2           py27h0a44026_0  
pandoc                    2.2.3.2                       0  
pandocfilters             1.4.2                    py27_1  
parso                     0.5.1                      py_0  
partd                     1.0.0                      py_0  
path.py                   11.5.0                   py27_0  
pathlib2                  2.3.5                    py27_0  
patsy                     0.5.1                    py27_0  
pcre                      8.43                 h0a44026_0  
pep8                      1.7.1                    py27_0  
pexpect                   4.7.0                    py27_0  
pickleshare               0.7.5                    py27_0  
pillow                    6.2.0            py27hb68e598_0  
pip                       19.2.3                   py27_0  
pkginfo                   1.5.0.1                  py27_0  
pluggy                    0.13.0                   py27_0  
ply                       3.11                     py27_0  
portaudio                 19.6.0               h41429eb_1  
progressbar               2.5                      pypi_0    pypi
prometheus_client         0.7.1                      py_0  
prompt_toolkit            1.0.15           py27h4a7b9c2_0  
psutil                    5.6.3            py27h1de35cc_0  
ptyprocess                0.6.0                    py27_0  
py                        1.8.0                    py27_0  
py-lief                   0.9.0            py27h1413db1_2  
pyaudio                   0.2.11           py27h1de35cc_1  
pycodestyle               2.5.0                    py27_0  
pycosat                   0.6.3            py27h1de35cc_0  
pycparser                 2.19                     py27_0  
pycrypto                  2.6.1            py27h1de35cc_9  
pycurl                    7.43.0.3         py27ha12b0ac_0  
pyflakes                  2.1.1                    py27_0  
pygments                  2.4.2                      py_0  
pylint                    1.9.2                    py27_0  
pyodbc                    4.0.27           py27h0a44026_0  
pyopenssl                 19.0.0                   py27_0  
pyparsing                 2.4.2                      py_0  
pyqt                      5.9.2            py27h655552a_2  
pyrsistent                0.15.4           py27h1de35cc_0  
pysocks                   1.7.1                    py27_0  
pytables                  3.5.2            py27h5bccee9_1  
pytest                    4.6.2                    py27_0  
python                    2.7.16               h97142e2_0  
python-dateutil           2.8.0                    py27_0  
python-libarchive-c       2.8                     py27_13  
python.app                2                        py27_9  
pytz                      2019.3                     py_0  
pywavelets                1.0.3            py27h1d22016_1  
pyyaml                    5.1.1            py27h1de35cc_0  
pyzmq                     18.1.0           py27h0a44026_0  
qt                        5.9.7                h468cd18_1  
qtawesome                 0.6.0                      py_0  
qtconsole                 4.5.5                      py_0  
qtpy                      1.9.0                      py_0  
readline                  7.0                  h1de35cc_5  
requests                  2.22.0                   py27_0  
root-numpy                4.8.0                    pypi_0    pypi
root-pandas               0.7.0                    pypi_0    pypi
rope                      0.14.0                     py_0  
ruamel_yaml               0.15.46          py27h1de35cc_0  
scandir                   1.10.0           py27h1de35cc_0  
scikit-image              0.14.2           py27h0a44026_0  
scikit-learn              0.20.3           py27h27c97d8_0  
scipy                     1.2.1            py27h1410ff5_0  
seaborn                   0.9.0                    py27_0  
send2trash                1.5.0                    py27_0  
setuptools                41.4.0                   py27_0  
simplegeneric             0.8.1                    py27_2  
singledispatch            3.4.0.3          py27he22c18d_0  
sip                       4.19.8           py27h0a44026_0  
six                       1.12.0                   py27_0  
snappy                    1.1.7                he62c110_3  
snowballstemmer           2.0.0                      py_0  
sortedcollections         1.1.2                    py27_0  
sortedcontainers          2.1.0                    py27_0  
soupsieve                 1.9.3                    py27_0  
sphinx                    1.8.5                    py27_0  
sphinxcontrib             1.0                      py27_1  
sphinxcontrib-websupport  1.1.2                      py_0  
spyder                    3.3.6                    py27_0  
spyder-kernels            0.5.2                    py27_0  
sqlalchemy                1.3.9            py27h1de35cc_0  
sqlite                    3.30.0               ha441bb4_0  
ssl_match_hostname        3.7.0.1                  py27_0  
statsmodels               0.10.1           py27h1d22016_0  
subprocess32              3.5.4            py27h1de35cc_0  
sympy                     1.4                      py27_0  
tbb                       2019.8               h04f5b5a_0  
tblib                     1.4.0                      py_0  
terminado                 0.8.2                    py27_0  
testpath                  0.4.2                    py27_0  
tk                        8.6.8                ha441bb4_0  
toolz                     0.10.0                     py_0  
tornado                   5.1.1            py27h1de35cc_0  
tqdm                      4.36.1                     py_0  
traceback2                1.4.0                    py27_0  
traitlets                 4.3.3                    py27_0  
typing                    3.7.4.1                  py27_0  
uncertainties             3.1.2                    pypi_0    pypi
unicodecsv                0.14.1           py27h170f95c_0  
unittest2                 1.1.0                    py27_0  
unixodbc                  2.3.7                h1de35cc_0  
urllib3                   1.24.2                   py27_0  
wcwidth                   0.1.7            py27h817c265_0  
webencodings              0.5.1                    py27_1  
werkzeug                  0.16.0                     py_0  
wheel                     0.33.6                   py27_0  
widgetsnbextension        3.5.1                    py27_0  
wrapt                     1.11.2           py27h1de35cc_0  
wurlitzer                 1.0.3                    py27_0  
xlrd                      1.2.0                    py27_0  
xlsxwriter                1.2.1                      py_0  
xlwings                   0.15.10                  py27_0  
xlwt                      1.2.0            py27hbeec4ae_0  
xz                        5.2.4                h1de35cc_4  
yaml                      0.1.7                hc338f04_2  
zeromq                    4.3.1                h0a44026_3  
zict                      1.0.0                      py_0  
zipp                      0.6.0                      py_0  
zlib                      1.2.11               h1de35cc_3  
zstd                      1.3.7                h5bba6e5_0  
chrisburr commented 4 years ago

Where are you getting ROOT from? It's likely your root_numpy installation from pip is incompatible with your install of ROOT.

You can create a consistent conda environment where root_numpy is aware of the version of root:

  1. conda config --add channels conda-forge: only needed once, alternatively add -c conda-forge to all your conda install and conda create commands
  2. conda create --name my-conda-root-env python=3.7 root root_pandas scikit-learn: create the environment
  3. conda activate my-conda-root-env: activate the environment whenever you want to use it

If you get an error about Your shell has not been properly configured to use 'conda activate'. your conda installation isn't set up correctly and you need to:

Alternatively, pip install root_numpy --no-binary root_numpy --upgrade might work but it's fragile.

goi42 commented 4 years ago

I build ROOT from the master branch on GitHub.

The conda environment fix doesn't seem to work:

$ conda config --add channels conda-forge
$ conda create --name my-root_pandas-env python=2.7.16 root root_pandas scikit-learn
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: done

==> WARNING: A newer version of conda exists. <==
  current version: 4.7.12
  latest version: 4.8.0

Please update conda by running

    $ conda update -n base -c defaults conda

## Package Plan ##

  environment location: /Users/michael/anaconda2/envs/my-root_pandas-env

  added / updated specs:
    - python=2.7.16
    - root
    - root_pandas
    - scikit-learn

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    afterimage-1.21            |    h044d061_1002         668 KB  conda-forge
    appnope-0.1.0              |        py27_1000           8 KB  conda-forge
    attrs-19.3.0               |             py_0          35 KB  conda-forge
    backports-1.0              |             py_2           4 KB  conda-forge
    backports.shutil_get_terminal_size-1.0.0|             py_3           7 KB  conda-forge
    backports_abc-0.5          |             py_1           5 KB  conda-forge
    binutils-1.0.1             |                0           6 KB  conda-forge
    blas-1.1                   |         openblas           1 KB  conda-forge
    bleach-3.1.0               |             py_0         110 KB  conda-forge
    bzip2-1.0.8                |       h0b31af3_2         152 KB  conda-forge
    c-compiler-1.0.1           |       h1de35cc_0           4 KB  conda-forge
    ca-certificates-2019.11.28 |       hecc5488_0         145 KB  conda-forge
    cairo-1.16.0               |    he1c11cd_1002         1.3 MB  conda-forge
    cctools-895                |       h7512d6f_0         1.5 MB  conda-forge
    certifi-2019.11.28         |           py27_0         149 KB  conda-forge
    cfitsio-3.470              |       h389770f_2         1.4 MB  conda-forge
    clang-4.0.1                |       h662ec87_0        73.7 MB  conda-forge
    clang_osx-64-4.0.1         |      h1ce6c1d_17         145 KB  conda-forge
    clangxx-4.0.1              |       hc9b4283_0          10 KB  conda-forge
    clangxx_osx-64-4.0.1       |      h22b1bf0_17         146 KB  conda-forge
    compiler-rt-4.0.1          |       h5487866_0         963 KB  conda-forge
    compilers-1.0.1            |                0           4 KB  conda-forge
    configparser-3.7.3         |           py27_1          36 KB  conda-forge
    contextlib2-0.6.0.post1    |             py_0          12 KB  conda-forge
    curl-7.65.3                |       h22ea746_0         125 KB  conda-forge
    cxx-compiler-1.0.1         |       h04f5b5a_0           4 KB  conda-forge
    davix-0.7.5                |       h7232a33_0         1.5 MB  conda-forge
    decorator-4.4.1            |             py_0          11 KB  conda-forge
    defusedxml-0.6.0           |             py_0          22 KB  conda-forge
    entrypoints-0.3            |        py27_1000          13 KB  conda-forge
    enum34-1.1.6               |        py27_1002          57 KB  conda-forge
    fftw-3.3.8                 |mpi_mpich_h6e18f22_1009         5.3 MB  conda-forge
    fontconfig-2.13.1          |    h6b1039f_1001         270 KB  conda-forge
    fortran-compiler-1.0.1     |       h4f947d3_0           4 KB  conda-forge
    freetype-2.10.0            |       h24853df_1         894 KB  conda-forge
    fribidi-1.0.5              |    h01d97ff_1002          62 KB  conda-forge
    functools32-3.2.3.2        |             py_3          15 KB  conda-forge
    futures-3.3.0              |           py27_0          25 KB  conda-forge
    gdk-pixbuf-2.36.12         |    h284f8de_1003         568 KB  conda-forge
    gettext-0.19.8.1           |    h46ab8bc_1002         3.3 MB  conda-forge
    gfortran_osx-64-4.8.5      |       h22b1bf0_8         7.4 MB  conda-forge
    giflib-5.1.7               |       h01d97ff_1         140 KB  conda-forge
    glew-2.0.0                 |    h0a44026_1002         565 KB  conda-forge
    glib-2.58.3                |    h9d45998_1002         3.1 MB  conda-forge
    gobject-introspection-1.56.1|py27h64a7abb_1002         1.2 MB  conda-forge
    graphite2-1.3.13           |    h2098e52_1000          84 KB  conda-forge
    graphviz-2.40.1            |       ha626266_1         6.5 MB  conda-forge
    gsl-2.5                    |       ha2d443c_1         2.7 MB  conda-forge
    harfbuzz-2.4.0             |       hd8d2a14_3         1.2 MB  conda-forge
    icu-64.2                   |       h6de7cb9_1        12.3 MB  conda-forge
    importlib_metadata-1.3.0   |           py27_0          39 KB  conda-forge
    ipaddress-1.0.23           |             py_0          19 KB  conda-forge
    ipykernel-4.10.0           |           py27_0         144 KB  conda-forge
    ipyparallel-6.2.4          |           py27_0         307 KB  conda-forge
    ipython-5.8.0              |           py27_0         1.0 MB  conda-forge
    ipython_genutils-0.2.0     |             py_1          21 KB  conda-forge
    jinja2-2.10.3              |             py_0          91 KB  conda-forge
    jpeg-9c                    |    h1de35cc_1001         237 KB  conda-forge
    jsonschema-3.2.0           |           py27_0          87 KB  conda-forge
    jupyter_client-5.3.3       |           py27_1         129 KB  conda-forge
    jupyter_core-4.6.1         |           py27_0          70 KB  conda-forge
    krb5-1.16.3                |    hcfa6398_1001         1.1 MB  conda-forge
    ld64-274.2                 |       h7c2db76_0         2.6 MB  conda-forge
    libblas-3.8.0              |      11_openblas          10 KB  conda-forge
    libcblas-3.8.0             |      11_openblas          10 KB  conda-forge
    libcroco-0.6.13            |       hc484408_0         115 KB  conda-forge
    libcurl-7.65.3             |       h16faf7d_0         547 KB  conda-forge
    libcxx-4.0.1               |       h579ed51_0         717 KB
    libcxxabi-4.0.1            |       hebd6815_0         149 KB  conda-forge
    libffi-3.2.1               |    h6de7cb9_1006          43 KB  conda-forge
    libgfortran-3.0.1          |                0         495 KB  conda-forge
    libiconv-1.15              |    h01d97ff_1005         1.3 MB  conda-forge
    libopenblas-0.3.6          |       hdc02c5d_2         8.5 MB
    libpng-1.6.37              |       h2573ce8_0         298 KB  conda-forge
    librsvg-2.44.15            |       h90c2430_0         2.2 MB  conda-forge
    libsodium-1.0.17           |       h01d97ff_0         308 KB  conda-forge
    libssh2-1.8.2              |       hcdc9a53_2         221 KB  conda-forge
    libtiff-4.0.9              |    h79f4b77_1002         542 KB  conda-forge
    libxml2-2.9.10             |       h53d96d6_0         1.2 MB  conda-forge
    llvm-4.0.1                 |       hc748206_0       136.7 MB  conda-forge
    llvm-lto-tapi-4.0.1        |       h6701bc3_0        11.7 MB  conda-forge
    llvm-openmp-9.0.0          |       h40edb58_0         266 KB  conda-forge
    lz4-2.2.1                  |   py27he1520b0_0         125 KB  conda-forge
    lz4-c-1.8.3                |    h6de7cb9_1001         139 KB  conda-forge
    markupsafe-1.1.1           |   py27h0b31af3_0          24 KB  conda-forge
    metakernel-0.24.3          |             py_0         179 KB  conda-forge
    mistune-0.8.4              |py27h0b31af3_1000          52 KB  conda-forge
    more-itertools-5.0.0       |             py_0          44 KB  conda-forge
    mpi-1.0                    |            mpich           4 KB  conda-forge
    mpich-3.2.1                |    ha90c164_1014         4.1 MB  conda-forge
    nbconvert-5.6.1            |           py27_0         487 KB  conda-forge
    nbformat-4.4.0             |             py_1          91 KB  conda-forge
    ncurses-6.1                |    h0a44026_1002         1.3 MB  conda-forge
    notebook-5.7.8             |           py27_1         5.9 MB  conda-forge
    numpy-1.16.2               |py27_blas_openblash486cb9f_0         4.1 MB  conda-forge
    openblas-0.3.3             |    hdc02c5d_1001        17.6 MB  conda-forge
    openssl-1.1.1d             |       h0b31af3_0         1.9 MB  conda-forge
    pandas-0.24.2              |   py27h86efe34_0        10.0 MB  conda-forge
    pandoc-2.9                 |                0        21.1 MB  conda-forge
    pandocfilters-1.4.2        |             py_1           9 KB  conda-forge
    pango-1.42.4               |       h6691c8e_1         522 KB  conda-forge
    pathlib2-2.3.5             |           py27_0          33 KB  conda-forge
    pcre-8.41                  |    h0a44026_1003         222 KB  conda-forge
    pexpect-4.7.0              |           py27_0          76 KB  conda-forge
    pickleshare-0.7.5          |        py27_1000          12 KB  conda-forge
    pip-19.3.1                 |           py27_0         1.9 MB  conda-forge
    pixman-0.38.0              |    h01d97ff_1003         611 KB  conda-forge
    portalocker-1.5.2          |           py27_0          17 KB  conda-forge
    prometheus_client-0.7.1    |             py_0          38 KB  conda-forge
    prompt_toolkit-1.0.15      |             py_1         154 KB  conda-forge
    ptyprocess-0.6.0           |          py_1001          15 KB  conda-forge
    pygments-2.5.2             |             py_0         669 KB  conda-forge
    pyrsistent-0.15.6          |   py27h0b31af3_0          85 KB  conda-forge
    pythia8-8.240              |   py27h6de7cb9_2        25.8 MB  conda-forge
    python-2.7.16              |       h97142e2_7         9.2 MB
    python-dateutil-2.8.1      |             py_0         220 KB  conda-forge
    pytz-2019.3                |             py_0         237 KB  conda-forge
    pyzmq-18.1.0               |   py27hee98d25_0         433 KB  conda-forge
    qt-5.9.7                   |       h8cf7e54_3        76.8 MB  conda-forge
    readline-7.0               |    hcfe32e1_1001         393 KB  conda-forge
    root-6.18.00               |  py27h500fca7_17       117.8 MB  conda-forge
    root_numpy-4.8.0           |   py27haf112f3_2         481 KB  conda-forge
    root_pandas-0.7.0          |             py_0         2.3 MB  conda-forge
    scandir-1.10.0             |   py27h0b31af3_0          26 KB  conda-forge
    scikit-learn-0.20.4        |py27_blas_openblashc6dc708_0         5.3 MB  conda-forge
    scipy-1.2.1                |py27_blas_openblash486cb9f_0        15.8 MB  conda-forge
    send2trash-1.5.0           |             py_0          12 KB  conda-forge
    setuptools-42.0.2          |           py27_0         642 KB  conda-forge
    simplegeneric-0.8.1        |             py_1           7 KB  conda-forge
    singledispatch-3.4.0.3     |        py27_1000          15 KB  conda-forge
    six-1.13.0                 |           py27_0          22 KB  conda-forge
    sqlite-3.30.1              |       ha441bb4_0         2.4 MB
    tbb-2019.8                 |       h770b8ee_0         157 KB  conda-forge
    tbb-devel-2019.8           |       h770b8ee_0         726 KB  conda-forge
    terminado-0.8.3            |           py27_0          22 KB  conda-forge
    testpath-0.4.4             |             py_0          85 KB  conda-forge
    tk-8.6.10                  |       hbbe82c9_0         3.3 MB  conda-forge
    tornado-5.1.1              |py27h1de35cc_1000         642 KB  conda-forge
    traitlets-4.3.3            |           py27_0         128 KB  conda-forge
    vdt-0.4.3                  |       h6de7cb9_0          30 KB  conda-forge
    wcwidth-0.1.7              |             py_1          17 KB  conda-forge
    webencodings-0.5.1         |             py_1          12 KB  conda-forge
    wheel-0.33.6               |           py27_0          35 KB  conda-forge
    xrootd-4.9.1               |   py27hf280583_0         2.7 MB  conda-forge
    xz-5.2.4                   |    h1de35cc_1001         268 KB  conda-forge
    zeromq-4.3.2               |       h6de7cb9_2         571 KB  conda-forge
    zipp-0.6.0                 |             py_0           7 KB  conda-forge
    zlib-1.2.11                |    h0b31af3_1006         101 KB  conda-forge
    ------------------------------------------------------------
                                           Total:       636.8 MB

The following NEW packages will be INSTALLED:

  afterimage         conda-forge/osx-64::afterimage-1.21-h044d061_1002
  appnope            conda-forge/osx-64::appnope-0.1.0-py27_1000
  attrs              conda-forge/noarch::attrs-19.3.0-py_0
  backports          conda-forge/noarch::backports-1.0-py_2
  backports.shutil_~ conda-forge/noarch::backports.shutil_get_terminal_size-1.0.0-py_3
  backports_abc      conda-forge/noarch::backports_abc-0.5-py_1
  binutils           conda-forge/osx-64::binutils-1.0.1-0
  blas               conda-forge/osx-64::blas-1.1-openblas
  bleach             conda-forge/noarch::bleach-3.1.0-py_0
  bzip2              conda-forge/osx-64::bzip2-1.0.8-h0b31af3_2
  c-compiler         conda-forge/osx-64::c-compiler-1.0.1-h1de35cc_0
  ca-certificates    conda-forge/osx-64::ca-certificates-2019.11.28-hecc5488_0
  cairo              conda-forge/osx-64::cairo-1.16.0-he1c11cd_1002
  cctools            conda-forge/osx-64::cctools-895-h7512d6f_0
  certifi            conda-forge/osx-64::certifi-2019.11.28-py27_0
  cfitsio            conda-forge/osx-64::cfitsio-3.470-h389770f_2
  clang              conda-forge/osx-64::clang-4.0.1-h662ec87_0
  clang_osx-64       conda-forge/osx-64::clang_osx-64-4.0.1-h1ce6c1d_17
  clangxx            conda-forge/osx-64::clangxx-4.0.1-hc9b4283_0
  clangxx_osx-64     conda-forge/osx-64::clangxx_osx-64-4.0.1-h22b1bf0_17
  compiler-rt        conda-forge/osx-64::compiler-rt-4.0.1-h5487866_0
  compilers          conda-forge/osx-64::compilers-1.0.1-0
  configparser       conda-forge/osx-64::configparser-3.7.3-py27_1
  contextlib2        conda-forge/noarch::contextlib2-0.6.0.post1-py_0
  curl               conda-forge/osx-64::curl-7.65.3-h22ea746_0
  cxx-compiler       conda-forge/osx-64::cxx-compiler-1.0.1-h04f5b5a_0
  davix              conda-forge/osx-64::davix-0.7.5-h7232a33_0
  decorator          conda-forge/noarch::decorator-4.4.1-py_0
  defusedxml         conda-forge/noarch::defusedxml-0.6.0-py_0
  entrypoints        conda-forge/osx-64::entrypoints-0.3-py27_1000
  enum34             conda-forge/osx-64::enum34-1.1.6-py27_1002
  fftw               conda-forge/osx-64::fftw-3.3.8-mpi_mpich_h6e18f22_1009
  fontconfig         conda-forge/osx-64::fontconfig-2.13.1-h6b1039f_1001
  fortran-compiler   conda-forge/osx-64::fortran-compiler-1.0.1-h4f947d3_0
  freetype           conda-forge/osx-64::freetype-2.10.0-h24853df_1
  fribidi            conda-forge/osx-64::fribidi-1.0.5-h01d97ff_1002
  functools32        conda-forge/noarch::functools32-3.2.3.2-py_3
  futures            conda-forge/osx-64::futures-3.3.0-py27_0
  gdk-pixbuf         conda-forge/osx-64::gdk-pixbuf-2.36.12-h284f8de_1003
  gettext            conda-forge/osx-64::gettext-0.19.8.1-h46ab8bc_1002
  gfortran_osx-64    conda-forge/osx-64::gfortran_osx-64-4.8.5-h22b1bf0_8
  giflib             conda-forge/osx-64::giflib-5.1.7-h01d97ff_1
  glew               conda-forge/osx-64::glew-2.0.0-h0a44026_1002
  glib               conda-forge/osx-64::glib-2.58.3-h9d45998_1002
  gobject-introspec~ conda-forge/osx-64::gobject-introspection-1.56.1-py27h64a7abb_1002
  graphite2          conda-forge/osx-64::graphite2-1.3.13-h2098e52_1000
  graphviz           conda-forge/osx-64::graphviz-2.40.1-ha626266_1
  gsl                conda-forge/osx-64::gsl-2.5-ha2d443c_1
  harfbuzz           conda-forge/osx-64::harfbuzz-2.4.0-hd8d2a14_3
  icu                conda-forge/osx-64::icu-64.2-h6de7cb9_1
  importlib_metadata conda-forge/osx-64::importlib_metadata-1.3.0-py27_0
  ipaddress          conda-forge/noarch::ipaddress-1.0.23-py_0
  ipykernel          conda-forge/osx-64::ipykernel-4.10.0-py27_0
  ipyparallel        conda-forge/osx-64::ipyparallel-6.2.4-py27_0
  ipython            conda-forge/osx-64::ipython-5.8.0-py27_0
  ipython_genutils   conda-forge/noarch::ipython_genutils-0.2.0-py_1
  jinja2             conda-forge/noarch::jinja2-2.10.3-py_0
  jpeg               conda-forge/osx-64::jpeg-9c-h1de35cc_1001
  jsonschema         conda-forge/osx-64::jsonschema-3.2.0-py27_0
  jupyter_client     conda-forge/osx-64::jupyter_client-5.3.3-py27_1
  jupyter_core       conda-forge/osx-64::jupyter_core-4.6.1-py27_0
  krb5               conda-forge/osx-64::krb5-1.16.3-hcfa6398_1001
  ld64               conda-forge/osx-64::ld64-274.2-h7c2db76_0
  libblas            conda-forge/osx-64::libblas-3.8.0-11_openblas
  libcblas           conda-forge/osx-64::libcblas-3.8.0-11_openblas
  libcroco           conda-forge/osx-64::libcroco-0.6.13-hc484408_0
  libcurl            conda-forge/osx-64::libcurl-7.65.3-h16faf7d_0
  libcxx             pkgs/main/osx-64::libcxx-4.0.1-h579ed51_0
  libcxxabi          conda-forge/osx-64::libcxxabi-4.0.1-hebd6815_0
  libedit            pkgs/main/osx-64::libedit-3.1.20181209-hb402a30_0
  libffi             conda-forge/osx-64::libffi-3.2.1-h6de7cb9_1006
  libgfortran        conda-forge/osx-64::libgfortran-3.0.1-0
  libiconv           conda-forge/osx-64::libiconv-1.15-h01d97ff_1005
  libopenblas        pkgs/main/osx-64::libopenblas-0.3.6-hdc02c5d_2
  libpng             conda-forge/osx-64::libpng-1.6.37-h2573ce8_0
  librsvg            conda-forge/osx-64::librsvg-2.44.15-h90c2430_0
  libsodium          conda-forge/osx-64::libsodium-1.0.17-h01d97ff_0
  libssh2            conda-forge/osx-64::libssh2-1.8.2-hcdc9a53_2
  libtiff            conda-forge/osx-64::libtiff-4.0.9-h79f4b77_1002
  libxml2            conda-forge/osx-64::libxml2-2.9.10-h53d96d6_0
  llvm               conda-forge/osx-64::llvm-4.0.1-hc748206_0
  llvm-lto-tapi      conda-forge/osx-64::llvm-lto-tapi-4.0.1-h6701bc3_0
  llvm-openmp        conda-forge/osx-64::llvm-openmp-9.0.0-h40edb58_0
  lz4                conda-forge/osx-64::lz4-2.2.1-py27he1520b0_0
  lz4-c              conda-forge/osx-64::lz4-c-1.8.3-h6de7cb9_1001
  markupsafe         conda-forge/osx-64::markupsafe-1.1.1-py27h0b31af3_0
  metakernel         conda-forge/noarch::metakernel-0.24.3-py_0
  mistune            conda-forge/osx-64::mistune-0.8.4-py27h0b31af3_1000
  more-itertools     conda-forge/noarch::more-itertools-5.0.0-py_0
  mpi                conda-forge/osx-64::mpi-1.0-mpich
  mpich              conda-forge/osx-64::mpich-3.2.1-ha90c164_1014
  nbconvert          conda-forge/osx-64::nbconvert-5.6.1-py27_0
  nbformat           conda-forge/noarch::nbformat-4.4.0-py_1
  ncurses            conda-forge/osx-64::ncurses-6.1-h0a44026_1002
  notebook           conda-forge/osx-64::notebook-5.7.8-py27_1
  numpy              conda-forge/osx-64::numpy-1.16.2-py27_blas_openblash486cb9f_0
  openblas           conda-forge/osx-64::openblas-0.3.3-hdc02c5d_1001
  openssl            conda-forge/osx-64::openssl-1.1.1d-h0b31af3_0
  pandas             conda-forge/osx-64::pandas-0.24.2-py27h86efe34_0
  pandoc             conda-forge/osx-64::pandoc-2.9-0
  pandocfilters      conda-forge/noarch::pandocfilters-1.4.2-py_1
  pango              conda-forge/osx-64::pango-1.42.4-h6691c8e_1
  pathlib2           conda-forge/osx-64::pathlib2-2.3.5-py27_0
  pcre               conda-forge/osx-64::pcre-8.41-h0a44026_1003
  pexpect            conda-forge/osx-64::pexpect-4.7.0-py27_0
  pickleshare        conda-forge/osx-64::pickleshare-0.7.5-py27_1000
  pip                conda-forge/osx-64::pip-19.3.1-py27_0
  pixman             conda-forge/osx-64::pixman-0.38.0-h01d97ff_1003
  portalocker        conda-forge/osx-64::portalocker-1.5.2-py27_0
  prometheus_client  conda-forge/noarch::prometheus_client-0.7.1-py_0
  prompt_toolkit     conda-forge/noarch::prompt_toolkit-1.0.15-py_1
  ptyprocess         conda-forge/noarch::ptyprocess-0.6.0-py_1001
  pygments           conda-forge/noarch::pygments-2.5.2-py_0
  pyrsistent         conda-forge/osx-64::pyrsistent-0.15.6-py27h0b31af3_0
  pythia8            conda-forge/osx-64::pythia8-8.240-py27h6de7cb9_2
  python             pkgs/main/osx-64::python-2.7.16-h97142e2_7
  python-dateutil    conda-forge/noarch::python-dateutil-2.8.1-py_0
  pytz               conda-forge/noarch::pytz-2019.3-py_0
  pyzmq              conda-forge/osx-64::pyzmq-18.1.0-py27hee98d25_0
  qt                 conda-forge/osx-64::qt-5.9.7-h8cf7e54_3
  readline           conda-forge/osx-64::readline-7.0-hcfe32e1_1001
  root               conda-forge/osx-64::root-6.18.00-py27h500fca7_17
  root_numpy         conda-forge/osx-64::root_numpy-4.8.0-py27haf112f3_2
  root_pandas        conda-forge/noarch::root_pandas-0.7.0-py_0
  scandir            conda-forge/osx-64::scandir-1.10.0-py27h0b31af3_0
  scikit-learn       conda-forge/osx-64::scikit-learn-0.20.4-py27_blas_openblashc6dc708_0
  scipy              conda-forge/osx-64::scipy-1.2.1-py27_blas_openblash486cb9f_0
  send2trash         conda-forge/noarch::send2trash-1.5.0-py_0
  setuptools         conda-forge/osx-64::setuptools-42.0.2-py27_0
  simplegeneric      conda-forge/noarch::simplegeneric-0.8.1-py_1
  singledispatch     conda-forge/osx-64::singledispatch-3.4.0.3-py27_1000
  six                conda-forge/osx-64::six-1.13.0-py27_0
  sqlite             pkgs/main/osx-64::sqlite-3.30.1-ha441bb4_0
  tbb                conda-forge/osx-64::tbb-2019.8-h770b8ee_0
  tbb-devel          conda-forge/osx-64::tbb-devel-2019.8-h770b8ee_0
  terminado          conda-forge/osx-64::terminado-0.8.3-py27_0
  testpath           conda-forge/noarch::testpath-0.4.4-py_0
  tk                 conda-forge/osx-64::tk-8.6.10-hbbe82c9_0
  tornado            conda-forge/osx-64::tornado-5.1.1-py27h1de35cc_1000
  traitlets          conda-forge/osx-64::traitlets-4.3.3-py27_0
  vdt                conda-forge/osx-64::vdt-0.4.3-h6de7cb9_0
  wcwidth            conda-forge/noarch::wcwidth-0.1.7-py_1
  webencodings       conda-forge/noarch::webencodings-0.5.1-py_1
  wheel              conda-forge/osx-64::wheel-0.33.6-py27_0
  xrootd             conda-forge/osx-64::xrootd-4.9.1-py27hf280583_0
  xz                 conda-forge/osx-64::xz-5.2.4-h1de35cc_1001
  zeromq             conda-forge/osx-64::zeromq-4.3.2-h6de7cb9_2
  zipp               conda-forge/noarch::zipp-0.6.0-py_0
  zlib               conda-forge/osx-64::zlib-1.2.11-h0b31af3_1006

Proceed ([y]/n)? 

Downloading and Extracting Packages
clangxx_osx-64-4.0.1 | 146 KB    | ##################################### | 100% 
cfitsio-3.470        | 1.4 MB    | ##################################### | 100% 
jpeg-9c              | 237 KB    | ##################################### | 100% 
more-itertools-5.0.0 | 44 KB     | ##################################### | 100% 
jsonschema-3.2.0     | 87 KB     | ##################################### | 100% 
bleach-3.1.0         | 110 KB    | ##################################### | 100% 
davix-0.7.5          | 1.5 MB    | ##################################### | 100% 
libxml2-2.9.10       | 1.2 MB    | ##################################### | 100% 
vdt-0.4.3            | 30 KB     | ##################################### | 100% 
nbconvert-5.6.1      | 487 KB    | ##################################### | 100% 
libcblas-3.8.0       | 10 KB     | ##################################### | 100% 
zeromq-4.3.2         | 571 KB    | ##################################### | 100% 
ld64-274.2           | 2.6 MB    | ##################################### | 100% 
gobject-introspectio | 1.2 MB    | ##################################### | 100% 
testpath-0.4.4       | 85 KB     | ##################################### | 100% 
gdk-pixbuf-2.36.12   | 568 KB    | ##################################### | 100% 
contextlib2-0.6.0.po | 12 KB     | ##################################### | 100% 
xrootd-4.9.1         | 2.7 MB    | ##################################### | 100% 
krb5-1.16.3          | 1.1 MB    | ##################################### | 100% 
sqlite-3.30.1        | 2.4 MB    | ##################################### | 100% 
notebook-5.7.8       | 5.9 MB    | ##################################### | 100% 
clang-4.0.1          | 73.7 MB   | ##################################### | 100% 
libblas-3.8.0        | 10 KB     | ##################################### | 100% 
cairo-1.16.0         | 1.3 MB    | ##################################### | 100% 
root-6.18.00         | 117.8 MB  | ##################################### | 100% 
lz4-c-1.8.3          | 139 KB    | ##################################### | 100% 
icu-64.2             | 12.3 MB   | ##################################### | 100% 
attrs-19.3.0         | 35 KB     | ##################################### | 100% 
afterimage-1.21      | 668 KB    | ##################################### | 100% 
pixman-0.38.0        | 611 KB    | ##################################### | 100% 
pythia8-8.240        | 25.8 MB   | ##################################### | 100% 
libtiff-4.0.9        | 542 KB    | ##################################### | 100% 
libcxx-4.0.1         | 717 KB    | ##################################### | 100% 
metakernel-0.24.3    | 179 KB    | ##################################### | 100% 
harfbuzz-2.4.0       | 1.2 MB    | ##################################### | 100% 
pathlib2-2.3.5       | 33 KB     | ##################################### | 100% 
root_pandas-0.7.0    | 2.3 MB    | ##################################### | 100% 
entrypoints-0.3      | 13 KB     | ##################################### | 100% 
ipaddress-1.0.23     | 19 KB     | ##################################### | 100% 
terminado-0.8.3      | 22 KB     | ##################################### | 100% 
libcurl-7.65.3       | 547 KB    | ##################################### | 100% 
gsl-2.5              | 2.7 MB    | ##################################### | 100% 
compiler-rt-4.0.1    | 963 KB    | ##################################### | 100% 
pip-19.3.1           | 1.9 MB    | ##################################### | 100% 
backports_abc-0.5    | 5 KB      | ##################################### | 100% 
python-dateutil-2.8. | 220 KB    | ##################################### | 100% 
markupsafe-1.1.1     | 24 KB     | ##################################### | 100% 
lz4-2.2.1            | 125 KB    | ##################################### | 100% 
tk-8.6.10            | 3.3 MB    | ##################################### | 100% 
traitlets-4.3.3      | 128 KB    | ##################################### | 100% 
glew-2.0.0           | 565 KB    | ##################################### | 100% 
portalocker-1.5.2    | 17 KB     | ##################################### | 100% 
ipyparallel-6.2.4    | 307 KB    | ##################################### | 100% 
cxx-compiler-1.0.1   | 4 KB      | ##################################### | 100% 
c-compiler-1.0.1     | 4 KB      | ##################################### | 100% 
enum34-1.1.6         | 57 KB     | ##################################### | 100% 
jupyter_client-5.3.3 | 129 KB    | ##################################### | 100% 
gfortran_osx-64-4.8. | 7.4 MB    | ##################################### | 100% 
wheel-0.33.6         | 35 KB     | ##################################### | 100% 
gettext-0.19.8.1     | 3.3 MB    | ##################################### | 100% 
jinja2-2.10.3        | 91 KB     | ##################################### | 100% 
llvm-4.0.1           | 136.7 MB  | ##################################### | 100% 
pytz-2019.3          | 237 KB    | ##################################### | 100% 
singledispatch-3.4.0 | 15 KB     | ##################################### | 100% 
numpy-1.16.2         | 4.1 MB    | ##################################### | 100% 
configparser-3.7.3   | 36 KB     | ##################################### | 100% 
libopenblas-0.3.6    | 8.5 MB    | ##################################### | 100% 
tbb-2019.8           | 157 KB    | ##################################### | 100% 
pandocfilters-1.4.2  | 9 KB      | ##################################### | 100% 
six-1.13.0           | 22 KB     | ##################################### | 100% 
nbformat-4.4.0       | 91 KB     | ##################################### | 100% 
mpi-1.0              | 4 KB      | ##################################### | 100% 
compilers-1.0.1      | 4 KB      | ##################################### | 100% 
openblas-0.3.3       | 17.6 MB   | ##################################### | 100% 
xz-5.2.4             | 268 KB    | ##################################### | 100% 
prompt_toolkit-1.0.1 | 154 KB    | ##################################### | 100% 
libcxxabi-4.0.1      | 149 KB    | ##################################### | 100% 
curl-7.65.3          | 125 KB    | ##################################### | 100% 
clangxx-4.0.1        | 10 KB     | ##################################### | 100% 
pandoc-2.9           | 21.1 MB   | ##################################### | 100% 
libgfortran-3.0.1    | 495 KB    | ##################################### | 100% 
qt-5.9.7             | 76.8 MB   | ##################################### | 100% 
pandas-0.24.2        | 10.0 MB   | ##################################### | 100% 
appnope-0.1.0        | 8 KB      | ##################################### | 100% 
wcwidth-0.1.7        | 17 KB     | ##################################### | 100% 
pickleshare-0.7.5    | 12 KB     | ##################################### | 100% 
libssh2-1.8.2        | 221 KB    | ##################################### | 100% 
simplegeneric-0.8.1  | 7 KB      | ##################################### | 100% 
libiconv-1.15        | 1.3 MB    | ##################################### | 100% 
scipy-1.2.1          | 15.8 MB   | ##################################### | 100% 
ipykernel-4.10.0     | 144 KB    | ##################################### | 100% 
fontconfig-2.13.1    | 270 KB    | ##################################### | 100% 
glib-2.58.3          | 3.1 MB    | ##################################### | 100% 
jupyter_core-4.6.1   | 70 KB     | ##################################### | 100% 
zlib-1.2.11          | 101 KB    | ##################################### | 100% 
pexpect-4.7.0        | 76 KB     | ##################################### | 100% 
certifi-2019.11.28   | 149 KB    | ##################################### | 100% 
libsodium-1.0.17     | 308 KB    | ##################################### | 100% 
setuptools-42.0.2    | 642 KB    | ##################################### | 100% 
clang_osx-64-4.0.1   | 145 KB    | ##################################### | 100% 
fortran-compiler-1.0 | 4 KB      | ##################################### | 100% 
backports.shutil_get | 7 KB      | ##################################### | 100% 
cctools-895          | 1.5 MB    | ##################################### | 100% 
ipython-5.8.0        | 1.0 MB    | ##################################### | 100% 
scandir-1.10.0       | 26 KB     | ##################################### | 100% 
tbb-devel-2019.8     | 726 KB    | ##################################### | 100% 
pygments-2.5.2       | 669 KB    | ##################################### | 100% 
send2trash-1.5.0     | 12 KB     | ##################################### | 100% 
functools32-3.2.3.2  | 15 KB     | ##################################### | 100% 
root_numpy-4.8.0     | 481 KB    | ##################################### | 100% 
importlib_metadata-1 | 39 KB     | ##################################### | 100% 
ncurses-6.1          | 1.3 MB    | ##################################### | 100% 
blas-1.1             | 1 KB      | ##################################### | 100% 
tornado-5.1.1        | 642 KB    | ##################################### | 100% 
freetype-2.10.0      | 894 KB    | ##################################### | 100% 
futures-3.3.0        | 25 KB     | ##################################### | 100% 
mpich-3.2.1          | 4.1 MB    | ##################################### | 100% 
libffi-3.2.1         | 43 KB     | ##################################### | 100% 
librsvg-2.44.15      | 2.2 MB    | ##################################### | 100% 
binutils-1.0.1       | 6 KB      | ##################################### | 100% 
zipp-0.6.0           | 7 KB      | ##################################### | 100% 
ptyprocess-0.6.0     | 15 KB     | ##################################### | 100% 
openssl-1.1.1d       | 1.9 MB    | ##################################### | 100% 
llvm-openmp-9.0.0    | 266 KB    | ##################################### | 100% 
mistune-0.8.4        | 52 KB     | ##################################### | 100% 
prometheus_client-0. | 38 KB     | ##################################### | 100% 
graphite2-1.3.13     | 84 KB     | ##################################### | 100% 
python-2.7.16        | 9.2 MB    | ##################################### | 100% 
llvm-lto-tapi-4.0.1  | 11.7 MB   | ##################################### | 100% 
backports-1.0        | 4 KB      | ##################################### | 100% 
defusedxml-0.6.0     | 22 KB     | ##################################### | 100% 
bzip2-1.0.8          | 152 KB    | ##################################### | 100% 
pyrsistent-0.15.6    | 85 KB     | ##################################### | 100% 
pcre-8.41            | 222 KB    | ##################################### | 100% 
scikit-learn-0.20.4  | 5.3 MB    | ##################################### | 100% 
webencodings-0.5.1   | 12 KB     | ##################################### | 100% 
fftw-3.3.8           | 5.3 MB    | ##################################### | 100% 
decorator-4.4.1      | 11 KB     | ##################################### | 100% 
libpng-1.6.37        | 298 KB    | ##################################### | 100% 
ipython_genutils-0.2 | 21 KB     | ##################################### | 100% 
pyzmq-18.1.0         | 433 KB    | ##################################### | 100% 
ca-certificates-2019 | 145 KB    | ##################################### | 100% 
pango-1.42.4         | 522 KB    | ##################################### | 100% 
libcroco-0.6.13      | 115 KB    | ##################################### | 100% 
readline-7.0         | 393 KB    | ##################################### | 100% 
graphviz-2.40.1      | 6.5 MB    | ##################################### | 100% 
fribidi-1.0.5        | 62 KB     | ##################################### | 100% 
giflib-5.1.7         | 140 KB    | ##################################### | 100% 
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate my-root_pandas-env
#
# To deactivate an active environment, use
#
#     $ conda deactivate

$ conda activate my-root_pandas-env
WARNING: Compiling likely won't work unless you download the macOS 10.9 SDK and set CONDA_BUILD_SYSROOT.
You can probably ignore this warning and just omit + or ++ when executing ROOT macros.
In [1]: import ROOT

In [2]: rdf = ROOT.RDataFrame(10).Define('e', 'rdfentry_')

In [3]: asdict = rdf.AsNumpy()

In [4]: import pandas as pd

In [5]: df = pd.DataFrame.from_dict(asdict)

In [6]: import root_pandas as rp

In [7]: rp.to_root(df, 'temp.root', 'myTree')
/Users/michael/anaconda2/lib/python2.7/site-packages/root_numpy/_tree.py:575: UserWarning: converter for dtype('O') is not implemented (skipping)
  cobj = _librootnumpy.array2tree_toCObj(arr, name=name, tree=incobj)

 *** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[<unknown binary>] (no debug info)
[/Users/michael/anaconda2/lib/python2.7/site-packages/root_numpy/_librootnumpy.so] __pyx_f_13_librootnumpy_array2tree(tagPyArrayObject_fields*, __pyx_opt_args_13_librootnumpy_array2tree*) (no debug info)
[/Users/michael/anaconda2/lib/python2.7/site-packages/root_numpy/_librootnumpy.so] __pyx_pw_13_librootnumpy_17array2tree_toCObj(_object*, _object*, _object*) (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] function_call (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyObject_Call (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCode (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyRun_FileExFlags (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyRun_SimpleFileExFlags (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] Py_Main (no debug info)
[/usr/lib/system/libdyld.dylib] start (no debug info)
[<unknown binary>] (no debug info)

That said, I'm not sure it's picking up the environment version of ROOT. You can see above that it installs ROOT 6.18.00, but if I check the version in a python session, it still gives 6.19/01, which is the version I build.

pip install root_numpy --no-binary root_numpy --upgrade also does not seem to work:

$ pip install root_numpy --no-binary root_numpy --upgrade
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Requirement already up-to-date: root_numpy in ./anaconda2/lib/python2.7/site-packages (4.8.0)
In [1]: import ROOT

In [2]: rdf = ROOT.RDataFrame(10).Define('e', 'rdfentry_')

In [3]: asdict = rdf.AsNumpy()

In [4]: import pandas as pd

In [5]: df = pd.DataFrame.from_dict(asdict)

In [6]: import root_pandas as rp

In [7]: rp.to_root(df, 'temp.root', 'myTree')
/Users/michael/anaconda2/lib/python2.7/site-packages/root_numpy/_tree.py:575: UserWarning: converter for dtype('O') is not implemented (skipping)
  cobj = _librootnumpy.array2tree_toCObj(arr, name=name, tree=incobj)

 *** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[<unknown binary>] (no debug info)
[/Users/michael/anaconda2/lib/python2.7/site-packages/root_numpy/_librootnumpy.so] __pyx_f_13_librootnumpy_array2tree(tagPyArrayObject_fields*, __pyx_opt_args_13_librootnumpy_array2tree*) (no debug info)
[/Users/michael/anaconda2/lib/python2.7/site-packages/root_numpy/_librootnumpy.so] __pyx_pw_13_librootnumpy_17array2tree_toCObj(_object*, _object*, _object*) (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] function_call (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyObject_Call (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] fast_function (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalFrameEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCodeEx (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyEval_EvalCode (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyRun_FileExFlags (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] PyRun_SimpleFileExFlags (no debug info)
[/Users/michael/anaconda2/lib/libpython2.7.dylib] Py_Main (no debug info)
[/usr/lib/system/libdyld.dylib] start (no debug info)
[<unknown binary>] (no debug info)
chrisburr commented 4 years ago

I'd take a look at env, as I suspect you're running the thisroot.sh script somewhere which will set PYTHONPATH. You can check which ROOT installation you're using with:

print(ROOT.__file__)

I don't think it's an issue but do you need to specify python=2.7.16 instead of python=2.7?

goi42 commented 4 years ago

Yup, you're right; python path got set. Unsetting it in that conda environment solves the issue.

It would be convenient to be able to point root_pandas to the build of ROOT I typically use, but this resolves the issue. Thanks.

chrisburr commented 4 years ago

I've just re-read your previous message and realised I should have suggested: pip install root_numpy --no-binary root_numpy --force-reinstall

goi42 commented 4 years ago

It does not seem to care for that command:

$ pip install root_numpy --no-binary root_numpy --force-reinstall
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting root_numpy
  Using cached https://files.pythonhosted.org/packages/d5/5f/82f5111c22599676eb8b5f9b1bf85c38dcc7995d52cd6b4a8f5f5caa4659/root_numpy-4.8.0.tar.gz
Skipping bdist_wheel for root-numpy, due to binaries being disabled for it.
Installing collected packages: root-numpy
  Found existing installation: root-numpy 4.8.0
    Uninstalling root-numpy-4.8.0:
      Successfully uninstalled root-numpy-4.8.0
  Running setup.py install for root-numpy ... error
    ERROR: Command errored out with exit status 1:
     command: /Users/michael/anaconda2/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/zq/pwp8f9td4_9cb_b28mhfpffr0000gp/T/pip-install-65QJdq/root-numpy/setup.py'"'"'; __file__='"'"'/private/var/folders/zq/pwp8f9td4_9cb_b28mhfpffr0000gp/T/pip-install-65QJdq/root-numpy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/zq/pwp8f9td4_9cb_b28mhfpffr0000gp/T/pip-record-qZ2QVY/install-record.txt --single-version-externally-managed --compile
         cwd: /private/var/folders/zq/pwp8f9td4_9cb_b28mhfpffr0000gp/T/pip-install-65QJdq/root-numpy/
    Complete output (70 lines):
    running install

                     _
     _ __ ___   ___ | |_     _ __  _   _ _ __ ___  _ __  _   _
    | '__/ _ \ / _ \| __|   | '_ \| | | | '_ ` _ \| '_ \| | | |
    | | | (_) | (_) | |_    | | | | |_| | | | | | | |_) | |_| |
    |_|  \___/ \___/ \__|___|_| |_|\__,_|_| |_| |_| .__/ \__, |  4.8.0
                       |_____|                    |_|    |___/

    writing 'root_numpy/config.json'
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.6-x86_64-2.7
    creating build/lib.macosx-10.6-x86_64-2.7/root_numpy
    copying root_numpy/_graph.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
    copying root_numpy/_sample.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
    copying root_numpy/__init__.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
    copying root_numpy/_warnings.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
    copying root_numpy/_array.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
    copying root_numpy/setup_utils.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
    copying root_numpy/info.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
    copying root_numpy/_matrix.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
    copying root_numpy/_hist.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
    copying root_numpy/_tree.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
    copying root_numpy/_utils.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
    copying root_numpy/_evaluate.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
    creating build/lib.macosx-10.6-x86_64-2.7/root_numpy/tests
    copying root_numpy/tests/test_utils.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tests
    copying root_numpy/tests/test_hist.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tests
    copying root_numpy/tests/test_tree.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tests
    copying root_numpy/tests/test_sample.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tests
    copying root_numpy/tests/test_array.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tests
    copying root_numpy/tests/__init__.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tests
    copying root_numpy/tests/test_evaluate.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tests
    creating build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
    copying root_numpy/testdata/__init__.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
    creating build/lib.macosx-10.6-x86_64-2.7/root_numpy/extern
    copying root_numpy/extern/ordereddict.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/extern
    copying root_numpy/extern/__init__.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/extern
    copying root_numpy/extern/six.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/extern
    creating build/lib.macosx-10.6-x86_64-2.7/root_numpy/tmva
    copying root_numpy/tmva/_data.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tmva
    copying root_numpy/tmva/__init__.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tmva
    copying root_numpy/tmva/tests.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tmva
    copying root_numpy/tmva/_evaluate.py -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/tmva
    copying root_numpy/testdata/directories.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
    copying root_numpy/testdata/object2.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
    copying root_numpy/testdata/struct.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
    copying root_numpy/testdata/test.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
    copying root_numpy/testdata/vary1.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
    copying root_numpy/testdata/single1.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
    copying root_numpy/testdata/fixed2.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
    copying root_numpy/testdata/trees.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
    copying root_numpy/testdata/ntuple.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
    copying root_numpy/testdata/fixed1.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
    copying root_numpy/testdata/vary2.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
    copying root_numpy/testdata/string.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
    copying root_numpy/testdata/single2.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
    copying root_numpy/testdata/vector.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
    copying root_numpy/testdata/object1.root -> build/lib.macosx-10.6-x86_64-2.7/root_numpy/testdata
    copying root_numpy/config.json -> build/lib.macosx-10.6-x86_64-2.7/root_numpy
    running build_ext
    building 'root_numpy._librootnumpy' extension
    creating build/temp.macosx-10.6-x86_64-2.7
    creating build/temp.macosx-10.6-x86_64-2.7/root_numpy
    creating build/temp.macosx-10.6-x86_64-2.7/root_numpy/src
    gcc -fno-strict-aliasing -I/Users/michael/anaconda2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Iroot_numpy/src -I/Users/michael/anaconda2/include/python2.7 -I/Users/michael/anaconda2/lib/python2.7/site-packages/numpy/core/include -c root_numpy/src/_librootnumpy.cpp -o build/temp.macosx-10.6-x86_64-2.7/root_numpy/src/_librootnumpy.o -stdlib=libc++ -pthread -std=c++11 -m64 -I/Applications/root_build/include -Wno-unused-function -Wno-write-strings
    clang: error: invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or later)
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
  Rolling back uninstall of root-numpy
  Moving to /Users/michael/anaconda2/lib/python2.7/site-packages/root_numpy-4.8.0.dist-info/
   from /Users/michael/anaconda2/lib/python2.7/site-packages/~oot_numpy-4.8.0.dist-info
  Moving to /Users/michael/anaconda2/lib/python2.7/site-packages/root_numpy/
   from /Users/michael/anaconda2/lib/python2.7/site-packages/~oot_numpy
ERROR: Command errored out with exit status 1: /Users/michael/anaconda2/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/zq/pwp8f9td4_9cb_b28mhfpffr0000gp/T/pip-install-65QJdq/root-numpy/setup.py'"'"'; __file__='"'"'/private/var/folders/zq/pwp8f9td4_9cb_b28mhfpffr0000gp/T/pip-install-65QJdq/root-numpy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/zq/pwp8f9td4_9cb_b28mhfpffr0000gp/T/pip-record-qZ2QVY/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

It complains I need OS X 10.7 or later, though I am running 10.15.1.