Comment 10 for bug 422675

Revision history for this message
d3b null (d3b-null) wrote : Re: [Bug 422675] Re: wicd gtk client freezes and curses client crashes when connecting

Hi,

    first of all, thanks for the replay but i'm afraid that it's not so
simple.
    That line (1147) is just a print. Ive tryed `self.LastScan[id]` but it
fails with exactly the same error. I've even commented the line and it's
still the same.
    I think the problem is related to dbus or something like that but i'm
not an expert programmer and I don't even know how dbus works deeply.

    If any developer needs any kind of backtrace or information, he/she just
has to ask for it.

Thanks

On Wed, Sep 9, 2009 at 17:39, Dan O'Reilly <email address hidden> wrote:

> File "/usr/share/wicd/wicd-daemon.py", line 1147, in ConnectWireless
> print 'Connecting to wireless network ' + self.LastScan[id]['essid']
> TypeError: cannot concatenate 'str' and 'int' objects
>
> As a workaround, you can open up /usr/share/wicd/wicd-daemon.py, go to the
> line it references in the backtrace (1147), and change
> self.LastScan[id]['essid']
> to
> str(self.LastScan[id]['essid'])
>
> ** Changed in: wicd
> Importance: Undecided => Medium
>
> ** Changed in: wicd
> Assignee: (unassigned) => Dan O'Reilly (oreilldf)
>
> --
> wicd gtk client freezes and curses client crashes when connecting
> https://bugs.launchpad.net/bugs/422675
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in wicd: In Progress
> Status in “wicd” package in Debian: New
>
> Bug description:
> I'm using wicd 1.6.2.1-1 from debian sid.
>
> My wireless network essid is an integer (essid composed only by numerical
> characters).
>
> When I try to connect via GTK client to my network, interface just freezes.
>
> When I try to connect via ncurses client, I get this:
>
> Traceback (most recent call last):
> File "/usr/share/wicd/wicd-curses.py", line 89, in wrapper
> return func(*args, **kargs)
> File "/usr/share/wicd/wicd-curses.py", line 918, in update_ui
> self.handle_keys(keys)
> File "/usr/share/wicd/wicd-curses.py", line 834, in handle_keys
> self.connect("wireless",pos)
> File "/usr/share/wicd/wicd-curses.py", line 929, in connect
> wireless.ConnectWireless(networkid)
> File "/usr/lib/pymodules/python2.5/dbus/proxies.py", line 140, in __call__
> **keywords)
> File "/usr/lib/pymodules/python2.5/dbus/connection.py", line 622, in
> call_blocking
> message, timeout)
> dbus.exceptions.DBusException: org.freedesktop.DBus.Python.TypeError:
> Traceback (most recent call last):
> File "/usr/lib/pymodules/python2.5/dbus/service.py", line 702, in
> _message_cb
> retval = candidate_method(self, *args, **keywords)
> File "/usr/share/wicd/wicd-daemon.py", line 1147, in ConnectWireless
> print 'Connecting to wireless network ' + self.LastScan[id]['essid']
> TypeError: cannot concatenate 'str' and 'int' objects
>
>
> It seems that for some reason, self.LastScan[id]['essid'] returns the
> integer value instead of a string value with a number.
>