hwdb-gui: route referenced before assignment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hwdb-client (Ubuntu) |
New
|
Medium
|
Unassigned |
Bug Description
When I installed breezy on my laptop, I had to change the hwdb-gui code as described in bug #18125. (ie. changed route to /sbin/route) This allowed my external wi-fi card to be noticed.
When I upgraded to dapper, I get the same error message:
Traceback (most recent call last):
File "/usr/bin/
self.
File "/usr/bin/
self.test(set)
File "/usr/bin/
netdevice = self.getroute(
File "/usr/bin/
return route
UnboundLocalError: local variable 'route' referenced before assignment
I tried changing 'route -n' to '/sbin/route -n' but no luck this time. I have a Compaq Presario 1600 with 192 MB RAM, and a Blitzz BWP 712 wireless card.
Output from troubleshooting (as the card should be supported 'out of the box'):
lspci | grep Ethernet
0000:02:00.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01)
tail -f /var/log/messages
Jun 5 10:19:34 localhost kernel: [4297100.078000] pccard: card ejected from slot 0
Jun 5 10:19:38 localhost kernel: [4297104.136000] pccard: card inserted into slot 0
sudo lshw -C network
*-network UNCLAIMED
description: Ethernet controller
product: AR5212 802.11abg NIC
vendor: Atheros Communications, Inc.
physical id: 1
bus info: pci@02:00.0
version: 01
width: 32 bits
clock: 33 MHz
capabilities: cap_list
resources: iomemory:
lsmod | grep ath
(nothing)
Note: as my wifi on my laptop is not working, I copied this to my desktop
I think I might have found the problem, though I am not sure and I don't have a fix. Typing in the command:
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Iface
(nothing)
As 'route -n' does not return a line that starts with 0.0.0.0, then route is never specified before it is returned. Hence the error message.