Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 03-21-2021, 10:19 AM   #1
icallaci
Guru
icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.
 
Posts: 817
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
explode-book and implode-book problems

This used to work but I am getting "TypeError: a bytes-like object is required not str" when I run the following .bat file in Windows 8:

for /r %%f in (*.epub) do (
calibre-debug --explode-book -x "%%f" "%%~pnf"
)

It is supposed to create a directory for each epub and unzip all the files so that I can make batch edits on the html or css files.

It still creates the directories and unzips the files, but when I try to use implode-book, it fails completely, with no files created in the target directory. The .bat file to rebuild the epubs is:

mkdir ".\_RebuiltEpubs\"
for /d %%d in (*) do (
if not ".\%%d"==".\_RebuiltEpubs" (
calibre-debug --implode-book -i ".\%%d" ".\_RebuiltEpubs\%%d.epub"
)
)

I feel like a dummy but I am having trouble figuring this out. Thanks for any help.

irene
icallaci is offline   Reply With Quote
Old 03-21-2021, 10:26 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,253
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
this will likely be a python 3 regression post the full error.
kovidgoyal is offline   Reply With Quote
Advert
Old 03-21-2021, 10:30 AM   #3
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,253
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...615b669353fb9e
kovidgoyal is offline   Reply With Quote
Old 03-21-2021, 10:50 AM   #4
icallaci
Guru
icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.
 
Posts: 817
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
Thank you!

Quote:
Originally Posted by kovidgoyal View Post
icallaci is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Zealand: Book sales down 15% but ebook sales "explode" GeoffR News 12 10-11-2013 06:49 AM
Problems loading new book digiSara Kobo Reader 4 12-31-2010 09:02 AM
PRS700 problems...like how to get a book! reader11 Sony Reader 4 06-17-2009 11:13 PM
e Book light.... problems? Book Worm Sony Reader 7 03-17-2009 05:32 PM
Explode and Implode an ePub? wallcraft ePub 5 09-12-2008 09:47 AM


All times are GMT -4. The time now is 12:35 AM.


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