Menu

#573 [pytango] python3 error with unregistered device

closed-fixed
PyTango
5
2013-08-28
2013-02-22
No

ITango 8.0.2 -- An interactive Tango client.

Running on top of Python 3.2.3, IPython 0.13.1 and PyTango 8.0.2

help -> ITango's help system.
object? -> Details about 'object'. ?object also works, ?? prints more.

hint: Try typing: mydev = Device("<tab>

ITango [1]: db = DeviceProxy("sys/database/22")
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/usr/lib/python3/dist-packages/PyTango/ipython/ipython_00_11/ipython_00_11.py in __exc_handler(ip, etype, value, tb, tb_offset)
549 user_ns[_TANGO_ERR] = etype, value, tb, tb_offset
550 if len(value.args):
--> 551 v = value[0]
552 print("%s: %s" % (v.reason ,v.desc))
553 else:

TypeError: 'DevFailed' object does not support indexing
The original exception:
Custom TB Handler failed, unregistering

ITango [2]:

if I do the same with python2 it is ok

picca@mordor:~$ itango
ITango 8.0.2 -- An interactive Tango client.

Running on top of Python 2.7.3, IPython 0.13.1 and PyTango 8.0.2

help -> ITango's help system.
object? -> Details about 'object'. ?object also works, ?? prints more.

IPython profile: tango

hint: Try typing: mydev = Device("<tab>

ITango [1]: db = DeviceProxy("sys/database/22")
DB_DeviceNotDefined: device sys/database/22 not defined in the database !
(For more detailed information type: tango_error)

Discussion

  • Emmanuel Taurel

    Emmanuel Taurel - 2013-06-06
    • Category: --> PyTango
     
  • Tiago Coutinho

    Tiago Coutinho - 2013-08-28
    • status: open --> closed-fixed
     
  • Tiago Coutinho

    Tiago Coutinho - 2013-08-28

    Fixed.
    Will become visible in next PyTango releases 8.0.4 and 8.1.0

     

Log in to post a comment.

MongoDB Logo MongoDB