Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in k4run: ImportError: cannot import name 'EventCounter' from 'Gaudi.Configurables' (unknown location) #255

Closed
dasphy opened this issue Oct 30, 2024 · 3 comments

Comments

@dasphy
Copy link
Contributor

dasphy commented Oct 30, 2024

Hi experts,
I'm using k4run for calo reconstruction, the command is:

$ k4run test/reconstruction/digi_reco.py --IOSvc.Output test/reconstruction/root/reconstruction_energy_10000_theta_90_particle_gamma_jobid_1.root --IOSvc.Input test/simulation/simulation_energy_10000_theta_90_particle_gamma.root

However there's an import error:

Traceback (most recent call last):
  File "/cvmfs/sw-nightlies.hsf.org/key4hep/releases/2024-10-30/x86_64-almalinux9-gcc14.2.0-opt/k4fwcore/250eed082d3bbe153b61776666a5f05fc7314c0c_develop-3dtzdt/bin/k4run", line 258, in <module>
    main()
  File "/cvmfs/sw-nightlies.hsf.org/key4hep/releases/2024-10-30/x86_64-almalinux9-gcc14.2.0-opt/k4fwcore/250eed082d3bbe153b61776666a5f05fc7314c0c_develop-3dtzdt/bin/k4run", line 184, in main
    load_file(file)
  File "/cvmfs/sw-nightlies.hsf.org/key4hep/releases/2024-10-30/x86_64-almalinux9-gcc14.2.0-opt/k4fwcore/250eed082d3bbe153b61776666a5f05fc7314c0c_develop-3dtzdt/python/k4FWCore/utils.py", line 85, in load_file
    exec(code, globals())
  File "<string>", line 108, in <module>
ImportError: cannot import name 'EventCounter' from 'Gaudi.Configurables' (unknown location)

Do you have any idea about fixing that?

Cheers, Tong

@dasphy dasphy added the enhancement New feature or request label Oct 30, 2024
@andresailer andresailer removed the enhancement New feature or request label Oct 30, 2024
@andresailer
Copy link
Contributor

EventCounter no longer exists from Gaudi. A new one was only now merged to k4FWCore.
Delete the EventCounter from the steering file you are using.

cf. #219 #252

@jmcarcell
Copy link
Member

Or starting tomorrow it will be possible to import it from Configurables instead of Gaudi.Configurables.

@dasphy
Copy link
Contributor Author

dasphy commented Nov 1, 2024

Thank you! I think this issue can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants