Something off with Python integration

  • Hi everybody,

    looks like something is off with my Python integration.

    I get errors similar to the following for all the components unless I disable the plugin python parts in the repective config files:

    Wed May 10 14:51:21 2017: [ notice] [  730] Starting kopano-spooler version 8,3,0,1042 (1042), pid 730
    Wed May 10 14:51:22 2017: [error  ] [  737]   Python type: (null)
    Wed May 10 14:51:22 2017: [error  ] [  737]   Python error: 'module' object has no attribute 'MAPIInitialize_Multithreaded'
    Wed May 10 14:51:22 2017: [error  ] [  737]   Python trace: /usr/lib/python2.7/site-packages/MAPI/ <module>
    Wed May 10 14:51:22 2017: [crit   ] [  737] Unable to instantiate plugin factory, hr=0x00000001

    Except for kopano-search. That one seems to really need python and can’t disable it and log output is more comprehensive:

    2017-05-11T12:17:45.103759+02:00 suseenterprise kopano-search[15728]: Traceback (most recent call last):
    2017-05-11T12:17:45.104081+02:00 suseenterprise kopano-search[15728]: File "/usr/sbin/kopano-search", line 3, in <module>
    2017-05-11T12:17:45.104306+02:00 suseenterprise kopano-search[15728]: import kopano_search
    2017-05-11T12:17:45.104512+02:00 suseenterprise kopano-search[15728]: File "/usr/lib/python2.7/site-packages/kopano_search/", line 20, in <module>
    2017-05-11T12:17:45.104709+02:00 suseenterprise kopano-search[15728]: import kopano
    2017-05-11T12:17:45.104906+02:00 suseenterprise kopano-search[15728]: File "/usr/lib/python2.7/site-packages/kopano/", line 51, in <module>
    2017-05-11T12:17:45.105491+02:00 suseenterprise kopano-search[15728]: from .config import Config, CONFIG
    2017-05-11T12:17:45.105701+02:00 suseenterprise kopano-search[15728]: File "/usr/lib/python2.7/site-packages/kopano/", line 12, in <module>
    2017-05-11T12:17:45.105899+02:00 suseenterprise kopano-search[15728]: from .utils import human_to_bytes as _human_to_bytes
    2017-05-11T12:17:45.106096+02:00 suseenterprise kopano-search[15728]: File "/usr/lib/python2.7/site-packages/kopano/", line 25, in <module>
    2017-05-11T12:17:45.106296+02:00 suseenterprise kopano-search[15728]: from MAPI import (
    2017-05-11T12:17:45.106494+02:00 suseenterprise kopano-search[15728]: File "/usr/lib/python2.7/site-packages/MAPI/", line 5, in <module>
    2017-05-11T12:17:45.106690+02:00 suseenterprise kopano-search[15728]: from MAPICore import *
    2017-05-11T12:17:45.106928+02:00 suseenterprise kopano-search[15728]: File "/usr/lib64/python2.7/site-packages/", line 111, in <module>
    2017-05-11T12:17:45.107135+02:00 suseenterprise kopano-search[15728]: __swig_getmethods__ = {}
    2017-05-11T12:17:45.107337+02:00 suseenterprise kopano-search[15728]: AttributeError: 'module' object has no attribute 'MAPIInitialize_Multithreaded'
    2017-05-11T12:17:45.114062+02:00 suseenterprise systemd[1]: kopano-search.service: Main process exited, code=exited, status=1/FAILURE
    2017-05-11T12:17:45.115093+02:00 suseenterprise systemd[1]: kopano-search.service: Unit entered failed state.
    2017-05-11T12:17:45.115349+02:00 suseenterprise systemd[1]: kopano-search.service: Failed with result 'exit-code'.

    haven’t found much via google search or forum search here about this

    Server is SLES 12 SP2

    thanks in advance for any tips/hints/pointers

  • Hi again,

    nobody got any ideas?

    Could live without python plugins, and even kopano-search for a while. But not without bricklevel backups.

    #kopano-backup --help
    Traceback (most recent call last):
      File "/usr/sbin/kopano-backup", line 3, in <module>
        import kopano_backup
      File "/usr/lib/python2.7/site-packages/kopano_backup/", line 25, in <module>
        from MAPI.Util import *
      File "/usr/lib/python2.7/site-packages/MAPI/", line 5, in <module>
        from MAPICore import *
      File "/usr/lib64/python2.7/site-packages/", line 111, in <module>
        __swig_getmethods__ = {}
    AttributeError: 'module' object has no attribute 'MAPIInitialize_Multithreaded'

    help would really be appreciated…

    using the official kopano repository for SLES12 btw…

Log in to reply

Looks like your connection to Kopano Community Forum was lost, please wait while we try to reconnect.