Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-03-2008, 11:33 PM   #1
dedicated
Member
dedicated began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Nov 2007
Location: Los Angeles, CA
Device: Sony PRS-500, Kindle DX
HTML Conversion Error

Hi Kovid,

After upgrading to the latest version of Calibre (0.4.109), I tried to convert an HTML file and got this error:

list index out of range
Detailed traceback:
Traceback (most recent call last):
File "calibre\gui2\dialogs\lrf_single.pyo", line 383, in accept
File "calibre\gui2\dialogs\lrf_single.pyo", line 357, in write_metadata
File "calibre\library\database2.pyo", line 861, in set_title
File "calibre\library\database2.pyo", line 521, in set_path
File "calibre\library\database2.pyo", line 668, in add_format
File "calibre\library\database2.pyo", line 235, in refresh_ids
IndexError: list index out of range

Any ideas? TIA
Attached Files
File Type: rar Googles Gatekeepers.rar (15.9 KB, 113 views)
dedicated is offline   Reply With Quote
Old 12-04-2008, 01:13 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: 25,617
Karma: 4998447
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Just restart calibre and you should be fine.
kovidgoyal is offline   Reply With Quote
Old 12-04-2008, 01:27 AM   #3
dedicated
Member
dedicated began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Nov 2007
Location: Los Angeles, CA
Device: Sony PRS-500, Kindle DX
That did it. Thanks!
dedicated is offline   Reply With Quote
Old 12-05-2008, 07:22 PM   #4
dedicated
Member
dedicated began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Nov 2007
Location: Los Angeles, CA
Device: Sony PRS-500, Kindle DX
The conversion goes through but when I try to view it, I get this stack error:

'PageTree' object has no attribute '_contents'
Detailed traceback:
Traceback (most recent call last):
File "C:\Program Files\calibre\library.zip\calibre\gui2\lrf_rendere r\main.py", line 183, in parsed
File "calibre\gui2\lrf_renderer\document.pyo", line 472, in render
File "calibre\ebooks\lrf\objects.pyo", line 186, in __iter__
AttributeError: 'PageTree' object has no attribute '_contents'

I saw a similar thread on this issue but the suspect was a DRM'ed PDF. In my case, I took an article from the NYTimes, saved as HTML and dropped it into Calibre.
dedicated is offline   Reply With Quote
Old 12-05-2008, 07:38 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: 25,617
Karma: 4998447
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
attach the zip file from the nytimes and the created lrf file
kovidgoyal is offline   Reply With Quote
Old 12-05-2008, 09:40 PM   #6
dedicated
Member
dedicated began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Nov 2007
Location: Los Angeles, CA
Device: Sony PRS-500, Kindle DX
Sure thing. Here they are.
Attached Files
File Type: zip Google's Gatekeepers - Jeffrey Rosen.zip (16.8 KB, 121 views)
File Type: lrf Google's Gatekeepers - Jeffrey Rosen.lrf (635 Bytes, 108 views)
dedicated is offline   Reply With Quote
Old 12-05-2008, 10:06 PM   #7
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: 25,617
Karma: 4998447
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
will be fixed in next release
kovidgoyal is offline   Reply With Quote
Old 12-18-2008, 03:45 AM   #8
dedicated
Member
dedicated began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Nov 2007
Location: Los Angeles, CA
Device: Sony PRS-500, Kindle DX
Quote:
Originally Posted by kovidgoyal View Post
will be fixed in next release
Any updates on this? Thanks.
dedicated is offline   Reply With Quote
Old 12-18-2008, 12:24 PM   #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: 25,617
Karma: 4998447
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That page converts with 0.4.115, but the converted file contains mangled characters, which is not surprising considering that the HTML doesn't even display in firefox.
kovidgoyal is offline   Reply With Quote
Old 12-18-2008, 01:40 PM   #10
dedicated
Member
dedicated began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Nov 2007
Location: Los Angeles, CA
Device: Sony PRS-500, Kindle DX
Quote:
Originally Posted by kovidgoyal View Post
That page converts with 0.4.115, but the converted file contains mangled characters, which is not surprising considering that the HTML doesn't even display in firefox.
I noticed the error trying to open it after conversion, but I don't have any problems reading the HTML in Firefox. Did it get corrupted when I uploaded it? Can you try this version in your browser?
Attached Files
File Type: rar Googles Gatekeepers.rar (15.9 KB, 111 views)
dedicated is offline   Reply With Quote
Old 12-18-2008, 01:48 PM   #11
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: 25,617
Karma: 4998447
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Your new upload works perfectly for me
kovidgoyal is offline   Reply With Quote
Old 12-18-2008, 01:54 PM   #12
dedicated
Member
dedicated began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Nov 2007
Location: Los Angeles, CA
Device: Sony PRS-500, Kindle DX
That's good news

It works fine when I convert it, but when I try to open the lrf, I get this error:

'PageTree' object has no attribute '_contents'
Detailed traceback:
Traceback (most recent call last):
File "C:\Program Files\calibre\library.zip\calibre\gui2\lrf_rendere r\main.py", line 183, in parsed
File "calibre\gui2\lrf_renderer\document.pyo", line 472, in render
File "calibre\ebooks\lrf\objects.pyo", line 186, in __iter__
AttributeError: 'PageTree' object has no attribute '_contents'
dedicated is offline   Reply With Quote
Old 12-18-2008, 02:36 PM   #13
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: 25,617
Karma: 4998447
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Convert it on the command line (the original HTML file) and you should be fine. Alternatively, wait for the next release to convert in the GUI
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Conversion memory error (HTML->EPUB) doremifaso Calibre 4 06-25-2010 10:56 PM
conversion TO html in_the_fade Calibre 4 04-29-2010 10:51 AM
'utf8' codec can't decode bytes error (HTML to EPUB conversion) gsz Calibre 10 10-26-2009 06:29 PM
amazon html conversion pan2 Amazon Kindle 3 03-21-2009 06:44 PM
lrfviewer & reader error after html conversion BrendenM Calibre 3 09-16-2008 11:40 AM


All times are GMT -4. The time now is 03:06 AM.


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