Search startup error

  • Dear all,

    the search process won’t start on Ubuntu 18.04.1 LTS (kopano-search (

    root@server10:~# kopano-search -c /etc/kopano/search.cfg
    Traceback (most recent call last):
      File "/usr/sbin/kopano-search", line 4, in <module>
        import kopano_search
      File "/usr/lib/python3/dist-packages/kopano_search/", line 23, in <module>
        from kopano_search import plaintext
      File "/usr/lib/python3/dist-packages/kopano_search/", line 3, in <module>
        import magic
      File "/usr/lib/python3/dist-packages/magic/", line 361, in <module>
      File "/usr/lib/python3/dist-packages/magic/", line 325, in add_compat
        from magic import compat
      File "/usr/lib/python3/dist-packages/magic/", line 61, in <module>
        _open = _libraries['magic'].magic_open
      File "/usr/lib/python3.6/ctypes/", line 361, in __getattr__
        func = self.__getitem__(name)
      File "/usr/lib/python3.6/ctypes/", line 366, in __getitem__
        func = self._FuncPtr((name_or_ordinal, self))
    AttributeError: /usr/bin/python3: undefined symbol: magic_open

    Any ideas?

    Thx a lot!

  • Seems to be an issue with the python-magic shipped with Ubuntu that is missing magic_open, see

    Name Conflict
    There are, sadly, two libraries which use the module name magic. Both have been around for quite a while.If you are using this module and get an error using a method like open, your code is expecting the other one. Hopefully one day these will be reconciled.

    Where can I find the module including magic_open for Ubuntu?

Log in to reply