@oshadura @etejedor
I now have
root [0] gROOT->GetGitCommit()
(const char *) "v6-23-01-335-gffa7013ea6"
root [1]
compiled with python2 (2.7.18)
using
cmake ../root-6.23.01 -DCMAKE_INSTALL_PREFIX=/opt/root -Dgnuinstall=ON -Droofit=ON -Drpath=ON -Dsoversion=ON -Dpython=ON -DPYTHON_EXECUTABLE=/usr/bin/python2 -Dcling=ON
As mentioned by @Wile_E_Coyote in his Python in ROOT 6.22.99 post, some macros in the pyroot
directory work some don’t. I feel that there is a need to seriously check the compatibility of those macros. However, in my case all the macros in demo.py
work except framework.py, first.py, file.py, fildir.py, tree.py, and rootmarks.py
, which give errors similar to the one below
Traceback (most recent call last):
File "<string>", line 1, in <module>
IOError: [Errno 2] No such file or directory: 'file.py'
Also, when I run python2 demoshelp.py
as standalone macro, it runs and flashes the canvas and vanishes quickly, even before I see what is there on the canvas! However, when I run it through python2 demo.py
it stays there.
Further, root-config --config | grep PYTHON
doesn’t return anything!
I think, PYTHON_INCLUDE_DIR, PYTHON_LIBRARY, PYTHON_LIBRARY_RELEASE
in addition to the PYTHONPATH
should be automatically set since we compile ROOT with -DCMAKE_INSTALL_PREFIX
set.
May I request you to please look into this.
Regards,
Ajay