Page MenuHomePhabricator

Error to export books in "pdf" in french Wikisource
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

I've tryied several times this day to export books in "pdf" format in french Wikisource, but I had the message below.

What happens?:

Error message :
Une erreur est survenue

Détails de l’erreur : The command "'ebook-convert' '/ws-export/var/file-cache/www-data/ws-c0_Voyages_des_trois_princes_de_Sarendip-8661861909506340.epub' '/ws-export/var/file-cache/www-data/ws-c0_Voyages_des_trois_princes_de_Sarendip-866186505276452.pdf' '--page-breaks-before' '/' '--paper-size' 'a5' '--pdf-page-margin-bottom' '32' '--pdf-page-margin-top' '40' '--pdf-page-margin-left' '24' '--pdf-page-margin-right' '24' '--pdf-page-numbers' '--preserve-cover-aspect-ratio'" failed.

Exit Code: 1(General error)

Working directory: /var/www/tool/public

Output:
================
Conversion options changed from defaults:
  preserve_cover_aspect_ratio: True
  paper_size: 'a5'
  pdf_page_margin_top: 40.0
  pdf_page_margin_right: 24.0
  pdf_page_margin_left: 24.0
  pdf_page_margin_bottom: 32.0
  pdf_page_numbers: True
1% Converting input to HTML...


Error Output:
================
Failed to import PyQt module: PyQt6.QtWebEngineCore with error: libasound.so.2: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "runpy.py", line 198, in _run_module_as_main
  File "runpy.py", line 88, in _run_code
  File "site.py", line 47, in <module>
  File "site.py", line 43, in main
  File "calibre/ebooks/conversion/cli.py", line 428, in main
  File "calibre/ebooks/conversion/plumber.py", line 1087, in run
  File "calibre/ebooks/conversion/plugins/pdf_output.py", line 154, in specialize_options
ImportError: cannot import name 'QWebEnginePage' from 'qt.webengine' (/opt/calibre/lib/calibre-extensions/python-lib.bypy.frozen/qt/webengine.pyc)

Si cette erreur persiste, veuillez signaler une anomalie sur Phabricator.

What should have happened instead?:

export of a book using WS Export tool

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
The message happened while trying to export the book : https://fr.wikisource.org/wiki/Voyages_des_trois_princes_de_Sarendip
but the same problem occured with all others books

Other information (browser name/version, screenshots, etc.):

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

It appears that the recent upgrade for T410221 meant that some libraries were missing. Notably libasound2, it looks like (although I also installed libxcb-xinerama0 as suggested in a few Calibre forum posts). The above PDF looks like it's exporting correctly now. I've updated the docs https://wikitech.wikimedia.org/wiki/Special:Diff/2361581

@Lorlam Can you confirm that it's all working for you now?

Samwilson claimed this task.

Great, thanks.