Git Product home page Git Product logo

Comments (5)

xaratustrah avatar xaratustrah commented on June 5, 2024

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.

sahilyadav27 avatar sahilyadav27 commented on June 5, 2024

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.

xaratustrah avatar xaratustrah commented on June 5, 2024

@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.

sahilyadav27 avatar sahilyadav27 commented on June 5, 2024

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.

benedettosiddi avatar benedettosiddi commented on June 5, 2024

It does not work also in python 3.9

from rootpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.