question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

rootpy and ROOT 6.18

See original GitHub issue

Hi! I have recently moved to ROOT 6.18/04 and rootpy has stopped working, returning the following error at import time

In [2]: import rootpy
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-2-75756a455cd2> in <module>()
----> 1 import rootpy

/Users/manzoni/opt/anaconda2/lib/python2.7/site-packages/rootpy/__init__.py in <module>()
     29 from .logger import log
     30 # Needed for "from rootpy import QROOT" by other modules
---> 31 from .utils import quickroot as QROOT
     32 from . import defaults
     33 from .base import Object

/Users/manzoni/opt/anaconda2/lib/python2.7/site-packages/rootpy/utils/quickroot.py in <module>()
     13
     14
---> 15 root_module = ROOT.module._root
     16 if hasattr(root_module, 'LookupCppEntity'):  # pragma: no cover
     17     lookup_func = 'LookupCppEntity'

AttributeError: 'module' object has no attribute '_root'

has something changed under ROOT’s hood that makes rootpy crash?

Thanks

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
smuzaffarcommented, Mar 16, 2020

although you can disable the new pyroot by using -Dpyroot_experimental=OFF but we would like to move forward with new pyroot and would like to get a version fo rootpy which works with it. Any plans to support the new pyroot? Otherwise I am afraid we have to drop rootpy from CMSSW software stack

1reaction
mrodozovcommented, Mar 2, 2020

@zodiacfireworks yes, that’s because ROOT is moving on to new PyROOT for which they have enable building the new libs by default. You can see this comment from ROOT devs https://github.com/cms-sw/cmsdist/pull/5531#issuecomment-590760532 on what has changed. You can also add this cmake flag: -Dpyroot_experimental=OFF to have the old lib version

Read more comments on GitHub >

github_iconTop Results From Across the Web

ROOT Version 6.18 Release Notes
ROOT version 6.18/00 was released on June 25, 2019. ... Experimental PyROOT: add MakeNumpyDataFrame factory to process data owned by numpy ...
Read more >
Newbie - ROOT Forum - CERN
Hi all, I am trying to run a code which converts root files to numpy arrays on my /afs space on lxplus, the...
Read more >
1734273 – PyROOT not working with ROOT 6.18
root -6.18.00-3.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this...
Read more >
CERN ROOT Tutorial 28: Using ROOT in Python with PyROOT
You can visit the full playlist for watching all videos of this tutorial ...
Read more >
Efficient analysis with ROOT - GitHub Pages
For the exercises later you need at least ROOT 6.18 and C++14 support. ... PyROOT lets you use C++ from Python but offers...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found