You are not logged in.

#1 2010-05-12 15:15:16

gnos
Member
Registered: 2010-05-12
Posts: 5

wicd not working at all even though dbus is running.

Hi all,
I just installed Archlinux, and after I got xorg working by fixing a dbus/hal problem (dbus wasn't loading because of /etc/dbus-l/system.d/wicd.conf being an empty file for some reason), I've been trying to start wicd with no luck. The wicd daemon is running, but wicd-client -n does not do anything, it does not even produce an error message. I've replaced the empty wicd.conf with the one from the wicd bz2 package, but still no luck. Any help will be much appreciated.

Offline

#2 2010-05-13 17:11:02

gnos
Member
Registered: 2010-05-12
Posts: 5

Re: wicd not working at all even though dbus is running.

Okay, I tried installing wicd-bzr from the AUR and the daemon didn't work, I got a message saying something about missing the module gobject (which is installed). After uninstalling that, I reinstalled wicd (using pacman -S --force wicd, because some files were left over). Now starting the daemon works but wicd-client gives me this very similar error:

wicd-client
Traceback (most recent call last):
  File "/usr/share/wicd/gtk/wicd-client.py", line 40, in <module>
    import gtk
ImportError: No module named gtk

I have pygtk on my system according to pacman:

pacman -Q pygtk
pygtk 2.17.0-1

I haven't the slightest clue where to begin fixing this. Can someone knowledgeable please help me?

Offline

#3 2010-05-13 18:15:56

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,822

Re: wicd not working at all even though dbus is running.

I just ssh'ed into my box and did the following:

ewaller@odin:~ 1006 %python
Python 2.6.5 (r265:79063, Apr  1 2010, 05:28:39) 
[GCC 4.4.3 20100316 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
/usr/lib/python2.6/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
>>> 
ewaller@odin:~ 1007 %pacman -Qo /usr/lib/python2.6/site-packages/gtk-2.0/gtk/__init__.py
/usr/lib/python2.6/site-packages/gtk-2.0/gtk/__init__.py is owned by pygtk 2.17.0-1
ewaller@odin:~ 1008 %

You might check that gtk is in your Python path.  I am wondering if you have upgraded Python leaving Pygtk behind.

What if you re-install pygtk?

edit: fixed typo

Last edited by ewaller (2010-05-13 18:17:15)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2010-05-13 19:41:50

gnos
Member
Registered: 2010-05-12
Posts: 5

Re: wicd not working at all even though dbus is running.

Well, it appears gtk is not working for any python program:

python
Python 2.6.5 (r265:79063, Apr  1 2010, 05:22:20)
[GCC 4.4.3 20100316 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named gtk

This is a fresh install, but a non-network one. I must have done something wrong during post-install, but the official install docs don't give me a clue as to what I did wrong. Where do I set the Python path?

Offline

#5 2010-05-14 15:18:58

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,822

Re: wicd not working at all even though dbus is running.

Sorry for not getting back sooner.  Hectic day...

If PyGtk is in your local cache, you may be able to just pacman -S pyGtk without a network link.

All of the files Python will need should be under /usr/lib/python2.6/.  You might want to do a pacman -Ql pygtk
to see where the Python files are installed.  If they are not under /usr/lib/python2.6/site-packages/ you might try copying the files there from where ever they are (/usr/lib/python2.5/site-packages/ maybe?)

Or -- Go into Python, and find the Python  Path:

ewaller@odin:/srv/http/django 1013 %python
Python 2.6.5 (r265:79063, Apr  1 2010, 05:28:39) 
[GCC 4.4.3 20100316 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/lib/python26.zip', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/site-packages', '/usr/lib/python2.6/site-packages/gst-0.10', '/usr/lib/python2.6/site-packages/gtk-2.0']
>>> 
ewaller@odin:/srv/http/django 1014 %

Then,create an environmental variable that uses the same format as PATH that includes those directories ans includes the one to there the PyGtk files live.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#6 2010-05-17 23:39:05

gnos
Member
Registered: 2010-05-12
Posts: 5

Re: wicd not working at all even though dbus is running.

Thanks for the reply. I managed to solve the problem by reinstalling a bunch of packages. There were multiple libs incorrectly installed somehow (.so files were blank!). I do not know why this happened but I hope my harddisk is okay. This problem is now solved.

Offline

Board footer

Powered by FluxBB