Bug 1211811

Summary: wicd-curses crash on startup
Product: [Fedora] Fedora EPEL Reporter: Vadim Raskhozhev <iamdexpl>
Component: wicdAssignee: David Cantrell <dcantrell>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: el6CC: allinux4, davidmenhur, dcantrell, extras-qa, ivan.mironov, jones.peter.busi, lnie, nobody, zman0900
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: wicd-1.7.0-6.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 894646 Environment:
Last Closed: 2015-06-08 20:12:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vadim Raskhozhev 2015-04-15 00:30:31 UTC
+++ This bug was initially created as a clone of Bug #894646 +++

Description of problem:
wicd-curses crashes immediately after starting:

Traceback (most recent call last):
  File "/usr/share/wicd/curses/wicd-curses.py", line 1067, in <module>
    main()
  File "/usr/share/wicd/curses/wicd-curses.py", line 995, in main
    ui.run_wrapper(run)
  File "/usr/lib64/python2.7/site-packages/urwid/raw_display.py", line 241, in run_wrapper
    return fn()
  File "/usr/share/wicd/curses/wicd-curses.py", line 88, in wrapper
    return func(*args, **kargs)
  File "/usr/share/wicd/curses/wicd-curses.py", line 1003, in run
    app = appGUI()
  File "/usr/share/wicd/curses/wicd-curses.py", line 548, in __init__
    self.wiredCB = urwid.Filler(WiredComboBox(wiredL))
  File "/usr/share/wicd/curses/wicd-curses.py", line 378, in __init__
    self.__super.__init__(use_enter=False)
  File "/usr/share/wicd/curses/curses_misc.py", line 351, in __init__
    self.focus = focus
AttributeError: can't set attribute

Version-Release number of selected component (if applicable):
wicd-curses-1.7.2.4-2.fc18.noarch
wicd-1.7.2.4-2.fc18.x86_64

How reproducible:
Always

Steps to Reproduce:
1. yum install wicd wicd-curses
2. systemctl start wicd.service
3. wicd-curses
  
Actual results:
Crash with python traceback (see above).

Expected results:
It should run and allow me configure network.

--- Additional comment from Jan Welker on 2013-03-12 11:28:03 EDT ---

The problem is that python-urwid 1.1.1 changed the API and is therefor incompatible with wicd 1.7.2.4

--- Additional comment from David Cantrell on 2013-03-14 15:23:26 EDT ---



--- Additional comment from Fedora Update System on 2013-03-14 15:41:00 EDT ---

wicd-1.7.2.4-3.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/wicd-1.7.2.4-3.fc18

--- Additional comment from Fedora Update System on 2013-03-15 21:44:31 EDT ---

Package wicd-1.7.2.4-3.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing wicd-1.7.2.4-3.fc18'
as soon as you are able to, then reboot.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-3948/wicd-1.7.2.4-3.fc18
then log in and leave karma (feedback).

--- Additional comment from Fedora Update System on 2013-04-01 18:23:12 EDT ---

wicd-1.7.2.4-3.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

--- Additional comment from Dan Ziemba on 2013-04-02 21:17:59 EDT ---

Still crashed for me with the same error.

┌─[dan@fedoramac]─[~]
└──╼ rpm -qa | egrep "wicd|urwid"
wicd-1.7.2.4-3.fc18.x86_64
wicd-gtk-1.7.2.4-3.fc18.noarch
wicd-curses-1.7.2.4-3.fc18.noarch
wicd-common-1.7.2.4-3.fc18.noarch
python-urwid-1.1.1-1.fc18.x86_64

--- Additional comment from David Cantrell on 2013-04-08 09:35:09 EDT ---

Please post the complete traceback you are seeing.  Also, when an update is posted it goes to the testing repo.  If you can, please test the update from the testing repo and then report whether or not it works for you.  Generally speaking, no one ever tests wicd updates and they sit in the testing repo for 14 days and then I move them to stable.

--- Additional comment from Dan Ziemba on 2013-04-08 23:55:24 EDT ---

Here is the traceback from version 1.7.2.4-3.fc18.  There doesn't appear to be a newer version in updates-testing or on koji.  I will test if any become available.

Traceback (most recent call last):
  File "/usr/share/wicd/curses/wicd-curses.py", line 1071, in <module>
    main()
  File "/usr/share/wicd/curses/wicd-curses.py", line 995, in main
    ui.run_wrapper(run)
  File "/usr/lib64/python2.7/site-packages/urwid/raw_display.py", line 241, in run_wrapper
    return fn()
  File "/usr/share/wicd/curses/wicd-curses.py", line 88, in wrapper
    return func(*args, **kargs)
  File "/usr/share/wicd/curses/wicd-curses.py", line 1003, in run
    app = appGUI()
  File "/usr/share/wicd/curses/wicd-curses.py", line 548, in __init__
    self.wiredCB = urwid.Filler(WiredComboBox(wiredL))
  File "/usr/share/wicd/curses/wicd-curses.py", line 378, in __init__
    self.__super.__init__(use_enter=False)
  File "/usr/share/wicd/curses/curses_misc.py", line 351, in __init__
    self.focus = focus
AttributeError: can't set attribute

--- Additional comment from Lokesh Mandvekar on 2013-04-22 20:28:06 EDT ---

I'm getting the same error on rawhide.

--- Additional comment from Lokesh Mandvekar on 2013-04-28 18:40:37 EDT ---

Version 1.7.3 _partially_ fixes this. The first time I try to configure a network, I get this traceback:

Traceback (most recent call last):
  File "/usr/share/wicd/curses/wicd-curses.py", line 1134, in call_update_ui
    self.update_ui(True)
  File "/usr/share/wicd/curses/wicd-curses.py", line 94, in wrapper
    return func(*args, **kargs)
  File "/usr/share/wicd/curses/wicd-curses.py", line 1146, in update_ui
    self.handle_keys(input_data[1])
  File "/usr/share/wicd/curses/wicd-curses.py", line 1028, 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


But, I'm able to connect to a network via wicd-gtk, and once this connection is saved, it can be modified later using wicd-curses.

--- Additional comment from Fedora End Of Life on 2013-12-21 10:17:12 EST ---

This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior to Fedora 18's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

--- Additional comment from Pavel Zhukov on 2013-12-25 07:40:25 EST ---

(In reply to Dan Ziemba from comment #8)
> Here is the traceback from version 1.7.2.4-3.fc18.  There doesn't appear to
> be a newer version in updates-testing or on koji.  I will test if any become
> available.
> 
> Traceback (most recent call last):
>   File "/usr/share/wicd/curses/wicd-curses.py", line 1071, in <module>
>     main()
>   File "/usr/share/wicd/curses/wicd-curses.py", line 995, in main
>     ui.run_wrapper(run)
>   File "/usr/lib64/python2.7/site-packages/urwid/raw_display.py", line 241,
> in run_wrapper
>     return fn()
>   File "/usr/share/wicd/curses/wicd-curses.py", line 88, in wrapper
>     return func(*args, **kargs)
>   File "/usr/share/wicd/curses/wicd-curses.py", line 1003, in run
>     app = appGUI()
>   File "/usr/share/wicd/curses/wicd-curses.py", line 548, in __init__
>     self.wiredCB = urwid.Filler(WiredComboBox(wiredL))
>   File "/usr/share/wicd/curses/wicd-curses.py", line 378, in __init__
>     self.__super.__init__(use_enter=False)
>   File "/usr/share/wicd/curses/curses_misc.py", line 351, in __init__
>     self.focus = focus
> AttributeError: can't set attribute

still in F20

--- Additional comment from Pavel Zhukov on 2013-12-25 08:03:59 EST ---



--- Additional comment from Pavel Zhukov on 2013-12-25 08:06:07 EST ---



--- Additional comment from al morris on 2014-03-05 10:25:30 EST ---

[al@zotac8gig ~]$ sudo systemctl start wicd.service
[al@zotac8gig ~]$ wicd-curses

Traceback (most recent call last):
  File "/usr/share/wicd/curses/wicd-curses.py", line 1067, in <module>
    main()
  File "/usr/share/wicd/curses/wicd-curses.py", line 995, in main
    ui.run_wrapper(run)
  File "/usr/lib64/python2.7/site-packages/urwid/raw_display.py", line 241, in run_wrapper
    return fn()
  File "/usr/share/wicd/curses/wicd-curses.py", line 88, in wrapper
    return func(*args, **kargs)
  File "/usr/share/wicd/curses/wicd-curses.py", line 1003, in run
    app = appGUI()
  File "/usr/share/wicd/curses/wicd-curses.py", line 548, in __init__
    self.wiredCB = urwid.Filler(WiredComboBox(wiredL))
  File "/usr/share/wicd/curses/wicd-curses.py", line 378, in __init__
    self.__super.__init__(use_enter=False)
  File "/usr/share/wicd/curses/curses_misc.py", line 351, in __init__
    self.focus = focus
AttributeError: can't set attribute
[al@zotac8gig ~]$ 

maybe nobody uses this... just curious

going to try the patch
@

--- Additional comment from Peter H. Jones on 2014-03-08 23:32:47 EST ---

Also got this bug in fc20, trying to connect to a WPA2 network. My real interest in wicd would be if it allows creating an access point in XFCE. Network Manager allows creation of access points, but only of type WEP, and in (Gnome) Desktop, not in XFCE.

--- Additional comment from Fedora Update System on 2014-06-30 11:54:26 EDT ---

wicd-1.7.2.4-9.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/wicd-1.7.2.4-9.fc20

--- Additional comment from lnie on 2014-06-30 22:51:18 EDT ---

wicd-1.7.2.4-9.fc20 works

--- Additional comment from Fedora Update System on 2014-07-01 03:23:59 EDT ---

Package wicd-1.7.2.4-9.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing wicd-1.7.2.4-9.fc20'
as soon as you are able to, then reboot.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-7967/wicd-1.7.2.4-9.fc20
then log in and leave karma (feedback).

--- Additional comment from Fedora Update System on 2014-07-02 11:16:06 EDT ---

wicd-1.7.2.4-10.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/wicd-1.7.2.4-10.fc20

--- Additional comment from Fedora Update System on 2014-07-02 11:51:56 EDT ---

wicd-1.7.2.4-11.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/wicd-1.7.2.4-11.fc20

--- Additional comment from Fedora Update System on 2014-09-26 05:06:17 EDT ---

wicd-1.7.2.4-11.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 1 Vadim Raskhozhev 2015-04-15 00:33:00 UTC
wicd-curses-1.7.0-5.el6 from EPEL has exactly the same issue (and resolution) as those from #894646. Please apply the patch https://bugzilla.redhat.com/attachment.cgi?id=841481

Comment 2 David Cantrell 2015-05-05 15:07:57 UTC
Thanks for the patch.  I tested it out locally on a RHEL-6 system and it seemed to solve the problem you are seeing.  I will get an update built and staged today.

Comment 3 Fedora Update System 2015-05-05 15:12:38 UTC
wicd-1.7.0-6.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/wicd-1.7.0-6.el6

Comment 4 Fedora Update System 2015-05-06 17:25:30 UTC
Package wicd-1.7.0-6.el6:
* should fix your issue,
* was pushed to the Fedora EPEL 6 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing wicd-1.7.0-6.el6'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-6140/wicd-1.7.0-6.el6
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2015-06-08 20:12:55 UTC
wicd-1.7.0-6.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.