Skip to content

Property name missing in error message

This error message should be improved:

from GaudiConfig2.Configurables import PropertyAlg
alg = PropertyAlg()
alg.StringArray = [3]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/scratch/fwinkl/Gaudi/src/GaudiConfiguration/python/GaudiConfig2/_configurables.py", line 61, in __set__
    instance._properties[self.name] = self.semantics.store(value)
  File "/scratch/fwinkl/Gaudi/src/GaudiConfiguration/python/GaudiConfig2/semantics.py", line 360, in store
    new_value.extend(value)
  File "/scratch/fwinkl/Gaudi/src/GaudiConfiguration/python/GaudiConfig2/semantics.py", line 340, in extend
    self.data.extend(self.value_semantics.store(value) for value in iterable)
  File "/scratch/fwinkl/Gaudi/src/GaudiConfiguration/python/GaudiConfig2/semantics.py", line 340, in <genexpr>
    self.data.extend(self.value_semantics.store(value) for value in iterable)
  File "/scratch/fwinkl/Gaudi/src/GaudiConfiguration/python/GaudiConfig2/semantics.py", line 134, in store
    raise ValueError("cannot set property {} to {!r}".format(self.name, value))
ValueError: cannot set property None to 3

We are somehow no propagating the property name. There is this obvious bug in semantics but fixing that by itself doesn't help.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information