View Single Post
Old 08-02-2014, 01:56 PM   #1
BobC
Guru
BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.
 
Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
Editor error with hyperlinks

I am getting this error when I click on an internal hyperlink in the eitor's preview pane :

Code:
calibre, version 1.47.0
ERROR: Unhandled exception: <b>TypeError</b>:goto_sourceline() argument after * must be a sequence, not int

calibre 1.47  isfrozen: True is64bit: False
Windows-XP-5.1.2600-SP3 Windows ('32bit', 'WindowsPE')
('Windows', 'XP', '5.1.2600')
Python 2.7.5
Windows: ('XP', '5.1.2600', 'SP3', 'Uniprocessor Free')
Traceback (most recent call last):
  File "site-packages\calibre\gui2\tweak_book\boss.py", line 1123, in sync_editor_to_preview
TypeError: goto_sourceline() argument after * must be a sequence, not int
The fragment I am clicking on is part of a "Contents" section :
Code:
<p class="toc"><a href="PathKing.html#link2HCH0001" class="pginternal">CHAPTER 1. HIGHTOWN UNDER SUNFELL</a></p>
<p class="toc"><a href="PathKing.html#link2HCH0002" class="pginternal">CHAPTER 2. THE ENGLISHMAN</a></p>
<p class="toc"><a href="PathKing.html#link2HCH0003" class="pginternal">CHAPTER 3. THE WIFE OF FLANDERS</a></p>
<p class="toc"><a href="PathKing.html#link2HCH0004" class="pginternal">CHAPTER 4. EYES OF YOUTH</a></p>
<p class="toc"><a href="PathKing.html#link2HCH0005" class="pginternal">CHAPTER 5. THE MAID</a></p>
The preview jumps to the correct target but I get the error message. The linking also works fine in Calibre's book viewer.

I had this on another book today and thought it was an error in the book but this is newly downloaded from Gutenberg and generally these links aren't a problem.

BobC
BobC is offline   Reply With Quote