[Kde-bindings] [Bug 311600] New: PyKDE4 kate dynamic module does not define init function

Davide Rossi dappiu at gmail.com
Wed Dec 12 23:35:45 UTC 2012


https://bugs.kde.org/show_bug.cgi?id=311600

            Bug ID: 311600
          Severity: normal
           Version: 4.9
          Priority: NOR
          Assignee: kde-bindings at kde.org
           Summary: PyKDE4 kate dynamic module does not define init
                    function
    Classification: Unclassified
                OS: Linux
          Reporter: dappiu at gmail.com
          Hardware: Gentoo Packages
            Status: UNCONFIRMED
         Component: general
           Product: bindings

I compiled Pate, a kate plugin for python developers. It's built on top of SIP,
PyQt4 and PyKDE.
When correctly installed kate try to load it but prints out this on start:

Traceback (most recent call last):
  File "/usr/share/apps/kate/plugins/pate/kate/__init__.py", line 15, in
<module>                                              
    from PyKDE4.kate import Kate                                                
ImportError: dynamic module does not define init function (initkate)            
Could not import the kate module. Dieing.                                       
Could not initialise Pate. Ouch!

And the same happen if i launch python from command line and i type either
from PyKDE4 import kate  OR  from PyKDE4.kate import Kate.
This doesn't happen with every other PyKDE4 submodule (i tried them all:
kdecore, kdeui, plasma, solid, soprano etcetera...). I'm no expert and i can't
figure out what's going wrong. 

Any guess?

Reproducible: Always

Steps to Reproduce:
1. python2.7
2. >>> from PyKDE4 import kate
or (as plugin does):
3. >>> from PyKDE4.kate import Kate
Actual Results:  
ImportError: dynamic module does not define init function (initkate)

Expected Results:  
Module kate imported on python namespace.

This is the relevant software installed on my gentoo system through official
portage repository:
- dev-python/sip-4.14.2
- dev-python/PyQt4-4.9.6
- kde-base/pykde4-4.9.3

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kde-bindings mailing list