Menu

#635 Reading of ULong64 attributes does not work

closed-duplicate
PyTango
5
2019-01-16
2013-01-14
No

Hi,

I'm using PyTango 7.2.3 on SL6.
I've wanted to write a Python test server with all possible Tango types and I've noticed that I cannot read DevULong64 Tango Types. I get the following error. (I attached the server code generated by Pogo). Is DevULong64 not allowed?

Python 2.6.6 (r266:84292, May 20 2011, 16:42:11)
[GCC 4.4.5 20110214 (Red Hat 4.4.5-6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyTango
>>> dp = PyTango.DeviceProxy("stestp09/testss/s1r228")
>>> dp.ScalarULong64
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib64/python2.6/site-packages/PyTango/device_proxy.py", line 112, in __DeviceProxy__getattr
return self.read_attribute(name).value
File "/usr/local/lib64/python2.6/site-packages/PyTango/device_proxy.py", line 150, in __DeviceProxy__read_attribute
return __check_read_attribute(self._read_attribute(value, extract_as))
File "/usr/local/lib64/python2.6/site-packages/PyTango/device_proxy.py", line 57, in __check_read_attribute
raise DevFailed(*dev_attr.get_err_stack())
PyTango.DevFailed: DevFailed[
DevError[
desc = TypeError: Expecting a numeric type, but it is not. If you use a numpy type instead of python core types, then it must exactly match (ex: numpy.int32 for PyTango.DevLong)

origin = File "./SimpleServer.py", line 99, in read_ScalarULong64
attr.set_value(attr_ScalarULong64_read)

reason = PyDs_PythonError
severity = ERR]

DevError[
desc = Failed to read_attribute on device stestp09/testss/s1r228, attribute ScalarULong64
origin = DeviceProxy::read_attribute()
reason = API_AttributeFailed
severity = ERR]
]

Cheers,
Jan

Discussion

  • Jan Kotanski

    Jan Kotanski - 2013-01-14
     
  • Emmanuel Taurel

    Emmanuel Taurel - 2013-07-09
    • Category: --> PyTango
     
  • Tiago Coutinho

    Tiago Coutinho - 2013-11-22

    Ticket moved from /p/tango-cs/feature-requests/82/

     
  • Tiago Coutinho

    Tiago Coutinho - 2013-11-22
    • status: open --> closed-duplicate
     
  • Tiago Coutinho

    Tiago Coutinho - 2013-11-22

    hello,

    I completely missed this bug. It was in the feature request list.
    I move it to the bug list.

    Fixed in PyTango SVN trunk since revision #24232
    Will become visible in next PyTango release 8.1.1

    See also:
    https://sourceforge.net/p/tango-cs/bugs/527/

     
  • Tiago Coutinho

    Tiago Coutinho - 2013-11-22
    • labels: python_binding --> Python bindin
     
  • Tiago Coutinho

    Tiago Coutinho - 2013-11-22
    • labels: Python bindin --> Python binding
     
  • Bourtembourg Reynald

    This was fixed in revision #24332, not #24232.

     

Log in to post a comment.

MongoDB Logo MongoDB