Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calibre converter issue #234

Open
boyercam opened this issue Mar 1, 2025 · 2 comments
Open

Calibre converter issue #234

boyercam opened this issue Mar 1, 2025 · 2 comments

Comments

@boyercam
Copy link

boyercam commented Mar 1, 2025

Hello,

I've just installed ConvertX using the example Docker Compose in the readme and everything appears to have installed successfully and I can login to ConvertX.

When I try to use Calibre to carry out any conversion operations however, the task fails. I've tried multiple document types (from and to) but non seem to work. I did try to convert a png to pdf just to check that there wasn't an issue with all the converter engines, GraphicsMagick worked fine so I'm not sure if this is an issue unique to me, ConvertX or upstream Calibre.

The logs below are for a TXT to PDF conversion which failed.

ConvertX v0.11.1
🦊 Elysia is running at http://localhost:3000
Alpine Linux v3.20
pandoc 3.1.13
GraphicsMagick 1.3.43 2024-03-23 Q16 http://www.GraphicsMagick.org/
resvg v0.44.0
XeTeX 3.141592653-2.6-0.999996 (TeX Live 2024/Alpine Linux)
assimp Version 5.4 -shared -st (GIT commit 0)
djxl v0.10.2 [SSE2]
Bun v1.2.2
vips-8.15.2
ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers
Inkscape 1.3.2 (091e20ef0f, 2023-11-25)
ebook-convert (calibre 7.24.0)
stdout: 1% Converting input to HTML...
stderr: Traceback (most recent call last):
  File "/usr/bin/ebook-convert", line 21, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/calibre/calibre/ebooks/conversion/cli.py", line 430, in main
    plumber.run()
  File "/usr/lib/calibre/calibre/ebooks/conversion/plumber.py", line 1127, in run
    self.output_plugin.specialize_options(self.log, self.opts, self.input_fmt)
  File "/usr/lib/calibre/calibre/ebooks/conversion/plugins/pdf_output.py", line 155, in specialize_options
    from calibre.gui2 import must_use_qt
  File "/usr/lib/calibre/calibre/gui2/__init__.py", line 58, in <module>
    import calibre.gui2.pyqt6_compat as pqc
  File "/usr/lib/calibre/calibre/gui2/pyqt6_compat.py", line 38, in <module>
    from calibre_extensions import progress_indicator
ImportError: Error relocating /usr/lib/calibre/calibre/plugins/progress_indicator.so: _ZN13QLatin1String12equal_helperES_PKcx: symbol not found
Failed to convert ./data/uploads/1/12/test.txt from txt to pdf using calibre. error: Error: Command failed: ebook-convert "./data/uploads/1/12/test.txt" "./data/output/1/12/test.pdf"
Traceback (most recent call last):
  File "/usr/bin/ebook-convert", line 21, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/calibre/calibre/ebooks/conversion/cli.py", line 430, in main
    plumber.run()
  File "/usr/lib/calibre/calibre/ebooks/conversion/plumber.py", line 1127, in run
    self.output_plugin.specialize_options(self.log, self.opts, self.input_fmt)
  File "/usr/lib/calibre/calibre/ebooks/conversion/plugins/pdf_output.py", line 155, in specialize_options
    from calibre.gui2 import must_use_qt
  File "/usr/lib/calibre/calibre/gui2/__init__.py", line 58, in <module>
    import calibre.gui2.pyqt6_compat as pqc
  File "/usr/lib/calibre/calibre/gui2/pyqt6_compat.py", line 38, in <module>
    from calibre_extensions import progress_indicator
ImportError: Error relocating /usr/lib/calibre/calibre/plugins/progress_indicator.so: _ZN13QLatin1String12equal_helperES_PKcx: symbol not found

I've done a quick online search for ImportError: Error relocating /usr/lib/calibre/calibre/plugins/progress_indicator.so: _ZN13QLatin1String12equal_helperES_PKcx: symbol not found but didn't get any exact matches. The common theme that I could see from the results I did find were to do with Alpine, I'm not sure if this is helpful or not.

@danktankk
Copy link

danktankk commented Mar 4, 2025

I am getting this error also when trying to convert a word document to txt. Pdf to txt does work.

convertx_convertx.1.pba60z2zcptc@pleione    | Failed to convert ./data/uploads/1/9/Check and repair tables.docx from docx to txt using calibre. error: Error: Command failed: ebook-convert "./data/uploads/1/9/Check and repair tables.docx" "./data/output/1/9/Check and repair tables.txt"
convertx_convertx.1.pba60z2zcptc@pleione    | Traceback (most recent call last):
convertx_convertx.1.pba60z2zcptc@pleione    |   File "/usr/bin/ebook-convert", line 21, in <module>
convertx_convertx.1.pba60z2zcptc@pleione    |     sys.exit(main())
convertx_convertx.1.pba60z2zcptc@pleione    |              ^^^^^^
convertx_convertx.1.pba60z2zcptc@pleione    |   File "/usr/lib/calibre/calibre/ebooks/conversion/cli.py", line 430, in main
convertx_convertx.1.pba60z2zcptc@pleione    |     plumber.run()
convertx_convertx.1.pba60z2zcptc@pleione    |   File "/usr/lib/calibre/calibre/ebooks/conversion/plumber.py", line 1129, in run
convertx_convertx.1.pba60z2zcptc@pleione    |     self.oeb = self.input_plugin(stream, self.opts,
convertx_convertx.1.pba60z2zcptc@pleione    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
convertx_convertx.1.pba60z2zcptc@pleione    |   File "/usr/lib/calibre/calibre/customize/conversion.py", line 245, in __call__
convertx_convertx.1.pba60z2zcptc@pleione    | stdout: 1% Converting input to HTML...
convertx_convertx.1.pba60z2zcptc@pleione    |     ret = self.convert(stream, options, file_ext,
convertx_convertx.1.pba60z2zcptc@pleione    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
convertx_convertx.1.pba60z2zcptc@pleione    |   File "/usr/lib/calibre/calibre/ebooks/conversion/plugins/docx_input.py", line 31, in convert
convertx_convertx.1.pba60z2zcptc@pleione    |     from calibre.ebooks.docx.to_html import Convert
convertx_convertx.1.pba60z2zcptc@pleione    |   File "/usr/lib/calibre/calibre/ebooks/docx/to_html.py", line 25, in <module>
convertx_convertx.1.pba60z2zcptc@pleione    |     from calibre.ebooks.docx.images import Images
convertx_convertx.1.pba60z2zcptc@pleione    |   File "/usr/lib/calibre/calibre/ebooks/docx/images.py", line 16, in <module>
convertx_convertx.1.pba60z2zcptc@pleione    |     from calibre.utils.img import image_to_data, resize_to_fit
convertx_convertx.1.pba60z2zcptc@pleione    |   File "/usr/lib/calibre/calibre/utils/img.py", line 24, in <module>
convertx_convertx.1.pba60z2zcptc@pleione    |     from calibre_extensions import imageops
convertx_convertx.1.pba60z2zcptc@pleione    | ImportError: Error relocating /usr/lib/calibre/calibre/plugins/imageops.so: _ZN10QArrayData9allocate1EPPS_xNS_16AllocationOptionE: symbol not found
convertx_convertx.1.pba60z2zcptc@pleione    |
convertx_convertx.1.pba60z2zcptc@pleione    | InputFormatPlugin: DOCX Input running
convertx_convertx.1.pba60z2zcptc@pleione    | on /app/data/uploads/1/9/Check and repair tables.docx
convertx_convertx.1.pba60z2zcptc@pleione    |
convertx_convertx.1.pba60z2zcptc@pleione    | jobId set to: 10

@jjjonesjr33
Copy link

Getting the smae when going from pdf to docx

stderr: Traceback (most recent call last):
  File "/usr/bin/ebook-convert", line 21, in <module>
    sys.exit(main())
             ^^^^^^
stdout: 1% Converting input to HTML...  File "/usr/lib/calibre/calibre/ebooks/conversion/cli.py", line 429, in main

    plumber.run()
  File "/usr/lib/calibre/calibre/ebooks/conversion/plumber.py", line 1306, in run
    self.output_plugin.convert(self.oeb, self.output, self.input_plugin,
  File "/usr/lib/calibre/calibre/ebooks/conversion/plugins/docx_output.py", line 87, in convert
    from calibre.ebooks.docx.writer.from_html import Convert
  File "/usr/lib/calibre/calibre/ebooks/docx/writer/from_html.py", line 12, in <module>
    from calibre.ebooks.docx.writer.images import ImagesManager
InputFormatPlugin: PDF Input running  File "/usr/lib/calibre/calibre/ebooks/docx/writer/images.py", line 15, in <module>

    from calibre.ebooks.docx.images import pt_to_emu
  File "/usr/lib/calibre/calibre/ebooks/docx/images.py", line 16, in <module>
on /app/data/uploads/77756568247002/3/7dd5b9b1-b71b-42ef-ba71-e6b14a4007c6.pdf    from calibre.utils.img import image_to_data, resize_to_fit

pdftohtml log:
  File "/usr/lib/calibre/calibre/utils/img.py", line 24, in <module>
    from calibre_extensions import imageops
ImportError: Error relocating /usr/lib/calibre/calibre/plugins/imageops.so: _ZN10QArrayData9allocate1EPPS_xNS_16AllocationOptionE: symbol not found
Page-1

Failed to convert ./data/uploads/77756568247002/3/7dd5b9b1-b71b-42ef-ba71-e6b14a4007c6.pdf from pdf to docx using calibre. error: Error: Command failed: ebook-convert "./data/uploads/77756568247002/3/7dd5b9b1-b71b-42ef-ba71-e6b14a4007c6.pdf" "./data/output/77756568247002/3/7dd5b9b1-b71b-42ef-ba71-e6b14a4007c6.docx"
Parsing all content...Traceback (most recent call last):

  File "/usr/bin/ebook-convert", line 21, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/calibre/calibre/ebooks/conversion/cli.py", line 429, in main
    plumber.run()
Generating default TOC from spine...  File "/usr/lib/calibre/calibre/ebooks/conversion/plumber.py", line 1306, in run

    self.output_plugin.convert(self.oeb, self.output, self.input_plugin,
  File "/usr/lib/calibre/calibre/ebooks/conversion/plugins/docx_output.py", line 87, in convert
    from calibre.ebooks.docx.writer.from_html import Convert
  File "/usr/lib/calibre/calibre/ebooks/docx/writer/from_html.py", line 12, in <module>
34% Running transforms on e-book...    from calibre.ebooks.docx.writer.images import ImagesManager

  File "/usr/lib/calibre/calibre/ebooks/docx/writer/images.py", line 15, in <module>
    from calibre.ebooks.docx.images import pt_to_emu
  File "/usr/lib/calibre/calibre/ebooks/docx/images.py", line 16, in <module>
Merging user specified metadata...
    from calibre.utils.img import image_to_data, resize_to_fit
Detecting structure...  File "/usr/lib/calibre/calibre/utils/img.py", line 24, in <module>

    from calibre_extensions import imageops
ImportError: Error relocating /usr/lib/calibre/calibre/plugins/imageops.so: _ZN10QArrayData9allocate1EPPS_xNS_16AllocationOptionE: symbol not found
Auto generated TOC with 0 entries.

Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Removing fake margins...
Cleaning up manifest...
Trimming unused files from manifest...
Trimming 'index.xml' from manifest
Creating DOCX Output...
67% Running DOCX Output plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants