#541 [pytango] problem during use of python3 version

closed-fixed
5
2012-10-01
2012-09-23
No

Hello, it seems that a few part of the code are not yet python3 ready

ITango [1]: dev = Device(
An unexpected exception ocorred during ITango command completer.
Please send a bug report to the PyTango team with the following information:
--------------------------------------------------------------------------------
Completer: __DeviceProxy_completer
--------------------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/PyTango/ipython/ipython_00_11/ipython_00_11.py", line 644, in wrapper
return f(ip, evt)
File "/usr/lib/python3/dist-packages/PyTango/ipython/ipython_00_11/ipython_00_11.py", line 129, in __DeviceProxy_completer
ret.extend(db._db_cache.aliases.keys())
AttributeError: 'dict_keys' object has no attribute 'extend'
--------------------------------------------------------------------------------

An unexpected exception ocorred during ITango command completer.
Please send a bug report to the PyTango team with the following information:
--------------------------------------------------------------------------------
Completer: __DeviceProxy_completer
--------------------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/PyTango/ipython/ipython_00_11/ipython_00_11.py", line 644, in wrapper
return f(ip, evt)
File "/usr/lib/python3/dist-packages/PyTango/ipython/ipython_00_11/ipython_00_11.py", line 129, in __DeviceProxy_completer
ret.extend(db._db_cache.aliases.keys())
AttributeError: 'dict_keys' object has no attribute 'extend'
--------------------------------------------------------------------------------

when using 2to3 on this file I got the attached diff

Discussion

  • Frédéric PICCA

     
  • Tiago Coutinho

    Tiago Coutinho - 2012-10-01
    • status: open --> closed-fixed
     
  • Tiago Coutinho

    Tiago Coutinho - 2012-10-01

    Thanks for reporting

    fixed in SVN trunk since revision #21187.
    Will become visible in next PyTango release 8.0.1

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks