LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-17-2005, 01:20 PM   #1
raffi
LQ Newbie
 
Registered: Dec 2004
Posts: 21

Rep: Reputation: 15
gDesklets - ImportError: No module named gnome.ui


Hello!
I'm trying to get gDesklets running on my fluxbox desktop. After looking through many threads on this forum, I decided to install most of the libraries from packages, although the last one, gnome-python compile from sources. ./configure told me that these modules will be build on my system:

gnome
gnome.ui
gnome.canvas
gnome.vfs
gconf
bonobo
bonobo.activation
bonobo.ui

As you can see, there *is* a module gnome.ui, but after I make&checkinstall gnome-python, gDesklets still gives me this error. I suppose, that python can't find that module, so my question is: how to tell it where to look for that particular mod?
 
Old 01-17-2005, 01:51 PM   #2
raffi
LQ Newbie
 
Registered: Dec 2004
Posts: 21

Original Poster
Rep: Reputation: 15
Ok, I've just found a solution:

export PYTHONPATH="/usr/local/lib/python2.4/site-packages/gtk-2.0/:$PYTHONPATH"

Unfortunately, now there is another error:

ImportError: No module named gobject

Any ideas?
 
Old 01-17-2005, 05:33 PM   #3
raffi
LQ Newbie
 
Registered: Dec 2004
Posts: 21

Original Poster
Rep: Reputation: 15
It seems that I've messed up something. There *is* everything required by gDesklets in my

/usr/lib/python2.3/site-packages/gtk-2.0/

I have gnome, bonobo and gobject there, but even though I set the path like this:

export PYTHONPATH="/usr/lib/python2.3/site-packages/gtk-2.0/:$PYTHONPATH"

it still gives me an error:

ImportError: could not import bonobo.ui

If you take a look at this, you will see, that it's not the "can't find this or that file" error. Apparently, it sees bonobo, but can't load it, and I really don't know why. If anyone, anyone can help, please! I'd really like to make my desktop unique, without installing gnome/kde.
 
Old 01-17-2005, 05:42 PM   #4
raffi
LQ Newbie
 
Registered: Dec 2004
Posts: 21

Original Poster
Rep: Reputation: 15
My distro is Slackware 10.0, I forgot to mention.
 
Old 10-20-2005, 12:21 PM   #5
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Rep: Reputation: 30
Quote:
Originally posted by raffi
It seems that I've messed up something. There *is* everything required by gDesklets in my

/usr/lib/python2.3/site-packages/gtk-2.0/

I have gnome, bonobo and gobject there, but even though I set the path like this:

export PYTHONPATH="/usr/lib/python2.3/site-packages/gtk-2.0/:$PYTHONPATH"

it still gives me an error:

ImportError: could not import bonobo.ui

If you take a look at this, you will see, that it's not the "can't find this or that file" error. Apparently, it sees bonobo, but can't load it, and I really don't know why. If anyone, anyone can help, please! I'd really like to make my desktop unique, without installing gnome/kde.

for what it's worth, you went from

export PYTHONPATH="/usr/local/lib/python2.4/site-packages/gtk-2.0/:$PYTHONPATH"

to

export PYTHONPATH="/usr/lib/python2.3/site-packages/gtk-2.0/:$PYTHONPATH"

- perry
 
Old 10-20-2005, 12:27 PM   #6
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Rep: Reputation: 30
copying gobject.so from 2.3 to 2.4 takes away that error message and gives me this one:

root@localhost:/home/perry# gdesklets start
You need a recent version of PyGTK to run this program.
Traceback (most recent call last):
File "/usr/share/gdesklets/gdesklets-daemon", line 13, in ?
import gnome.ui
File "/home/bluviolin/miei_pacchetti/BUILDS/gnome-python-2.6.2/usr/lib/python2.4/site-packages/gtk-2.0/gnome/__init__.py", line 10, in ?
ImportError: No module named gobject
Cannot establish connection to daemon : timeout

(copy made from 2.3 to 2.4 site-packages dirs)

root@localhost:/home/perry# gdesklets start
connecting to daemon [### ]You need a recent version of PyGTK to run this program.
connecting to daemon [ ### ]ImportError: could not import bonobo.ui
You mustn't run gDesklets as super user.
Cannot establish connection to daemon : timeout
root@localhost:/home/perry#

- perry

Last edited by perry; 10-20-2005 at 12:28 PM.
 
Old 10-20-2005, 12:33 PM   #7
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Rep: Reputation: 30
downloading pygtk-2.5.3-i486-1kan.tgz (for slackware 10.1)....

root@localhost:/home/perry# upgradepkg pygtk-2.5.3-i486-1kan.tgz

+==============================================================================
| Upgrading pygtk-2.4.1-i486-1rsa package using ./pygtk-2.5.3-i486-1kan.tgz
+==============================================================================

. . .


root@localhost:/home/perry# gdesklets start
Traceback (most recent call last):
connecting to daemon [### ] File "/usr/share/gdesklets/gdesklets-daemon", line 13, in ?
import gnome.ui
File "/home/bluviolin/miei_pacchetti/BUILDS/gnome-python-2.6.2/usr/lib/python2.4/site-packages/gtk-2.0/gnome/__init__.py", line 10, in ?
ImportError: /usr/lib/python2.4/site-packages/gtk-2.0/gobject.so: undefined symbol: g_assert_warning
Cannot establish connection to daemon : timeout
root@localhost:/home/perry#

ok....

- perry
 
Old 10-20-2005, 12:36 PM   #8
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Rep: Reputation: 30
requesting file: pygtk-2.5.3-i486-1kan.tgz
 
Old 10-20-2005, 12:38 PM   #9
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Rep: Reputation: 30
pygtk-2.6.2-i486-1kjz.tgz ?
 
Old 10-20-2005, 12:48 PM   #10
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Rep: Reputation: 30
conclusion:

gdesklets is probably ready for slackware 10.1 or 10.2 but not 10.0....

cheers

- perry
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
freevo crash ImportError: No module named web.microdom netsurf Linux - Software 0 10-23-2005 05:30 AM
Bittorrent. "ImportError: No module named __future__" BashTin Linux - Software 4 09-12-2005 03:07 AM
iPodder: ImportError: No module named wx dr_zayus69 Linux - Software 6 07-06-2005 01:55 AM
ImportError: No module named libglade Kanaflloric Programming 0 08-16-2004 09:58 PM
ImportError: No module named gconf linorg Linux - Software 8 02-02-2004 04:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration