Menu

#648 PyTango unicode method parameters fail

closed-fixed
None
PyTango
2
2014-02-03
2014-02-03
No

Hello,

I have PyTango 8.1.1

When using python < 3.0 the methods which are supposed to be given strings don't work if a unicode object is given. Examples:

PyTango.DeviceProxy(unicode("sys/tg_test/1"))

raises:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/users/coutinho/local/lib/python/site-packages/PyTango/device_proxy.py", line 126, in DeviceProxy__init
return DeviceProxy.init_orig(self, args, kwargs)
Boost.Python.ArgumentError: Python argument types in
DeviceProxy.init(DeviceProxy, unicode)
did not match C++ signature:
init(_object
, Tango::DeviceProxy)
init(_object, char const, bool)
init(_object, std::string {lvalue})
init(_object
, char const)
init(_object
)</module></stdin>

this is specially critical when using PyTango with other libraries, for example Qt.

Discussion

  • Tiago Coutinho

    Tiago Coutinho - 2014-02-03
    • status: open --> closed-fixed
     
  • Tiago Coutinho

    Tiago Coutinho - 2014-02-03

    Fixed in PyTango SVN trunk since revision #24824.
    Will become visible in next PyTango 8.1.2

     

Log in to post a comment.

MongoDB Logo MongoDB