This is the old SliTaz forum - Please use the main forum.slitaz.org

Wicd issue
  • ms3811ms3811 December 2010
    I'm trying to setup wicd on my laptop. I followed the instructions at:

    http://forum.slitaz.org/index.php/discussion/comment/7948/

    However, I can't seem to get the wicd daemon running. These are the contents of /var/log/wicd/wicd.log:


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


    Anyone knows what's going on here? Thanks.
  • ms3811ms3811 December 2010
    Ok, if I remove wicd from RUN_DAEMONS and try to run /etc/init.d/wicd start instead, wicd starts without throwing any errors, although the log still shows the "TypeError: cannot deepcopy this pattern object".

    Now after this, if I run "wicd-client &", I get the following errors on the command line:

    root@elana:~# wicd-client &
    root@elana:~# /usr/bin/wicd-client: line 2: tput: not found
    /usr/bin/wicd-client: line 3: tput: not found
    /usr/bin/wicd-client: line 4: tput: not found
    Importing pynotify failed, notifications disabled.
    Has notifications support False
    Loading...
    Connecting to daemon...
    Can't connect to the daemon, trying to start it automatically...
    /usr/bin/gksu: exec: line 16: --message: not found

    followed by a dialog that says:

    "Could not connect to wicd's D-Bus interface. Check the wicd log for error messages. [Ok]"

    followed by the following in the command line:

    Wicd daemon is shutting down!
    Traceback (most recent call last):
    File "/usr/share/wicd/gtk/wicd-client.py", line 1033, in
    main(sys.argv)
    File "/usr/share/wicd/gtk/wicd-client.py", line 91, in wrapper
    return func(*args, **kwargs)
    File "/usr/share/wicd/gtk/wicd-client.py", line 1005, in main
    tray_icon = TrayIcon(animate, displaytray=display_app)
    File "/usr/share/wicd/gtk/wicd-client.py", line 139, in __init__
    self.icon_info = self.TrayConnectionInfo(self, self.tr, animate)
    File "/usr/share/wicd/gtk/wicd-client.py", line 201, in __init__
    self.set_not_connected_state()
    File "/usr/share/wicd/gtk/wicd-client.py", line 91, in wrapper
    return func(*args, **kwargs)
    File "/usr/share/wicd/gtk/wicd-client.py", line 329, in set_not_connected_state
    self._show_notification(language['disconnected'], None, 'stop')
    File "/usr/share/wicd/gtk/wicd-client.py", line 231, in _show_notification
    self._last_bubble = pynotify.Notification(title, details,
    NameError: global name 'pynotify' is not defined

    [1]+ Done(1) wicd-client

    /var/log/wicd/wicd.log has the same content as the first comment.

    Anyone?
  • kultexkultex December 2010
    I guess you are using cooking - I wrote the howto for 3.0 - I am not home, so I dont have the cooking stick with me - I am home sometime tomorrow

    maybe notify-python is missing in the depencies
  • ms3811ms3811 December 2010
    Thanks for responding. notify-python was indeed missing, so I installed it. This is what I get now when I run wicd-client:

    root@elana:~# wicd-client &
    root@elana:~# /usr/bin/wicd-client: line 2: tput: not found
    /usr/bin/wicd-client: line 3: tput: not found
    /usr/bin/wicd-client: line 4: tput: not found
    Traceback (most recent call last):
    File "/usr/share/wicd/gtk/wicd-client.py", line 54, in
    import pynotify
    File "/usr/lib/python2.7/site-packages/gtk-2.0/pynotify/__init__.py", line 1, in
    from _pynotify import *
    RuntimeError: could not find _PyGtk_API object

    [1]+ Done(1) wicd-client
  • kultexkultex December 2010
    but I think, now the client is working - see in top

    the error could be the lack of ncurses-utils - there is no package for this in slitaz, but try to install ncurses-extra
  • ms3811ms3811 December 2010
    ok, installed ncurses-utils. No luck though. Same error as post 4. I also tried googling the RuntimeError, not much luck there either.
  • unklarunklar December 2010
    Hi,
    sorry no english-->ger google-chrome
    http://doc.slitaz.org/en:guides:wicd
  • ms3811ms3811 December 2010
    Thanks @unklar, I've seen that guide. As mentioned above, my issues seem to be with the wicd-client not running properly. As @kultex pointed out, I'm probably missing some dependencies. Just need to figure out which ones.
  • sporkspork December 2010
    It seems you may need to install notify-python (or python-notify - or even both), and / or ncursesw-extra (note the 'w' there).
    At least that's what I think - this is just from a quick search in the package manager.
  • ms3811ms3811 December 2010
    Ok, that's a load of packages. In any case, I have notify-python already installed. I downloaded and installed ncursesw-extra, didn't help. Then installed python-notify and now this is what I get when I run "wicd-client &":
    root@elana:/# wicd-client &
    root@elana:/# Has notifications support True
    Loading...
    Connecting to daemon...
    Can't connect to the daemon, trying to start it automatically...
    /usr/bin/gksu: exec: line 16: --message: not found
    Wicd daemon is shutting down!
    Traceback (most recent call last):
    File "/usr/share/wicd/gtk/wicd-client.py", line 1033, in
    main(sys.argv)
    File "/usr/share/wicd/gtk/wicd-client.py", line 91, in wrapper
    return func(*args, **kwargs)
    File "/usr/share/wicd/gtk/wicd-client.py", line 1005, in main
    tray_icon = TrayIcon(animate, displaytray=display_app)
    File "/usr/share/wicd/gtk/wicd-client.py", line 139, in __init__
    self.icon_info = self.TrayConnectionInfo(self, self.tr, animate)
    File "/usr/share/wicd/gtk/wicd-client.py", line 201, in __init__
    self.set_not_connected_state()
    File "/usr/share/wicd/gtk/wicd-client.py", line 91, in wrapper
    return func(*args, **kwargs)
    File "/usr/share/wicd/gtk/wicd-client.py", line 329, in set_not_connected_state
    self._show_notification(language['disconnected'], None, 'stop')
    File "/usr/share/wicd/gtk/wicd-client.py", line 233, in _show_notification
    self._last_bubble.show()
    glib.GError: Unable to connect to server

    [1]+ Done(1) wicd-client
    root@elana:/#
    with the same popup dialog as before: "Could not connect to wicd's D-Bus interface. Check the wicd log for error messages."
  • ms3811ms3811 December 2010
    For what it's worth, I manually verified that every dependency listed for wicd is installed. Still no luck.
  • kultexkultex December 2010
    its a bug in wicd: https://bugs.launchpad.net/pld-linux/+bug/602825

    the problem is that the deamon is not starting - see in var/log/wicd

    you can try to compile wicd-1.7.1b2

    http://sourceforge.net/projects/wicd/files/wicd-testing/
  • ms3811ms3811 December 2010
    Sweet! Thanks @kultex. I got it working.

    For anyone else with this issue, here are the steps (assuming you simply installed wicd from the cooking repos):
    1. Make sure all dependencies are installed, "tazpkg get-install wicd" misses a few
    2. As pointed out by someone in the link @kultex provided in the previous post, to fix the deepcopy issue, do the following:

    Replace the body of method write in /usr/lib/python2.7/site-packages/wicd/configmanager.py (at the end of the file) to pass:

    def write(self):
    pass

    3. The install process does not create /etc/wicd/manager-settings.conf without which wicd daemon does not start. So create one, you can google for samples or here is one I found:

    [Settings]
    wireless_interface = wlan0
    link_detect_tool = 0
    signal_display_type = 0
    dhcp_client = 0
    window_height = 400
    wired_connect_mode = 1
    pref_width = 491
    wired_interface = eth0
    always_show_wired_interface = False
    wpa_driver = wext
    debug_mode = 0
    pref_height = 590
    global_dns_1 = None
    global_dns_2 = None
    global_dns_3 = None
    auto_reconnect = True
    window_width = 605
    flush_tool = 0
    use_global_dns = False


    Do the rest, i.e. edit /etc/rcS.conf and wicd to RUN_DAEMONS in /etc/rcS.conf and remove network.sh from RUN_SCRIPTS, remove network manager from lxpanel, and that should be mostly it.

    I still haven't verified if wicd connects to the network properly, but as of now all above errors are gone and the wicd-client loads properly.
  • ms3811ms3811 January 2011
    As it turns out, that just got wicd client to load. However, I had posted another issue with wicd awhile ago, regarding it's inability to connect to wireless networks protected by WPA. That problem still persists, so I gave up.

    It would be nice if someone with more knowledge of this can help get this working, since Network Manager is very tedious to use as it requires manual intervention every time you switch between wireless networks or between wireless and wired. It also doesn't update the status in the task bar each time you switch.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

SliTaz Social