tango-simlib: Can't start DS!
|
|
---|---|
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
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:
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 |
|
|
---|---|
Hi Manu Sorry to hear that. I have tried to reproduce the error and it seems like this only happens when you start your DS with the command: . The DS (both the sim device and sim control device) starts up when you run it with: .Kind regards, K. Madisa |
|
|
---|---|
Hi, I agree, the DS now starts but I do not really understand. The first line of the generated code is the usual
and therefore, executing the file should be enough. Is there something I miss here? Regards Emmanuel |
|
|
---|---|
Hi Manu, The DS is supposed to start when you run: The reason why it is raising the exception is the way we are processing the command line arguments in the helper_module.py: This results in the wrong server name being returned, in this case:
Which, in short, results in the model having the default_name 'test/nodb/tangodeviceserver' Which means when the sim control device tries to look up the model that matches the name in the device property ("et/weather/01") it does not find it and therefore raises the RuntimeError.The team has fixed that and the new changes have been merged into the master branch. We appreciate your valuable feedback and hope you will let us know if you face any problems when using the package. Kind regards, K. Madisa |