Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33909 - gDesklets-0.24.1 crashes with "ImportError: could not import bonobo.ui"
Summary: gDesklets-0.24.1 crashes with "ImportError: could not import bonobo.ui"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-20 02:13 UTC by Denis Sacchet
Modified: 2003-11-20 02:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Result of command 'strace gdesklets' (trace,94.39 KB, text/plain)
2003-11-20 02:14 UTC, Denis Sacchet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Sacchet 2003-11-20 02:13:28 UTC
Here is the exact output message :

ouba@prunelle ouba $ gdesklets
Traceback (most recent call last):
  File "/usr/bin/gdesklets", line 4, in ?
    from main import HOME
  File "/usr/share/gdesklets/main/__init__.py", line 51, in ?
    import gnome.ui
ImportError: could not import bonobo.ui
ouba@prunelle ouba $ 

Here the output of python -v gdesklets :

ouba@prunelle ouba $ python -v /usr/bin/gdesklets
# /usr/lib/python2.2/site.pyc matches /usr/lib/python2.2/site.py
import site # precompiled from /usr/lib/python2.2/site.pyc
# /usr/lib/python2.2/os.pyc matches /usr/lib/python2.2/os.py
import os # precompiled from /usr/lib/python2.2/os.pyc
import posix # builtin
# /usr/lib/python2.2/posixpath.pyc matches /usr/lib/python2.2/posixpath.py
import posixpath # precompiled from /usr/lib/python2.2/posixpath.pyc
# /usr/lib/python2.2/stat.pyc matches /usr/lib/python2.2/stat.py
import stat # precompiled from /usr/lib/python2.2/stat.pyc
# /usr/lib/python2.2/UserDict.pyc matches /usr/lib/python2.2/UserDict.py
import UserDict # precompiled from /usr/lib/python2.2/UserDict.pyc
# /usr/lib/python2.2/copy_reg.pyc matches /usr/lib/python2.2/copy_reg.py
import copy_reg # precompiled from /usr/lib/python2.2/copy_reg.pyc
# /usr/lib/python2.2/types.pyc matches /usr/lib/python2.2/types.py
import types # precompiled from /usr/lib/python2.2/types.pyc
# /usr/lib/python2.2/__future__.pyc matches /usr/lib/python2.2/__future__.py
import __future__ # precompiled from /usr/lib/python2.2/__future__.pyc
Python 2.2.3 (#1, Nov 19 2003, 14:56:08) 
[GCC 3.3.2 20031022 (Gentoo Linux 3.3.2-r2, propolice)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import main # directory /usr/share/gdesklets/main
# /usr/share/gdesklets/main/__init__.pyc matches
/usr/share/gdesklets/main/__init__.py
import main # precompiled from /usr/share/gdesklets/main/__init__.pyc
# /usr/lib/python2.2/site-packages/pygtk.pyc matches
/usr/lib/python2.2/site-packages/pygtk.py
import pygtk # precompiled from /usr/lib/python2.2/site-packages/pygtk.pyc
# /usr/lib/python2.2/fnmatch.pyc matches /usr/lib/python2.2/fnmatch.py
import fnmatch # precompiled from /usr/lib/python2.2/fnmatch.pyc
# /usr/lib/python2.2/re.pyc matches /usr/lib/python2.2/re.py
import re # precompiled from /usr/lib/python2.2/re.pyc
# /usr/lib/python2.2/sre.pyc matches /usr/lib/python2.2/sre.py
import sre # precompiled from /usr/lib/python2.2/sre.pyc
# /usr/lib/python2.2/sre_compile.pyc matches /usr/lib/python2.2/sre_compile.py
import sre_compile # precompiled from /usr/lib/python2.2/sre_compile.pyc
import _sre # builtin
# /usr/lib/python2.2/sre_constants.pyc matches /usr/lib/python2.2/sre_constants.py
import sre_constants # precompiled from /usr/lib/python2.2/sre_constants.pyc
# /usr/lib/python2.2/sre_parse.pyc matches /usr/lib/python2.2/sre_parse.py
import sre_parse # precompiled from /usr/lib/python2.2/sre_parse.pyc
# /usr/lib/python2.2/string.pyc matches /usr/lib/python2.2/string.py
import string # precompiled from /usr/lib/python2.2/string.pyc
dlopen("/usr/lib/python2.2/lib-dynload/strop.so", 2);
import strop # dynamically loaded from /usr/lib/python2.2/lib-dynload/strop.so
# /usr/lib/python2.2/glob.pyc matches /usr/lib/python2.2/glob.py
import glob # precompiled from /usr/lib/python2.2/glob.pyc
import gnome # directory /usr/lib/python2.2/site-packages/gtk-2.0/gnome
# /usr/lib/python2.2/site-packages/gtk-2.0/gnome/__init__.pyc matches
/usr/lib/python2.2/site-packages/gtk-2.0/gnome/__init__.py
import gnome # precompiled from
/usr/lib/python2.2/site-packages/gtk-2.0/gnome/__init__.pyc
dlopen("/usr/lib/python2.2/site-packages/gtk-2.0/gobject.so", 2);
import gobject # dynamically loaded from
/usr/lib/python2.2/site-packages/gtk-2.0/gobject.so
dlopen("/usr/lib/python2.2/site-packages/gtk-2.0/gnome/_gnome.so", 2);
import gnome._gnome # dynamically loaded from
/usr/lib/python2.2/site-packages/gtk-2.0/gnome/_gnome.so
dlopen("/usr/lib/python2.2/site-packages/gtk-2.0/gnome/ui.so", 2);
import bonobo # directory /usr/lib/python2.2/site-packages/gtk-2.0/bonobo
# /usr/lib/python2.2/site-packages/gtk-2.0/bonobo/__init__.pyc matches
/usr/lib/python2.2/site-packages/gtk-2.0/bonobo/__init__.py
import bonobo # precompiled from
/usr/lib/python2.2/site-packages/gtk-2.0/bonobo/__init__.pyc
dlopen("/usr/lib/python2.2/site-packages/ORBit.so", 2);
Traceback (most recent call last):
  File "/usr/bin/gdesklets", line 4, in ?
    from main import HOME
  File "/usr/share/gdesklets/main/__init__.py", line 51, in ?
    import gnome.ui
ImportError: could not import bonobo.ui
# clear __builtin__._
# clear sys.path
# clear sys.argv
# clear sys.ps1
# clear sys.ps2
# clear sys.exitfunc
# clear sys.exc_type
# clear sys.exc_value
# clear sys.exc_traceback
# clear sys.last_type
# clear sys.last_value
# clear sys.last_traceback
# restore sys.stdin
# restore sys.stdout
# restore sys.stderr
# cleanup __main__
# cleanup[1] __future__
# cleanup[1] site
# cleanup[1] exceptions
# cleanup[1] gnome
# cleanup[1] types
# cleanup[1] gnome._gnome
# cleanup[1] sre
# cleanup[1] strop
# cleanup[1] sre_constants
# cleanup[1] posix
# cleanup[1] sre_parse
# cleanup[1] gnome.ui
# cleanup[1] main
# cleanup[1] bonobo
# cleanup[1] sre_compile
# cleanup[1] string
# cleanup[1] signal
# cleanup[1] pygtk
# cleanup[1] _sre
# cleanup[1] glob
# cleanup[1] fnmatch
# cleanup[1] re
# cleanup[2] stat
# cleanup[2] copy_reg
# cleanup[2] UserDict
# cleanup[2] posixpath
# cleanup[2] gobject
# cleanup[2] os.path
# cleanup[2] os
# cleanup sys
# cleanup __builtin__
# cleanup ints: 6 unfreed ints in 1 out of 5 blocks
# cleanup floats
ouba@prunelle ouba $ 

Here is the version installed for python, pygtk et gnome-python :

ouba@prunelle ouba $ emerge -p pygtk gnome-python python

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] dev-python/pygtk-2.0.0  
[ebuild   R   ] dev-python/gnome-python-2.0.0  
[ebuild   R   ] dev-lang/python-2.2.3-r5  

ouba@prunelle ouba $ 

For instance, I didn't have the 'bonobo' flag in my USE, so I add it, then I
recompile everything in gnome-base, then pygtk and gnome-python, and always
the same errors :(

Please help have a nice desktop ! :)

Thx in advance for your help

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Denis Sacchet 2003-11-20 02:14:29 UTC
Created attachment 20983 [details]
Result of command 'strace gdesklets'
Comment 2 Mike Gardiner (RETIRED) gentoo-dev 2003-11-20 02:19:25 UTC
so /usr/lib/python2.2/site-packages/gtk-2.0/bonobo/ui.so exist doesnt ? it should be compiled by gnome-python as it depends on libbonobo.
Comment 3 Denis Sacchet 2003-11-20 02:22:59 UTC
Yes, it exists :

ouba@prunelle ouba $ ls -ail /usr/lib/python2.2/site-packages/gtk-2.0/bonobo/ui.so
1212153 -rwxr-xr-x    1 root     root       560056 2003-11-20 10:57 /usr/lib/python2.2/site-packages/gtk-2.0/bonobo/ui.so
ouba@prunelle ouba $ 

but it seems it doesn't work ... I had recompiled ten times gnome-python in the last 2 days ... :(

Another idea ?
Comment 4 Mike Gardiner (RETIRED) gentoo-dev 2003-11-20 02:37:32 UTC
talked with reporter on IRC seems to be an SSL problem really:

<ouba> ouba@prunelle gtk-2.0 $ python -c "import bonobo.ui"
<ouba> Traceback (most recent call last):
<ouba>   File "<string>", line 1, in ?
<ouba>   File "/usr/lib/python2.2/site-packages/gtk-2.0/bonobo/__init__.py",
line 6, in ?
<ouba> import ORBit
<ouba> ImportError: libssl.so.0.9.6: cannot open shared object file: No such
             file or directory

pyorbit was the culprit, it needed to be recompiled against libssl-0.9.7