Bug 917207

Summary: [abrt] wicd-gtk-1.7.2.4-2.fc18: netentry.py:797:add_profile:AttributeError: 'NoneType' object has no attribute 'strip'
Product: [Fedora] Fedora Reporter: Sylvain <syl_acclassato>
Component: wicdAssignee: Dave Cantrell <dcantrell>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dcantrell
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:8fb48ff9f7680fedfa34501220c3ccd5380bf454
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-14 19:26:04 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 Sylvain 2013-03-02 02:50:56 UTC
Description of problem:
1_launch wicd-client
2_go into properties of my Wi-Fi i want to connect to and enter my WPA Password
3_click OK
4_error in console:

setting encryption info...
Traceback (most recent call last):
  File "/usr/share/wicd/gtk/gui.py", line 676, in edit_advanced
    if self.run_settings_dialog(dialog, ttype, networkid, networkentry):
  File "/usr/share/wicd/gtk/gui.py", line 689, in run_settings_dialog
    if self.save_settings(nettype, networkid, networkentry):
  File "/usr/share/wicd/gtk/gui.py", line 654, in save_settings
    if not networkentry.save_wireless_settings(networkid):
  File "/usr/share/wicd/gtk/netentry.py", line 940, in save_wireless_settings
    return self.advanced_dialog.save_settings(networkid)
  File "/usr/share/wicd/gtk/netentry.py", line 591, in save_settings
    encrypt_methods[self.combo_encryption.get_active()]['type'])
  File "/usr/share/wicd/gtk/netentry.py", line 532, in set_net_prop
    wireless.SetWirelessProperty(self.networkID, option, value)
  File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.TypeError: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/share/wicd/daemon/wicd-daemon.py", line 1066, in SetWirelessProperty
    prop = misc.sanitize_config(prop)
  File "/usr/lib/python2.7/site-packages/wicd/misc.py", line 433, in sanitize_config
    return s.translate(None, table)
TypeError: translate() takes exactly one argument (2 given)


Version-Release number of selected component:
wicd-gtk-1.7.2.4-2.fc18

Additional info:
cmdline:        /usr/bin/python -O /usr/share/wicd/gtk/wicd-client.py --tray
core_backtrace: e04bdf27caf43998a6e9c312a87898292344d867 0x31d add_profile /usr/share/wicd/gtk/netentry.py -
executable:     /usr/share/wicd/gtk/wicd-client.py
kernel:         3.7.6-201.fc18.x86_64
uid:            0

Truncated backtrace:
netentry.py:797:add_profile:AttributeError: 'NoneType' object has no attribute 'strip'

Traceback (most recent call last):
  File "/usr/share/wicd/gtk/netentry.py", line 797, in add_profile
    "profiles.", "Profile name:").strip()
AttributeError: 'NoneType' object has no attribute 'strip'

Local variables in innermost frame:
widget: <gtk.Button object at 0x15d5690 (GtkButton at 0x166d180)>
self: <WiredNetworkEntry object at 0x15d52d0 (GtkHBox at 0x16b62b0)>

Comment 1 Sylvain 2013-03-02 02:51:01 UTC
Created attachment 704394 [details]
File: backtrace

Comment 2 Sylvain 2013-03-02 02:51:04 UTC
Created attachment 704395 [details]
File: environ

Comment 3 Dave Cantrell 2013-03-14 19:26:04 UTC

*** This bug has been marked as a duplicate of bug 894650 ***