Bug 1209413

Summary: [abrt] wicd-gtk: configscript.py:106:write_scripts:TypeError: write() takes exactly 1 argument (2 given)
Product: [Fedora] Fedora Reporter: Oleg <oleg-sz>
Component: wicdAssignee: David Cantrell <dcantrell>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: dcantrell
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/f9d8517d040d571d3d874a5280db1cc394f3a4d3
Whiteboard: abrt_hash:5fd4a9015f1c2269316daa40bcb7c5cb8d753dc0
Fixed In Version: wicd-1.7.3-1.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-19 16:24:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Oleg 2015-04-07 10:17:24 UTC
Version-Release number of selected component:
wicd-gtk-1.7.2.4-14.fc21

Additional info:
reporter:       libreport-2.3.0
cmdline:        python /usr/share/wicd/gtk/configscript.py 0 wireless
executable:     /usr/share/wicd/gtk/configscript.py
kernel:         3.19.3-200.fc21.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
configscript.py:106:write_scripts:TypeError: write() takes exactly 1 argument (2 given)

Traceback (most recent call last):
  File "/usr/share/wicd/gtk/configscript.py", line 162, in <module>
    main(sys.argv)
  File "/usr/share/wicd/gtk/configscript.py", line 154, in main
    write_scripts(network, network_type, script_info)
  File "/usr/share/wicd/gtk/configscript.py", line 106, in write_scripts
    con.write(open(wireless_conf, "w"))
TypeError: write() takes exactly 1 argument (2 given)

Local variables in innermost frame:
network: '0'
script_info: {'post_entry': 'None', 'post_disconnect_entry': 'None\n= localhost.localdomain\n= None\n= 1\n= localhost.localdomain\n= None\n= None\n= localhost.localdomain\n= None\n= None\n= None\n= 1', 'pre_disconnect_entry': 'None\n= 0123456789\n', 'pre_entry': 'None'}
network_type: 'wireless'
bssid: dbus.String(u'10:47:80:62:70:05')
con: /etc/wicd/wireless-settings.conf

Comment 1 Oleg 2015-04-07 10:17:27 UTC
Created attachment 1011681 [details]
File: backtrace

Comment 2 Oleg 2015-04-07 10:17:28 UTC
Created attachment 1011682 [details]
File: environ

Comment 3 Fedora Update System 2015-05-05 18:20:27 UTC
wicd-1.7.3-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/wicd-1.7.3-1.fc21

Comment 4 Fedora Update System 2015-05-10 23:40:27 UTC
Package wicd-1.7.3-1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 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.3-1.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-7685/wicd-1.7.3-1.fc21
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2015-05-19 16:24:00 UTC
wicd-1.7.3-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.