wicd-1.7.3 is incompatible with urwid-1.3.0

Bug #1429253 reported by Tomka-w
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
wicd
New
Undecided
Unassigned

Bug Description

Urwid changed API agin. This is what happens:

Traceback (most recent call last):
  File "/usr/share/wicd/curses/wicd-curses.py", line 1307, in <module>
    main()
  File "/usr/share/wicd/curses/wicd-curses.py", line 1224, in main
    ui.run_wrapper(run)
  File "/usr/lib64/python2.7/site-packages/urwid/display_common.py", line 757, in run_wrapper
    return fn()
  File "/usr/share/wicd/curses/wicd-curses.py", line 97, in wrapper
    return func(*args, **kargs)
  File "/usr/share/wicd/curses/wicd-curses.py", line 1234, in run
    app = appGUI()
  File "/usr/share/wicd/curses/wicd-curses.py", line 754, in __init__
    self.update_status()
  File "/usr/share/wicd/curses/wicd-curses.py", line 97, in wrapper
    return func(*args, **kargs)
  File "/usr/share/wicd/curses/wicd-curses.py", line 924, in update_status
    self.set_status):
  File "/usr/share/wicd/curses/wicd-curses.py", line 97, in wrapper
    return func(*args, **kargs)
  File "/usr/share/wicd/curses/wicd-curses.py", line 177, in check_for_wireless
    ('$C', ip))
  File "/usr/share/wicd/curses/wicd-curses.py", line 974, in set_status
    self.update_ui()
  File "/usr/share/wicd/curses/wicd-curses.py", line 97, in wrapper
    return func(*args, **kargs)
  File "/usr/share/wicd/curses/wicd-curses.py", line 1156, in update_ui
    input_data = ui.get_input_nonblocking()
AttributeError: 'Screen' object has no attribute 'get_input_nonblocking'

Revision history for this message
Tomka-w (tomka-w) wrote :

This was already mentioned in bug #1075399, but I made this bug to give it more visibility. The other bug was about api changes in 1.1.0

Revision history for this message
Michał Górny (mgorny) wrote :

We've been made aware that Arch has a patch for this; https://projects.archlinux.org/svntogit/packages.git/tree/trunk/wicd-1.7.3-urwid-1.3.0.patch?h=packages/wicd. I don't know about its compatibility with older urwid versions.

Revision history for this message
Ryan P. C. McQuen (ryanpcmcquen) wrote :

This is the only patch that works for me:

https://github.com/voidlinux/void-packages/blob/master/srcpkgs/wicd/patches/curses_bitrate_fix.patch

Works with wicd 1.7.3 and urwid 1.3.0.

Revision history for this message
Tomka-w (tomka-w) wrote : Re: [Bug 1429253] Re: wicd-1.7.3 is incompatible with urwid-1.3.0

In Gentoo we fixed this differently:
https://bugs.gentoo.org/show_bug.cgi?id=541936

On 31/08/15 20:05, Ryan P.C. McQuen wrote:
> This is the only patch that works for me:
>
> https://github.com/voidlinux/void-
> packages/blob/master/srcpkgs/wicd/patches/curses_bitrate_fix.patch
>
> Works with wicd 1.7.3 and urwid 1.3.0.
>

--
Thomas Kahle
http://dev.gentoo.org/~tomka/

Revision history for this message
Ryan P. C. McQuen (ryanpcmcquen) wrote :

Tomka, we already had the Gentoo patch you mentioned in the Slackware tree, even with that I still get this error when editing a new network with `wicd-curses`:

Traceback (most recent call last):
  File "/usr/share/wicd/curses/wicd-curses.py", line 1146, in call_update_ui
    self.update_ui(True)
  File "/usr/share/wicd/curses/wicd-curses.py", line 97, in wrapper
    return func(*args, **kargs)
  File "/usr/share/wicd/curses/wicd-curses.py", line 1159, in update_ui
    self.handle_keys(input_data)
  File "/usr/share/wicd/curses/wicd-curses.py", line 1037, in handle_keys
    self.diag = WirelessSettingsDialog(pos, self.frame)
  File "/usr/share/wicd/curses/netentry_curses.py", line 503, in __init__
    self.set_values()
  File "/usr/share/wicd/curses/netentry_curses.py", line 543, in set_values
    wireless.GetWirelessProperty(networkID, 'bitrate')
ValueError: None is not in list

So far this is the only patch that has helped:

https://github.com/voidlinux/void-packages/blob/master/srcpkgs/wicd/patches/curses_bitrate_fix.patch

And I have tried several!

Revision history for this message
Ryan P. C. McQuen (ryanpcmcquen) wrote :

Patch from void linux:
https://github.com/voidlinux/void-packages/blob/master/srcpkgs/wicd/patches/curses_bitrate_fix.patch

Fixes this error when editing a new network with wicd-curses:
Traceback (most recent call last):
  File "/usr/share/wicd/curses/wicd-curses.py", line 1146, in call_update_ui
    self.update_ui(True)
  File "/usr/share/wicd/curses/wicd-curses.py", line 97, in wrapper
    return func(*args, **kargs)
  File "/usr/share/wicd/curses/wicd-curses.py", line 1159, in update_ui
    self.handle_keys(input_data)
  File "/usr/share/wicd/curses/wicd-curses.py", line 1037, in handle_keys
    self.diag = WirelessSettingsDialog(pos, self.frame)
  File "/usr/share/wicd/curses/netentry_curses.py", line 503, in __init__
    self.set_values()
  File "/usr/share/wicd/curses/netentry_curses.py", line 543, in set_values
    wireless.GetWirelessProperty(networkID, 'bitrate')
ValueError: None is not in list

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.