Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: huffpuff on January 08, 2011, 05:48:42 AM

Title: wicd + wireless problem
Post by: huffpuff on January 08, 2011, 05:48:42 AM
Having some trouble getting my Edimax ew-7711uan usb dongle [ralink chip] to work under wicd.

The daemon appears not to start. Here is the cli stuff:
Quote
tc@box:~$ iwconfig
lo        no wireless extensions.

dummy0    no wireless extensions.

eth0      no wireless extensions.

wlan0     IEEE 802.11bgn  Mode:Managed  Access Point: Not-Associated   
          Tx-Power=0 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
         
tc@box:~$ sudo wicd-start
stopped /usr/local/bin/dbus-daemon (pid 8458 7494)
tc@box:~$ wicd-cli
Error: Could not connect to the daemon. Please make sure it is running.
tc@box:~$

And here is the wicd log:
Quote
wicd initializing...
2011/01/08 10:09:47 :: ---------------------------
2011/01/08 10:09:47 :: wicd is version 1.7.0 552
2011/01/08 10:09:47 :: did not find backend in configuration, setting default external
2011/01/08 10:09:47 :: Traceback (most recent call last):
2011/01/08 10:09:47 ::   File "/usr/local/share/wicd/daemon/wicd-daemon.py", line 1839, in <module>
2011/01/08 10:09:47 ::     main(sys.argv)
2011/01/08 10:09:47 ::   File "/usr/local/share/wicd/daemon/wicd-daemon.py", line 1803, in main
2011/01/08 10:09:47 ::     daemon = WicdDaemon(wicd_bus, auto_connect=auto_connect)
2011/01/08 10:09:47 ::   File "/usr/local/share/wicd/daemon/wicd-daemon.py", line 115, in __init__
2011/01/08 10:09:47 ::     self.ReadConfig()
2011/01/08 10:09:47 ::   File "/usr/local/share/wicd/daemon/wicd-daemon.py", line 885, in ReadConfig
2011/01/08 10:09:47 ::     self.SetBackend(app_conf.get("Settings", "backend", default=be_def))
2011/01/08 10:09:47 ::   File "/usr/local/lib/python2.6/site-packages/wicd/configmanager.py", line 125, in get
2011/01/08 10:09:47 ::     return self.get_option(*args, **kargs)
2011/01/08 10:09:47 ::   File "/usr/local/lib/python2.6/site-packages/wicd/configmanager.py", line 104, in get_option
2011/01/08 10:09:47 ::     self.set(section, option, str(default), write=True)
2011/01/08 10:09:47 ::   File "/usr/local/lib/python2.6/site-packages/wicd/configmanager.py", line 76, in set
2011/01/08 10:09:47 ::     self.set_option(*args, **kargs)
2011/01/08 10:09:47 ::   File "/usr/local/lib/python2.6/site-packages/wicd/configmanager.py", line 72, in set_option
2011/01/08 10:09:47 ::     self.write()
2011/01/08 10:09:47 ::   File "/usr/local/lib/python2.6/site-packages/wicd/configmanager.py", line 192, in write
2011/01/08 10:09:47 ::     p = copy.deepcopy(self)
2011/01/08 10:09:47 ::   File "/usr/local/lib/python2.7/copy.py", line 163, in deepcopy
2011/01/08 10:09:47 ::     y = copier(x, memo)
2011/01/08 10:09:47 ::   File "/usr/local/lib/python2.7/copy.py", line 298, in _deepcopy_inst
2011/01/08 10:09:47 ::     state = deepcopy(state, memo)
2011/01/08 10:09:47 ::   File "/usr/local/lib/python2.7/copy.py", line 163, in deepcopy
2011/01/08 10:09:47 ::     y = copier(x, memo)
2011/01/08 10:09:47 ::   File "/usr/local/lib/python2.7/copy.py", line 257, in _deepcopy_dict
2011/01/08 10:09:47 ::     y[deepcopy(key, memo)] = deepcopy(value, memo)
2011/01/08 10:09:47 ::   File "/usr/local/lib/python2.7/copy.py", line 174, in deepcopy
2011/01/08 10:09:47 ::     y = copier(memo)
2011/01/08 10:09:47 :: TypeError: cannot deepcopy this pattern object

Wondered if it is a python 2.6/2.7 issue.

Title: Re: wicd + wireless problem
Post by: Juanito on January 08, 2011, 06:01:10 AM
wicd-2.6 is still python-2.6 (as it's name suggests).

From dmesg, wicd is using/trying to use both python-2.6 and python-2.7.

I'd suggest to reboot, make sure you have only python-2.6 extensions loaded and try again.
Title: Re: wicd + wireless problem
Post by: huffpuff on January 08, 2011, 07:03:50 AM
Thanks...

Hmmm I wonder if there is a plan to rebuild wicd against python 2.7?

My obmenu and catfish are 2.7 but wicd is 2.6.

Maybe I should skip wicd for the moment and see what else works.
Title: Re: wicd + wireless problem
Post by: Arslan S. on January 08, 2011, 02:24:08 PM
wicd bug with python 2.7 is fixed in trunk
https://bugs.launchpad.net/wicd/+bug/602825 (https://bugs.launchpad.net/wicd/+bug/602825)

version 1.7.1 is not released yet but there is 1.7.1 beta2 which includes this fix
http://downloads.wicd.net/src/testing/1.7.x/ (http://downloads.wicd.net/src/testing/1.7.x/)