Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 10-23-2020, 05:11 AM   #1
tage fredheim
Member
tage fredheim began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Apr 2019
Device: edge
Calibre log on ubuntu

I get an error when running this command:
File "/usr/lib/python3.7/subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/usr/bin/ebook-convert', '/tmp/tmpd3f2op4s/EPUB/861300.xhtml', '/tmp/tmpwbv_tgg9/861305.docx', '--chapter=/', '--chapter-mark=none', '--page-breaks-before=/', '--no-chapters-in-toc', '--toc-threshold=0', '--docx-page-size=a4', '--extra-css=/opt/produksjonssystem/xslt/nlbpub-to-docx/extra.css', '--embed-font-family=Verdana', '--docx-page-margin-top=42', '--docx-page-margin-bottom=42', '--docx-page-margin-left=70', '--docx-page-margin-right=56', '--language= (nb) ', '--base-font-size=13', '--font-size-mapping=13,13,13,13,13,13,13,13']' returned non-zero exit status 1.

This error has never occurred before and happens to only one book. Is there a log file for ebook-convert on ubuntu? I have searched the file system without finding one.

I have also tried the conversion on calibre desktop gui, and on windows the conversion runs fine.
tage fredheim is offline   Reply With Quote
Old 10-23-2020, 06:03 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Uninstall the ubuntu calibre package and install the official binaries.
kovidgoyal is offline   Reply With Quote
Advert
Old 11-02-2020, 07:54 AM   #3
tage fredheim
Member
tage fredheim began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Apr 2019
Device: edge
Did that upgraded to calibre 5.4.2- same error. And I still don't find any calibre.log on my file-system. But here is an excerpt from the python log file:
Spoiler:

[22.6677s] ---- stderr: ----

[22.6678s] QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-statped'

[22.6678s] Traceback (most recent call last):

[22.6678s] File "runpy.py", line 194, in _run_module_as_main

[22.6678s] File "runpy.py", line 87, in _run_code

[22.6678s] File "site.py", line 45, in <module>

[22.6678s] File "site.py", line 41, in main

[22.6678s] File "calibre/ebooks/conversion/cli.py", line 401, in main

[22.6678s] File "calibre/ebooks/conversion/plumber.py", line 1274, in run

[22.6678s] File "calibre/ebooks/conversion/plugins/docx_output.py", line 89, in convert

[22.6678s] File "calibre/ebooks/docx/writer/from_html.py", line 441, in __call__

[22.6678s] File "calibre/ebooks/docx/writer/from_html.py", line 483, in process_item

[22.6678s] File "calibre/ebooks/docx/writer/from_html.py", line 534, in process_tag

[22.6678s] File "calibre/ebooks/docx/writer/from_html.py", line 534, in process_tag

[22.6678s] File "calibre/ebooks/docx/writer/from_html.py", line 534, in process_tag

[22.6678s] [Previous line repeated 3 more times]

[22.6678s] File "calibre/ebooks/docx/writer/from_html.py", line 512, in process_tag

[22.6678s] File "calibre/ebooks/docx/writer/from_html.py", line 579, in add_block_tag

[22.6678s] File "calibre/ebooks/oeb/parse_utils.py", line 32, in barename

[22.6678s] AttributeError: 'cython_function_or_method' object has no attribute 'rpartition'


[22.6679s] -----------------

[22.6680s] En feil oppstod ved konvertering til DOCX for 861305

Last edited by theducks; 11-02-2020 at 09:21 AM. Reason: spoilered
tage fredheim is offline   Reply With Quote
Old 11-02-2020, 10:00 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Then open a bug report and attach the file causing the issue.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
calibre-server log in Ubuntu showing unexpected "failed login attempt" messages sparker Related Tools 2 04-16-2018 07:11 PM
how do i log in to existing calibre thistlebarrow2 Calibre 2 04-02-2015 10:57 AM
Calibre WebServer Log Morphzan Calibre 1 06-08-2013 08:33 AM
calibre 0.7.48 error log winterescape Calibre 4 03-11-2011 05:24 PM
Can not log in to Moblieread from Ubuntu Linux kacir Feedback 7 08-18-2007 08:35 AM


All times are GMT -4. The time now is 01:25 AM.


MobileRead.com is a privately owned, operated and funded community.