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



  • 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?



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

    Currently using kopano-search 8.6.80.865-0+123.1 amd64



  • 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..```


  • 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.


  • Kopano

    Hi @umgfoin ,

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



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


Log in to reply