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

    Missing xmltotext.xslt in kopano-search at Ubuntu 18.04 LTS

    Kopano Groupware Core
    5
    6
    648
    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.
    • General_Probe
      General_Probe last edited by

      After installing kopano-search 8.6.80.988-0+141.1, the following error was raised:

      Jun 10 21:49:09 tux kopano-search[24595]: warning: failed to load external entity "/usr/lib/python2.7/dist-packages/kopano_search/xmltotext.xslt"
      

      The only obvious way to work around this issue was to download https://raw.githubusercontent.com/Kopano-dev/kopano-core/master/installer/searchscripts/xmltotext.xslt and put it to /usr/lib/python2.7/dist-packages/kopano_search/xmltotext.xslt followed by a restart of the service.

      But shouldn’t this file be part of the kopano-search package by default?
      @fbartels maybe you can take a look at that issue?

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

        I have the same problem on Ubuntu 16.,04.

        Currently using kopano-search 8.6.80.865-0+123.1 amd64

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

          I still gave this problem in the latest daily build of kopano-search on Ubuntu 18.04:
          (kopano-search/unknown,now 8.6.81.435-0+75.1 amd64)

          Sep 29 17:45:17 m.server.net kopano-search[1578]: 2018-09-29 17:45:17,904 - index0 - WARNING - output on stderr:
          Sep 29 17:45:17 m.server.net kopano-search[1578]: warning: failed to load external entity "/usr/lib/python3/dist-packages/kopano_search/xmltotext.xslt"
          Sep 29 17:45:17 m.server.net kopano-search[1578]: cannot parse /usr/lib/python3/dist-packages/kopano_search/xmltotext.xslt
          Sep 29 17:45:17 m.server.net kopano-search[1578]: warning: failed to load external entity "/usr/lib/python3/dist-packages/kopano_search/xmltotext.xslt"
          Sep 29 17:45:17 m.server.net kopano-search[1578]: cannot parse /usr/lib/python3/dist-packages/kopano_search/xmltotext.xslt
          Sep 29 17:45:17 m.server.net kopano-search[1578]: warning: failed to load external entity "/usr/lib/python3/dist-packages/kopano_search/xmltotext.xslt"
          Sep 29 17:45:17 m.server.net kopano-search[1578]: cannot parse /usr/lib/python3/dist-packages/kopano_search/xmltotext.xslt
          Sep 29 17:45:17 m.server.net kopano-search[1578]: warning: failed to load external entity "/usr/lib/python3/dist-packages/kopano_search/xmltotext.xslt"
          Sep 29 17:45:17 m.server.net kopano-search[1578]: cannot parse /usr/lib/python3/dist-packages/kopano_search/xmltotext.xslt
          Sep 29 17:45:17 m.server.net kopano-search[1578]: warning: failed to load external entity "/usr/lib/python3/dist-packages/kopano_search/xmltotext.xslt"
          Sep 29 17:45:17 m.server.net kopano-search[1578]: cannot parse /usr/lib/python3/dist-packages/kopano_search/xmltotext.xslt
          Sep 29 17:45:17 m.server.net kopano-search[1578]: warning: failed to load external entity "/usr/lib/python3/dist-packages/kopano_search/xmltotext.xslt"
          Sep 29 17:45:17 m.server.net kopano-search[1578]: cannot parse /usr/lib/python3/dist-packages/kop..```
          umgfoin 1 Reply Last reply Reply Quote 0
          • umgfoin
            umgfoin @Gerald last edited by umgfoin

            Good morning,
            this is because a corresponding data_files=entry is missing in ECtools/search/setup.py

            [...]
            setup(name='kopano-search',
                  version=metadata['version'],
                  [...]
                  data_files=[('kopano_search',['kopano_search/xmltotext.xslt'])]
            )
            

            github: umgfoin/kopano-core/commit/4a51603

            By default, setuptools will package solely py-files into kopano_search-xxx.egg if not instructed as above.

            ++umgfoin.

            1 Reply Last reply Reply Quote 0
            • fbartels
              fbartels Kopano last edited by

              Hi @umgfoin ,

              thanks for looking into this. I have created https://jira.kopano.io/browse/KC-1292 for followup.

              Regards Felix

              Resources:
              https://kopano.com/blog/how-to-get-kopano/
              https://documentation.kopano.io/
              https://kb.kopano.io/

              Support overview:
              https://kopano.com/support/

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

                In my 8.6.80.1420 it is installed in /etc/kopano/searchscripts/xmltotext.xslt

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