Hello all,
I am evaluating tango-simlib. I have PyTango 9.2.1 (Tango 9.2.5) and I have downloaded tango-simlib. I have generated a simulator device
for the provided Weather class device interface. The command I used to generate the simulator was
tango-simlib-generator --sim-data-file Weather.xmi --directory . --dserver-name Weather
Then I have manually created the DS entries in database. Attached is a window dump of Jive where my DS configuration is displayed.
Then, when I start the DS, I have the following error:
./Weather manu
Exiting: Server exited with tango.DevFailed:
DevFailed[
DevError[
desc = RuntimeError: Could not find model with device name or key et/weather/01. Set the "model_key" device property to the correct value.
origin = File "/home/taurel/.local/lib/python2.7/site-packages/tango/device_class.py", line 553, in __DeviceClass__device_factory
device = self._new_device(deviceImplClass, klass, dev_name)
File "/home/taurel/.local/lib/python2.7/site-packages/tango/device_class.py", line 533, in __DeviceClass__new_device
return klass(dev_class, dev_name)
File "/home/taurel/.local/lib/python2.7/site-packages/tango_simlib/sim_test_interface.py", line 35, in __init__
super(TangoTestDeviceServerBase, self).__init__(dev_class, name)
File "/home/taurel/.local/lib/python2.7/site-packages/tango/server.py", line 551, in __init__
self.init_device()
File "/home/taurel/.local/lib/python2.7/site-packages/tango/server.py", line 349, in init_device
return get_worker().execute(init_device_orig, self)
File "/home/taurel/.local/lib/python2.7/site-packages/tango/server.py", line 1498, in execute
return func(*args, **kwargs)
File "/home/taurel/.local/lib/python2.7/site-packages/tango_simlib/tango_sim_generator.py", line 311, in init_device
super(SimControl, self).init_device()
File "/home/taurel/.local/lib/python2.7/site-packages/tango/server.py", line 349, in init_device
return get_worker().execute(init_device_orig, self)
File "/home/taurel/.local/lib/python2.7/site-packages/tango/server.py", line 1498, in execute
return func(*args, **kwargs)
File "/home/taurel/.local/lib/python2.7/site-packages/tango_simlib/sim_test_interface.py", line 54, in init_device
'correct value.'.format(self.model_key))
reason = PyDs_PythonError
severity = ERR]
]
Exited
I do not understand the reason of my problem. The model_key property
is defined to “et/weather/01” which is my Weather class device name.
Any idea of what could be the reason of this exception?
Please note that if I do not have any device of the simulation control
class, the DS starts correctly.
Thank’s in advance for your answer
Emmanuel