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-02-2020, 09:32 AM   #1
rikm
Member
rikm began at the beginning.
 
Posts: 14
Karma: 10
Join Date: May 2010
Device: KA1
ebook-convert error

good morning all, the convert utility has just stop working with the error msg below...is this a python 2 vs. 3 issue that I found old references to, or is there something anyone recognizes...it is Calibre 5.1 on linux and it throws the same error in the GUI



thanks, and any help appreciated,

rikm



Traceback (most recent call last):
File "runpy.py", line 194, in _run_module_as_main
File "runpy.py", line 87, in _run_code
File "site.py", line 48, in <module>
File "site.py", line 44, in main
File "site-packages/calibre/ebooks/conversion/cli.py", line 401, in main
File "site-packages/calibre/ebooks/conversion/plumber.py", line 1274, in run
File "site-packages/calibre/ebooks/conversion/plugins/htmlz_output.py", line 107, in convert
TypeError: a bytes-like object is required, not 'str'
rikm is offline   Reply With Quote
Old 10-02-2020, 09:52 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,231
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...13e5026d290787
kovidgoyal is offline   Reply With Quote
Advert
Old 10-02-2020, 10:37 AM   #3
rikm
Member
rikm began at the beginning.
 
Posts: 14
Karma: 10
Join Date: May 2010
Device: KA1
wow that was quick, thanks Kovid...as it's already up on github can I hope that a v5.1.1 will be posted with the change, or are there larger issues?

...have not been working Calibre from src and would rather not have to set up the build environment unless necessary


thanks again,


rikm
rikm is offline   Reply With Quote
Old 10-02-2020, 11:46 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,231
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No there's going to be no 5.1.1 and there's no build environment to setup just download the source and set a single environment variable. https://manual.calibre-ebook.com/develop.html
kovidgoyal is offline   Reply With Quote
Old 10-02-2020, 12:42 PM   #5
rikm
Member
rikm began at the beginning.
 
Posts: 14
Karma: 10
Join Date: May 2010
Device: KA1
well I have done it before...way back when, once upon a time, but am a grumpy old retired guy now and didn't want to deal with finding the missing devel stuff that is always separated out with Redhat distros...that's what I meant by maintaining the build environment

did grab the src zip and ran setup.py and tracked down a few missing headers but am stuck with a missing 'sipbuild' and as there is no sip-devel package, can't find where Fedora hides it


thanks again,



rikm


SIPing 3 files...

/usr/bin/python -c import os; os.chdir('/home/dls/ebooktbx/calibre/src/calibre-master/build/pyqt/pictureflow'); from sipbuild.tools.build import main; main(); --verbose --no-make --qmake /usr/bin/qmake-qt5

Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'sipbuild'
rikm is offline   Reply With Quote
Advert
Old 10-02-2020, 12:52 PM   #6
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,231
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You dont need to do any of that. Install the official calibre binaries, download the calibre source code, set the CALIBRE_DEVELOP_FROM env var, you are done. Read the link I posted earlier.
kovidgoyal is offline   Reply With Quote
Old 10-02-2020, 03:16 PM   #7
rikm
Member
rikm began at the beginning.
 
Posts: 14
Karma: 10
Join Date: May 2010
Device: KA1
thanks again Kovid, I did set the env var and do see stuff in the src tree where presumably the build should find it, but it is what it is:


ModuleNotFoundError: No module named 'sipbuild'


Fedora32 does not have sip>=5.3, and was wondering if that is confusing things...

python3-pyqt5-sip-4.19.21-1.fc32.x86_64
sip-4.19.21-1.fc32.x86_64
python3-wx-siplib-4.19.21-1.fc32.x86_64
python3-sip-devel-4.19.21-1.fc32.x86_64
python3-pyqt4-sip-4.19.21-1.fc32.x86_64
rikm is offline   Reply With Quote
Old 10-02-2020, 10:58 PM   #8
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,231
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Install the official calibre binaries from https://calibre-ebook.com/download_linux
kovidgoyal is offline   Reply With Quote
Old 10-03-2020, 01:21 AM   #9
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,231
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
And I released a beta with the fix here: https://www.mobileread.com/forums/sh...d.php?t=333686
kovidgoyal is offline   Reply With Quote
Old 10-03-2020, 08:55 AM   #10
rikm
Member
rikm began at the beginning.
 
Posts: 14
Karma: 10
Join Date: May 2010
Device: KA1
good morning and thanks, the 5.1.2 works as previously expected


any idea why the env var thing didn't work...checked my old src work space and apparently haven't compiled Calibre from src since the 0.n.n days


thanks again,


rikm
rikm is offline   Reply With Quote
Old 10-05-2020, 04:09 PM   #11
flparker
Junior Member
flparker began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2020
Device: Kindle
I just downloaded calibre because I read that it was one click to convert a .doc file to .mobi. Not true! I just get an error message 'Can't convert some files'. This is with my Kindle connected and in Calibre. Don't give me a load of code to input - I'm a writer not an IT nerd.
flparker is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error when using ebook-convert: "invalid start byte" Emanuele42 Conversion 9 01-10-2020 01:12 PM
Error using ebook-convert Invalid Selector: nav[epub|type~= Light-Wizzard Conversion 1 06-04-2017 05:02 PM
Please don't downscale or convert my images, ebook-convert ! nylnook Conversion 3 02-11-2016 06:08 AM
Python error using ebook-convert (Linux) p014k Library Management 4 09-10-2012 10:24 PM
ebook-convert error on PDF output without X hiperlink Conversion 3 04-04-2011 07:23 AM


All times are GMT -4. The time now is 11:57 PM.


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