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 07-23-2011, 10:23 AM   #1
firewolf
Junior Member
firewolf began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2011
Device: none
Show book details error

Hi, I've been getting following error message when trying to show the book details:

calibre, version 0.8.11
ERROR: Unhandled exception: <b>UnboundLocalError</b>:local variable 'link' referenced before assignment

Traceback (most recent call last):
File "site-packages\calibre\gui2\actions\show_book_details.py ", line 33, in show_book_info
File "site-packages\calibre\gui2\dialogs\book_info.py", line 39, in __init__
File "site-packages\calibre\gui2\dialogs\book_info.py", line 131, in refresh
File "site-packages\calibre\gui2\book_details.py", line 29, in render_html
File "site-packages\calibre\gui2\book_details.py", line 146, in render_data
UnboundLocalError: local variable 'link' referenced before assignment

The error appeared also in 0.8.8 version which I previously had. I tried updating it to 0.8.11, then uninstall completely and install 0.8.11 again but the error still shows.
Thank you for any tips.
firewolf is offline   Reply With Quote
Old 07-23-2011, 11:30 AM   #2
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,269
Karma: 6022733
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by firewolf View Post
Hi, I've been getting following error message when trying to show the book details:

calibre, version 0.8.11
ERROR: Unhandled exception: <b>UnboundLocalError</b>:local variable 'link' referenced before assignment

Traceback (most recent call last):
File "site-packages\calibre\gui2\actions\show_book_details.py ", line 33, in show_book_info
File "site-packages\calibre\gui2\dialogs\book_info.py", line 39, in __init__
File "site-packages\calibre\gui2\dialogs\book_info.py", line 131, in refresh
File "site-packages\calibre\gui2\book_details.py", line 29, in render_html
File "site-packages\calibre\gui2\book_details.py", line 146, in render_data
UnboundLocalError: local variable 'link' referenced before assignment

The error appeared also in 0.8.8 version which I previously had. I tried updating it to 0.8.11, then uninstall completely and install 0.8.11 again but the error still shows.
Thank you for any tips.
Uninstall does not remove (possibly corrupt) configurations and custom plugins.
Start Calibre
Note down the PATH to your Library (hover over 'Click to Open' in the book details pane. The Library is the part before the Author)
You will need this info later. ALL configuration settings will be lost.

Preferences: Miscellaneous. Click "Open Calibre Configuration directory"
LEAVE the explorer window OPEN

Quit Calibre. Un-install Calibre from the control panel

Now Delete the contents of the Configuration folder that you had left open

reboot just for grins (and to be sure everything is clear)
Instal Calibre 8.11 (temporary disable you A/V if this possibly interfered). Use the existing Library path that you had noted.
theducks is online now   Reply With Quote
 
Advertisement
Old 07-23-2011, 12:35 PM   #3
chaley
"chaley", not "charley"
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 5,908
Karma: 1217216
Join Date: Jan 2010
Location: France
Device: Many android devices
The problem comes from having an empty value in Preferences -> Look & Feel -> Book Details -> Default author link template. This is arguably a bug, although it never occurred to me that someone would want to have no link template.

Put a value in the box. The default is http://en.wikipedia.org/w/index.php?search={author}
chaley is offline   Reply With Quote
Old 07-27-2011, 03:09 PM   #4
firewolf
Junior Member
firewolf began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2011
Device: none
Thank you very much theduck's advice worked perfectly and yes I deleted the author link template in the previous instalation. now I left it intact and everything works just fine.
once more big thanks for help
firewolf 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
Is it possible to show the ISBN in the book details pane? iridius Library Management 3 03-22-2011 08:39 PM
7.36 Update ERROR Show Book Info Maggie-Me Calibre 4 01-03-2011 07:58 AM
Problem converting LRF -> EPUB (Error Details included) irishtexmex Calibre 0 08-04-2010 06:08 PM
Error moving book details to a new location... GeoffC Calibre 2 08-20-2009 04:14 AM


All times are GMT -4. The time now is 12:35 PM.


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