View Single Post
Old 01-10-2009, 02:49 AM   #6
magicjj
Junior Member
magicjj began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2009
Device: iPhone (Stanza)
I totally lied, saw the old version number. :P Try to install again.

EDIT: Got it, but received an error on all of the books I tried to convert. Here's one:

Job: **Convert book: Choke**
**tuple**: ('TypeError', u"'NoneType' object is not iterable")
**Traceback**:
Traceback (most recent call last):
File "parallel.py", line 937, in worker
File "parallel.py", line 895, in work
File "C:\Program Files\calibre\library.zip\calibre\ebooks\epub\from _any.py", line 148, in any2epub
File "contextlib.pyo", line 34, in __exit__
File "contextlib.pyo", line 113, in nested
File "C:\Program Files\calibre\library.zip\calibre\ebooks\epub\from _any.py", line 148, in any2epub
File "C:\Program Files\calibre\library.zip\calibre\ebooks\epub\from _html.py", line 343, in convert
File "C:\Program Files\calibre\library.zip\calibre\ebooks\epub\from _html.py", line 178, in parse_content
File "C:\Program Files\calibre\library.zip\calibre\ebooks\epub\from _html.py", line 117, in __init__
File "C:\Program Files\calibre\library.zip\calibre\ebooks\html.py", line 565, in detect_chapters
TypeError: 'NoneType' object is not iterable

**Log**:
Page-1
Page-2
Page-3
Page-4
Page-5
Page-6
Page-7
Page-8
Page-9
Page-10
Page-11
Page-12
Page-13
Page-14
Page-15
Page-16
Page-17
Page-18
Page-19
Page-20
Page-21
(and so on to page 138)

Creating EPUB file...
[DEBUG] Processing HTMLFile:0:a:c:\users\admini~1\appdata\local\temp\ calibre_0.4.127_lblrhu_any2epub2\index.html...
[INFO] Parsing temp\calibre_0.4.127_lblrhu_any2epub2\index.html
[INFO] Detected chapter: CHOKE CHOKE by Chuck Palahniuk __________________
('TypeError', u"'NoneType' object is not iterable")
Traceback (most recent call last):
File "parallel.py", line 937, in worker
File "parallel.py", line 895, in work
File "C:\Program Files\calibre\library.zip\calibre\ebooks\epub\from _any.py", line 148, in any2epub
File "contextlib.pyo", line 34, in __exit__
File "contextlib.pyo", line 113, in nested
File "C:\Program Files\calibre\library.zip\calibre\ebooks\epub\from _any.py", line 148, in any2epub
File "C:\Program Files\calibre\library.zip\calibre\ebooks\epub\from _html.py", line 343, in convert
File "C:\Program Files\calibre\library.zip\calibre\ebooks\epub\from _html.py", line 178, in parse_content
File "C:\Program Files\calibre\library.zip\calibre\ebooks\epub\from _html.py", line 117, in __init__
File "C:\Program Files\calibre\library.zip\calibre\ebooks\html.py", line 565, in detect_chapters
TypeError: 'NoneType' object is not iterable


Similar error with the others. I am using default settings with the exception of the "Do not split on page breaks" being checked and the following XPath:
//*[re:match(name(), 'h[1-2]') or re:test(., 'chapter|book|section|part', 'i')] | //*[@class = 'chapter']
I changed the "and" to "or."

Let me know watcha get

Last edited by magicjj; 01-10-2009 at 03:06 AM.
magicjj is offline   Reply With Quote