Skip to content

Fix python error when using the DaVinci configurable with the Upgrade DataType

Olli Lupton requested to merge olupton_fix_davinci_upgrade into master

Fix python error when using the DaVinci configurable with the Upgrade DataType and no specific list of detectors.

The error was:

Traceback (most recent call last):
  File "/tmpdata/olupton/ZombieMoore/Bender/Phys/Bender/scripts/bender", line 392, in <module>
    gaudi  = appMgr ()
  File "/tmpdata/olupton/ZombieMoore/Bender/Phys/Bender/python/Bender/Utils.py", line 613, in appMgr
    _g = GaudiPython.Bindings.AppMgr()
  File "/tmpdata/olupton/ZombieMoore/Gaudi/InstallArea/x86_64-centos7-gcc62-opt/python/GaudiPython/Bindings.py", line 888, in __new__
    cls.__init__(newobj, *args, **kwargs)
  File "/tmpdata/olupton/ZombieMoore/Gaudi/InstallArea/x86_64-centos7-gcc62-opt/python/GaudiPython/Bindings.py", line 943, in __init__
    GaudiKernel.Proxy.Configurable.applyConfigurableUsers()
  File "/tmpdata/olupton/ZombieMoore/Gaudi/InstallArea/x86_64-centos7-gcc62-opt/python/GaudiKernel/Configurable.py", line 1497, in applyConfigurableUsers
    c.__apply_configuration__()
  File "/tmpdata/olupton/ZombieMoore/DaVinci/InstallArea/x86_64-centos7-gcc62-opt/python/DaVinci/Configuration.py", line 676, in __apply_configuration__
    self._upgradeAction()
  File "/tmpdata/olupton/ZombieMoore/DaVinci/InstallArea/x86_64-centos7-gcc62-opt/python/DaVinci/Configuration.py", line 599, in _upgradeAction
    upgrade_only_dets = [ d for d in __known_upgrade_detectors__ if d not in __known_default_detectors]
NameError: global name '__known_upgrade_detectors__' is not defined

when using e.g. bender -d Upgrade.

Merge request reports