python error related to the translate() function that renders wicd un-usuable

Bug #1025242 reported by PCManiac
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wicd
New
Undecided
Unassigned

Bug Description

Wicd Version: 1.7.2.4
OS: Slackware Current 64 bit (Linux - 3.2.21 #2 SMP Sun Jun 24 11:55:51 CDT 2012 x86_64 Intel(R) Core(TM) i3 CPU 540 @ 3.07GHz GenuineIntel GNU/Linux)
Python 2.7.3 (default, Jun 19 2012, 00:38:05)

I just installed wicd on this computer and, when I started it, got this error:

Has notifications support True
Loading...
Connecting to daemon...
Connected.
Traceback (most recent call last):
  File "/usr/share/wicd/gtk/netentry.py", line 846, in toggle_default_profile
    self.chkbox_default_profile.get_active())
  File "/usr/lib64/python2.7/site-packages/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib64/python2.7/site-packages/dbus/connection.py", line 630, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.TypeError: Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/dbus/service.py", line 702, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/share/wicd/daemon/wicd-daemon.py", line 1411, in SetWiredProperty
    prop = misc.sanitize_config(prop)
  File "/usr/lib64/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)

displaytray True
Done loading.

On the next runs, it starts without any problem.

Revision history for this message
PCManiac (pcmaniacpt) wrote :

I think it is related to this same problem I just reported, once I try to associate with an AP (in my case, with WEP encryption) I get the following error related to "translate()"

------

setting encryption info...
Traceback (most recent call last):
  File "/usr/share/wicd/gtk/gui.py", line 732, in connect
    self.edit_advanced(None, nettype, networkid, networkentry)
  File "/usr/share/wicd/gtk/gui.py", line 666, in edit_advanced
    if self.run_settings_dialog(dialog, ttype, networkid, networkentry):
  File "/usr/share/wicd/gtk/gui.py", line 679, in run_settings_dialog
    if self.save_settings(nettype, networkid, networkentry):
  File "/usr/share/wicd/gtk/gui.py", line 644, 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/lib64/python2.7/site-packages/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib64/python2.7/site-packages/dbus/connection.py", line 630, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.TypeError: Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/dbus/service.py", line 702, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/share/wicd/daemon/wicd-daemon.py", line 1067, in SetWirelessProperty
    prop = misc.sanitize_config(prop)
  File "/usr/lib64/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)

description: updated
summary: - python error when started wicd for the first time
+ python error related to the translate() function that renders wicd un-
+ usuable
Revision history for this message
PCManiac (pcmaniacpt) wrote :

Just letting you know it does not happen on 1.7.2.3.

Revision history for this message
PCManiac (pcmaniacpt) wrote :

Sorry, it seems that it was reported already something similar that may be related: https://bugs.launchpad.net/wicd/+bug/993912

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.