Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19343 - when trying to import PyKDE python modules, I get shared library errors concerning libDCOP.so.4
Summary: when trying to import PyKDE python modules, I get shared library errors conce...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Michele Balistreri (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-15 00:50 UTC by Jeff Simon
Modified: 2003-05-17 12:05 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Simon 2003-04-15 00:50:10 UTC
None of the PyKDE python modules import cleanly. Here is an example of the
output when trying to import dcop, kdecore, kdesu, kdefx, kdeui, kio, kfile,
kparts, khtml, kjs, kspell and kdeprint.

--BEGIN OUTPUT!!

>>> import dcop
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.2/site-packages/dcop.py", line 27, in ?
    import libdcopc
ImportError: libDCOP.so.4: cannot open shared object file: No such file or directory
>>> import kdecore
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.2/site-packages/kdecore.py", line 29, in ?
    from dcop import DCOPObject
ImportError: cannot import name DCOPObject
>>> import kdesu
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.2/site-packages/kdesu.py", line 27, in ?
    import libkdesuc
ImportError: libDCOP.so.4: cannot open shared object file: No such file or directory
>>> import kdefx
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.2/site-packages/kdefx.py", line 28, in ?
    import libkdefxc
ImportError: libDCOP.so.4: cannot open shared object file: No such file or directory
>>> import kdeui
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.2/site-packages/kdeui.py", line 24, in ?
    from kdecore import KShortcutList
ImportError: cannot import name KShortcutList
>>> import kio
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.2/site-packages/kio.py", line 24, in ?
    from kdeui import KAction
ImportError: cannot import name KAction
>>> import kfile
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.2/site-packages/kfile.py", line 24, in ?
    from kio import KIO
ImportError: cannot import name KIO
>>> import kparts
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.2/site-packages/kparts.py", line 25, in ?
    from kio import KRun
ImportError: cannot import name KRun
>>> import khtml
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.2/site-packages/khtml.py", line 24, in ?
    from kparts import KParts
ImportError: cannot import name KParts
>>> import kjs
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.2/site-packages/kjs.py", line 27, in ?
    import libkjsc
ImportError: libDCOP.so.4: cannot open shared object file: No such file or directory
>>> import kspell
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.2/site-packages/kspell.py", line 26, in ?
    from kdeui import KDialogBase
ImportError: cannot import name KDialogBase
>>> import kdeprint
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.2/site-packages/kdeprint.py", line 25, in ?
    from kdeui import KActionMenu
ImportError: cannot import name KActionMenu

--END OUTPUT!!

It seems that most of them are related to libDCOP.so.4 not being able to be
found, but some say that they cannot import certain classes like KActionMenu.

Reproducible: Always
Steps to Reproduce:
1. Start interactive python interpreter
2. try to import PyKDE modules such as kdecore (ex. import kdecore)

Actual Results:  
I get errors saying that libDCOP.so.4 cannot be found and that certain classes
like KActionMenu are not found.

Expected Results:  
The software should have imported the modules and given no errors.

Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.2.5-r6)
=================================================================
System uname: 2.4.20-gentoo-r2 i686 GenuineIntel
GENTOO_MIRRORS="ftp://ftp.ibiblio.org/pub/linux/distributions/gentoo
http://distro.ibiblio.org/gentoo "
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config
/usr/X11R6/lib/X11/xkb:/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg
ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb
slang readline arts tetex bonobo svga tcltk java guile mysql X sdl gpm tcpd pam
libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde motif opengl mozilla
cdr"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe"
CXXFLAGS="-march=pentium3 -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache

I am using:

Qt = 3.1.0-r3
KDE = 3.1
Python = 2.2.2
Comment 1 Jeff Simon 2003-04-15 00:53:20 UTC
By the way, I am the original bug poster and here are the locations of libDCOP.so.4 on my system

% locate libDCOP.so.4
/usr/kde/3.1/lib/libDCOP.so.4.1.0
/usr/kde/3.1/lib/libDCOP.so.4
%
Comment 2 Michele Balistreri (RETIRED) gentoo-dev 2003-04-17 07:20:56 UTC
are your enviroment variabile set good? check your /etc/env.d/ for kde-related env (i 
can't reproduce this) 
Comment 3 Michele Balistreri (RETIRED) gentoo-dev 2003-04-17 12:48:09 UTC
little note: PyKDE was just renamed in pykde 
Comment 4 Michele Balistreri (RETIRED) gentoo-dev 2003-05-17 03:17:31 UTC
what's the status about this? still an issue? 
Comment 5 Jeff Simon 2003-05-17 10:52:46 UTC
Yes, the bug is resolved on my system, but only because I did a fresh install of Gentoo 1.4_rc4. I never did find the reason why it didn't work. Sorry to create a stir.
Comment 6 Michele Balistreri (RETIRED) gentoo-dev 2003-05-17 12:05:18 UTC
fixed for the reporter