Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-07-2014, 10:48 PM   #1
ideamutt
Junior Member
ideamutt began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2014
Device: kindle fire
Calibre help? IndexError: list index out of range

Quote:
calibre, version 1.18.0
ERROR: Unhandled exception: <b>IndexError</b>:list index out of range

calibre 1.18 Portable isfrozen: True is64bit: False
Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE')
('Windows', '7', '6.1.7601')
Python 2.7.5
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Traceback (most recent call last):
File "site-packages\calibre\gui2\tweak_book\boss.py", line 412, in rename_requested
File "site-packages\calibre\gui2\tweak_book\boss.py", line 463, in add_savepoint
File "site-packages\calibre\gui2\tweak_book\undo.py", line 41, in add_savepoint
IndexError: list index out of range
I'm quite new to Calibre and setting up ebooks, but have some background in html and css. I'd brought in my book text and was happily using the editor to format it for several hours before suddenly encountering this error when renaming my last .html file. Now suddenly many things I try to do result in this "list index out of range" error, and I'm worried I'll lose all of the work I've done up to this point.

Is there any hope of rescue?

My gratitude to anyone who can help!
ideamutt is offline   Reply With Quote
Old 01-08-2014, 12:17 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,337
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Just click save, quit and re-open your book, you will be fine. Or use save a copy if you want to be doubly safe. And if you can figure out what you did to cause that error, it would help me fix it.
kovidgoyal is offline   Reply With Quote
Advert
Old 01-08-2014, 06:55 AM   #3
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 1,017
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
This looks like the problem I had with version 1.17.0.
Since then I regularly do a save to be safe and I avoid long unsaved edit sessions. Until now, I did not encounter the problem again.

Last edited by DrChiper; 01-08-2014 at 07:51 AM.
DrChiper is offline   Reply With Quote
Old 01-08-2014, 11:57 AM   #4
ideamutt
Junior Member
ideamutt began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2014
Device: kindle fire
Quote:
Originally Posted by kovidgoyal View Post
Just click save, quit and re-open your book, you will be fine. Or use save a copy if you want to be doubly safe. And if you can figure out what you did to cause that error, it would help me fix it.
*facepalm*
Opening the file again today did indeed fix the problem, I'm a bit amazed it could be that easy, but at the same time embarrassed I didn't try that on my own.

Thank you!

As for how I caused it I can't say exactly. The first time it occurred I was renaming the last .html file, after having successfully renamed the previous 22 files. I tried a few more times and then moved on, performing several more edits to the .html files throughout the book (I did have all those files open in tabs, if that could have been part of the problem...) and saving frequently, which is why when I realized I was getting the same error when I attempted any directory-level changes (renaming other files, adding new images), I couldn't just try reverting to before I got the error.

I'm not sure if that helps you or not! Thank you, though, for taking the time to reply, @kovidgoyal!
ideamutt is offline   Reply With Quote
Old 01-08-2014, 07:56 PM   #5
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,337
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Keep an eye out. If you can manage yo make the error happen again, try to post the steps that led up to it.
kovidgoyal is offline   Reply With Quote
Advert
Old 01-08-2025, 02:26 PM   #6
crphoto
Junior Member
crphoto began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2025
Device: Amazon kindle paper white
Same problem

Quote:
Originally Posted by kovidgoyal View Post
Just click save, quit and re-open your book, you will be fine. Or use save a copy if you want to be doubly safe. And if you can figure out what you did to cause that error, it would help me fix it.

I have the same error, here is my detailed list error as it gives me.
Spoiler:

calibre, version 7.23.0 (win32, embedded-python: True)
Conversion error: Failed: Convert book 1 of 1 (In Awe of Thy Word)

Convert book 1 of 1 (In Awe of Thy Word)
Conversion options changed from defaults:
output_profile: 'kindle_pw3'
pdf_header_regex: None
verbose: 2
pdf_footer_regex: None
cover: 'C:\\Users\\croll\\AppData\\Local\\Temp\\calibre_e u90lxye\\lwwz8s8f.jpeg'
read_metadata_from_opf: 'C:\\Users\\croll\\AppData\\Local\\Temp\\calibre_e u90lxye\\68gpxikg.opf'
Resolved conversion options
calibre version: 7.23.0
{'add_alt_text_to_img': False,
'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': 'original',

Last edited by theducks; 01-08-2025 at 03:01 PM. Reason: SPOILER LOG files
crphoto is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
LIST INDEX OUT OF RANGE ERROR texasmichele Calibre 6 01-29-2013 01:37 PM
Convertion error txt to epub "IndexError: list index out of range" economix Conversion 6 12-25-2011 06:14 AM
list index out of range error adamvert Calibre 20 10-02-2010 12:26 PM
List index out of range, 0.6.46 downloading metadata, no author. highwaykind Calibre 4 04-04-2010 07:31 AM
MobiDeDRM a kindle book and List index out of Range recordsmith Kindle Formats 3 03-31-2009 12:08 PM


All times are GMT -4. The time now is 03:13 PM.


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