Closed gnyiri closed 8 years ago
I have reproduced this bug. In fact, neither of "read_attribute()" or "command_inout()" methods work on the proxy obtained from the group.
@johanfforsberg Yes, that's because such proxy objects never get their __init__
method called since they're created on the C++ side.
This fix will appear in the pytango 9.2.0 release. @gnyiri Let me know if you need it backported to tango8.
Using State() method on a DeviceProxy returned from get_device of a Group instance throws an exception. The same method works fine when the DeviceProxy instance was created directly. See example below:
Output:
direct access sys/tg_test/1 -> RUNNING Exception caught: _green_mode
Associated C++ version works fine:
The issue was originally reported at tango-controls forum:
http://www.tango-controls.org/community/forums/c/development/python/group-usage-from-pytango/?page=1#post-1526