Comments (5)
I also get the same error while importing into python3.8. I am using the latest rootproject/root-archlinux docker image.
I tried to use @masonproffitt fix, directly from their fork as they described above. The issue with import rootpy
was solved, but when importing other stuff, such as from rootpy.plotting import Hist
, I get the following errors:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/rootpy/rootpy/plotting/__init__.py", line 6, in <module>
from ..utils.hook import classhook, super_overridden
File "/usr/lib/python3.8/site-packages/ROOT.py", line 522, in _importhook
return _orig_ihook( name, *args, **kwds )
File "/tmp/rootpy/rootpy/utils/hook.py", line 6, in <module>
from .inject_closure import inject_closure_values
File "/usr/lib/python3.8/site-packages/ROOT.py", line 522, in _importhook
return _orig_ihook( name, *args, **kwds )
File "/tmp/rootpy/rootpy/utils/inject_closure.py", line 5, in <module>
from ..extern import byteplay3 as byteplay
File "/usr/lib/python3.8/site-packages/ROOT.py", line 522, in _importhook
return _orig_ihook( name, *args, **kwds )
File "/tmp/rootpy/rootpy/extern/byteplay3/__init__.py", line 9, in <module>
from .wbyteplay import *
File "/usr/lib/python3.8/site-packages/ROOT.py", line 522, in _importhook
return _orig_ihook( name, *args, **kwds )
File "/tmp/rootpy/rootpy/extern/byteplay3/wbyteplay.py", line 93, in <module>
BREAK_LOOP,
NameError: name 'BREAK_LOOP' is not defined
from rootpy.
I also faced a similar issue while converting a ROOT file into a hdf5 file using root2hdf5. Were you able to find any solution to this error?
from rootpy.
@sahilyadav27 No I didn't succeed. Seems to be a more detailed problem. For your application maybe you can check uproot, to read ROOT files and convert them to hdf5 format yourself using h5py.
from rootpy.
Thanks for the information @xaratustrah ! I was able to solve this issue by downgrading python to 3.7 since rootpy doesn't work well with 3.8. But there were some other issues while reading tree branches though.
from rootpy.
It does not work also in python 3.9
from rootpy.
Related Issues (20)
- RootPy installation - ROOT cannot be imported? HOT 1
- Errors when installing with latest recommended ROOT HOT 2
- How to deal with roopy features that are adapted by PYROOT?
- Fill an STL vector of vectors HOT 3
- root errors turn always in python exceptions HOT 1
- Crash from import rootpy when HOME in not set.
- invalid escape sequence in BaseTree.DRAW_PATTERN
- rootpy.org no longer available HOT 4
- Error in unpickly root file with python3 HOT 8
- rootpy.io.file.walk gets slower the longer you "walk" HOT 1
- RDataFrame support?
- rootpy and ROOT 6.18 HOT 5
- byteplay implementation incompatible with Python 3.8 opcode changes
- rootpy build failure with ROOT 6.20
- rootpy incompatible with the new PyROOT HOT 2
- Warning in <TClass::Init>: no dictionary for class RooSTLRefCountList<RooAbsArg> is available
- Change cache location? HOT 2
- Axis ticks hidden behind histogram despite sufficiently large zorder HOT 1
- Rootpy/Pyroot Python 3.8 for Windows 11 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rootpy.