SDM2011 Wrote:Re:github, it wasn't working last yesterday when I first tried either, and it still isn't, so that would be a pretty long-lived glitch.
Re: more errors, I didn't run it with debugging enabled. Let me know if you need such a detailed log. I did just notice another error in the log (when scanning for networks):
Code:
DEBUG: /home/sandro/.xbmc/addons/script.linux.wireless/resources/lib/gui.py:146: RuntimeWarning: tp_compare didn't return -1 or -2 for exception
ERROR: Exception in python script's onAction
The traceback lists:
Code:
13:44:12 T:140415672653568 M:3374915584 NOTICE: Traceback (most recent call last):
13:44:12 T:140415672653568 M:3374915584 NOTICE: File "/home/sandro/.xbmc/addons/script.linux.wireless/resources/lib/gui.py", line 146, in onAction
13:44:12 T:140415672653568 M:3374915584 NOTICE: if action in self.action_cancel_dialog:
13:44:12 T:140415672653568 M:3374915584 NOTICE: File "/home/sandro/.xbmc/addons/script.linux.wireless/resources/lib/gui.py", line 40, in onInit
13:44:12 T:140415672653568 M:3374915584 NOTICE: self.showDialog()
13:44:12 T:140415672653568 M:3374915584 NOTICE: File "/home/sandro/.xbmc/addons/script.linux.wireless/resources/lib/gui.py", line 84, in showDialog
13:44:12 T:140415672653568 M:3374915584 NOTICE: self.updateList()
13:44:12 T:140415672653568 M:3374915584 NOTICE: File "/home/sandro/.xbmc/addons/script.linux.wireless/resources/lib/gui.py", line 299, in updateList
13:44:12 T:140415672653568 M:3374915584 NOTICE: wlessL = self.get_wireless_networks()
13:44:12 T:140415672653568 M:3374915584 NOTICE: File "/home/sandro/.xbmc/addons/script.linux.wireless/resources/lib/gui.py", line 183, in get_wireless_networks
13:44:12 T:140415672653568 M:3374915584 NOTICE: if net_dict['connected'] == 'True':
13:44:12 T:140415672653568 M:3374915584 NOTICE: KeyError
13:44:12 T:140415672653568 M:3374915584 NOTICE: :
13:44:12 T:140415672653568 M:3374915584 NOTICE: 'connected'
Hi there,
I was getting the same problem as yours above on Ubuntu 11.04. This does not happen with 10.10.
It took me a while to get to the bottom of it, but I got there in the end.
The problem is not with vikjon0's excellent script, but with wicd and Ubuntu 11.04.
Essentially, the wicd function
RenameProcess in
/usr/share/pyshared/wicd/misc.py does a test to see whether you're on a 64bit or 32bit Ubuntu, upon which it sets the
libc path to
/lib64/libc.so.6 (for 64bit) or
/lib/libc.so.6 (32bit).
However, in 11.04, for 32bit, the path is now at
/lib/i386-linux-gnu/libc.so.6. Path is similarly changed to
/lib64/x86_64-linux-gnu/libc.so.6 for 64bit.
Two quick solutions is given below, and choose whichever you like best:
1. Do a softlink to the actual
libc file as so:
32bit:
Code:
sudo ln -s /lib/i386-linux-gnu/libc-2.13.so /lib/libc.so.6
64bit:
Code:
sudo ln -s /lib64/x86_64-linux-gnu/libc-2.13.so /lib64/libc.so.6
2. Change the file
/usr/share/pyshare/wicd/misc.py
WARNING: This replaces the strings "in line". No backups.
Code:
sudo sed -i 's|/lib/libc.so.6|/lib/i386-linux-gnu/libc.so.6|' /usr/share/pyshared/wicd/misc.py
sudo sed -i 's|/lib64/libc.so.6|/lib/i386-linux-gnu/libc.so.6|' /usr/share/pyshared/wicd/misc.py
The script should now work.
I should probably file a bug report on Ubuntu for this, and the problem should go away eventually without having to do either of the above.
Hope that helps.