Well, this is a kind of follow-up on the recent “Python3 and ROOT 6.23/01” thread …
This is Ubuntu 20.04 LTS / x86_64 with gcc 9.3.0 and the standard operating system provided python2 2.7.18rc1 and python3 3.8.2 (plus the corresponding numpy versions).
I tried your nightly “root_v6.22.99.Linux-ubuntu20-x86_64-gcc9.3” dated “2020 June 11 23:10 UTC” …
root-config --python-version
shows only 3.8.2.
I think it should return a string with both python versions.
root-config --config
shows only two python related variables:
Python2_LIBRARY_RELEASE
Python3_LIBRARY_RELEASE
This may be too few … see this thread:
I guess, it would be nice to add:
Python2_INCLUDE_DIR
Python3_INCLUDE_DIR
and possibly also:
Numpy2_INCLUDE_DIR
Numpy3_INCLUDE_DIR
Well, let’s see how the new version behaves …
Some “tutorials/pyroot” macros work in both python versions (e.g. “hsimple.py”, “multifit.py”, “zdemo.py”).
Quite a few are broken and do not work in any (e.g. “demo.py”, “gui_ex.py”, “ratioplot.py”).
Some work with one python version but not with the other one (e.g. “DynamicSlice.py” works in python3 but terribly hangs in python2).
A python2 trial … I click the “Help on Demos” button …
[...]$ python2 demo.py
enter "q" to quit: input_line_62:1:64: error: redefinition of 'is_equal'
namespace __cppyy_internal { template<class C1, class C2> bool is_equal(...
^
input_line_13:1:64: note: previous definition is here
namespace __cppyy_internal { template<class C1, class C2> bool is_equal(...
^
input_line_63:1:64: error: redefinition of 'is_not_equal'
namespace __cppyy_internal { template<class C1, class C2> bool is_not_eq...
^
input_line_14:1:64: note: previous definition is here
namespace __cppyy_internal { template<class C1, class C2> bool is_not_eq...
^
*** Break *** segmentation violation
(...)
A python3 trial … I click the “Help on Demos” button …
[...]$ python3 demo.py
enter "q" to quit: Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'execfile' is not defined
BTW. The “demo.py” references nonexistent macros, e.g. “first.py”.