Package: unoconv Version: 0.7-2 Severity: important odt2docbook and odt2xml fail if line numbering is active. This the attached simple testcase:
cventin:~> odt2docbook test.odt /bin/odt2docbook:778: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. if product.ooName not in ('LibreOffice', 'LOdev') or LooseVersion(product.ooSetupVersion) <= LooseVersion('3.3'): Entity: line 3: parser error : Attribute style:writing-mode redefined :font-size-complex="12pt" style:language-complex="hi" style:country-complex="IN" ^ Traceback (most recent call last): File "/bin/odt2docbook", line 1037, in convert document.storeToURL(outputurl, tuple(outputprops) ) uno.com.sun.star.io.IOException: SfxBaseModel::impl_store <file:///home/vlefevre/test.xml> failed: 0xc10(Error Area:Io Class:Write Code:16) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/bin/odt2docbook", line 1282, in <module> main() File "/bin/odt2docbook", line 1198, in main convertor.convert(inputfn) File "/bin/odt2docbook", line 1039, in convert raise UnoException("Unable to store document to %s (ErrCode %d)\n\nProperties: %s" % (outputurl, e.ErrCode, outputprops), None) ^^^^^^^^^ File "/usr/lib/python3/dist-packages/uno.py", line 507, in _uno_struct__getattr__ return getattr(self.__dict__["value"], name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: ErrCode and a soffice.bin process is left behind, which makes LibreOffice unusable. Disabling line numbering in the .odt file makes the issue disappear. -- System Information: Debian Release: trixie/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.11.7-amd64 (SMP w/12 CPU threads; PREEMPT) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages unoconv depends on: ii python3 3.12.7-1 ii python3-uno 4:24.8.2-2 Versions of packages unoconv recommends: ii libreoffice-calc 4:24.8.2-2 ii libreoffice-draw 4:24.8.2-2 ii libreoffice-impress 4:24.8.2-2 ii libreoffice-writer 4:24.8.2-2 unoconv suggests no packages. -- no debconf information -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
test.odt
Description: application/vnd.oasis.opendocument.text