Panda and Numpy are not required to use Pyomo, so this wouldn’t be an issue related to versions for those packages.
I need more error information. A full stack trace would look something like this:
$ python junk.py
Traceback (most recent call last):
File "junk.py", line 11, in <module>
model.c = Constraint(model.s, model.S[1], rule=lambda m,i: m.x >= 1)
File “~/pyomo/src/pyomo/pyomo/core/base/block.py", line 443, in __setattr__
self.add_component(name, val)
File “~/pyomo/src/pyomo/pyomo/core/base/block.py", line 681, in add_component
self._add_temporary_set(val)
File “~/pyomo/src/pyomo/pyomo/core/base/block.py", line 585, in _add_temporary_set
if
tset.name == "_unknown_":
AttributeError: '_IndexedSetData' object has no attribute 'name'