I just managed to compile ROOT from master (still trying to test a bug fix), but PyROOT now doesn’t like getting imported. Here is the error message, related to “cppyy” which afaik is a PyPy thing, but I am not using PyPy. I’m showing my Python sys.path to show I am inveed importing the right ROOT version.
I’ve also attached my cmake & build log as a file.
Versions:
ipython: 5.1.0
root: 6.07/07 (cloned from github this morning)
python: 2.7.12
OSX: 10.9.5
clang: 3.6.2
gfortran: 5.4.0
[12:15]~/Software/root/build/bin$ ipython
Python 2.7.12 (default, Jul 3 2016, 13:35:10)
Type "copyright", "credits" or "license" for more information.
IPython 5.1.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: import ROOT
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-1-b332e25ada1f> in <module>()
----> 1 import ROOT
/Users/jfcaron/Software/root/build/lib/ROOT.py in <module>()
22 ### system and interpreter setup ------------------------------------------------
23 import os, sys, types
---> 24 import cppyy
25
26 ## there's no version_info in 1.5.2
/Users/jfcaron/Software/root/build/lib/cppyy.py in <module>()
178 return klass
179
--> 180 class _global_cpp( with_metaclass( _ns_meta ) ):
181 class std( with_metaclass( _stdmeta, object ) ):
182 stlclasses = ( 'complex', 'pair', \
/Users/jfcaron/Software/root/build/lib/cppyy.py in _global_cpp()
179
180 class _global_cpp( with_metaclass( _ns_meta ) ):
--> 181 class std( with_metaclass( _stdmeta, object ) ):
182 stlclasses = ( 'complex', 'pair', \
183 'deque', 'list', 'queue', 'stack', 'vector', 'map', 'multimap', 'set', 'multiset' )
/Users/jfcaron/Software/root/build/lib/cppyy.py in std()
186 locals()[ name ] = Template( 'std::%s' % name )
187
--> 188 string = _backend.CreateScopeProxy( 'string' )
189
190 else:
AttributeError: 'module' object has no attribute 'CreateScopeProxy'
In [2]: ROOT
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-2-72d7b3e1f42a> in <module>()
----> 1 ROOT
NameError: name 'ROOT' is not defined
In [3]: import sys
In [4]: sys.path
Out[4]:
['',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin',
'/Users/jfcaron/Software/root/build/lib',
'/Users/jfcaron/Software/root/build/bin',
'/Users/jfcaron/Macros',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/extensions',
'/Users/jfcaron/.ipython']
buildlog.txt (368 KB)