Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    Search startup error

    Kopano Groupware Core
    1
    2
    262
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Stephan
      Stephan last edited by

      Dear all,

      the search process won’t start on Ubuntu 18.04.1 LTS (kopano-search (8.7.80.529.bfd59fc27-0+72.1):

      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/__init__.py", line 23, in <module>
          from kopano_search import plaintext
        File "/usr/lib/python3/dist-packages/kopano_search/plaintext.py", line 3, in <module>
          import magic
        File "/usr/lib/python3/dist-packages/magic/__init__.py", line 361, in <module>
          add_compat(globals())
        File "/usr/lib/python3/dist-packages/magic/__init__.py", line 325, in add_compat
          from magic import compat
        File "/usr/lib/python3/dist-packages/magic/compat.py", line 61, in <module>
          _open = _libraries['magic'].magic_open
        File "/usr/lib/python3.6/ctypes/__init__.py", line 361, in __getattr__
          func = self.__getitem__(name)
        File "/usr/lib/python3.6/ctypes/__init__.py", line 366, in __getitem__
          func = self._FuncPtr((name_or_ordinal, self))
      AttributeError: /usr/bin/python3: undefined symbol: magic_open
      

      Any ideas?

      Thx a lot!
      Stephan

      1 Reply Last reply Reply Quote 0
      • Stephan
        Stephan last edited by

        Seems to be an issue with the python-magic shipped with Ubuntu that is missing magic_open, see https://github.com/ahupp/python-magic.

        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?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post