Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ChristophMacbook:tmp deil$ ipython
Python 3.4.3 (default, May 26 2015, 19:25:32)
Type "copyright", "credits" or "license" for more information.
IPython 3.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 rootpy
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-1-c688f95e9568> in <module>()
----> 1 import rootpy
/Users/deil/Library/Python/3.4/lib/python/site-packages/rootpy-0.8.0.dev0-py3.4.egg/rootpy/__init__.py in <module>()
25 # Needed for "from rootpy import QROOT" by other modules
26 from .utils import quickroot as QROOT
---> 27 from . import defaults
28 from .base import Object
29 from .info import __version__
/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/ROOT.py in _importhook(name, *args, **kwds)
350 except Exception:
351 pass
--> 352 return _orig_ihook( name, *args, **kwds )
353
354 __builtin__.__import__ = _importhook
/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/ROOT.py in _importhook(name, *args, **kwds)
350 except Exception:
351 pass
--> 352 return _orig_ihook( name, *args, **kwds )
353
354 __builtin__.__import__ = _importhook
/Users/deil/Library/Python/3.4/lib/python/site-packages/rootpy-0.8.0.dev0-py3.4.egg/rootpy/defaults.py in <module>()
165 if '__IPYTHON__' in __builtins__:
166 # ROOT has a bug causing it to print (Bool_t)1 to the console.
--> 167 fix_ipython_startup(finalSetup)
168
169 else:
/Users/deil/Library/Python/3.4/lib/python/site-packages/rootpy-0.8.0.dev0-py3.4.egg/rootpy/logger/magic.py in fix_ipython_startup(fn)
383 consts = fn.im_func.func_code.co_consts
384 else:
--> 385 consts = fn.im_func.__code__.co_consts
386 if BADSTR not in consts:
387 return
AttributeError: 'function' object has no attribute 'im_func'
In [2]:
Do you really want to exit ([y]/n)?
ChristophMacbook:tmp deil$ python
Python 3.4.3 (default, May 26 2015, 19:25:32)
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import rootpy
@ndawe

This comment has been minimized.

Copy link

@ndawe ndawe commented Jun 2, 2015

Fixed. PR coming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment