![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,253
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#4 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 817
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
|
Thank you!
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |