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 10-02-2010, 09:08 AM   #1
Jonimeesermann
Connoisseur
Jonimeesermann began at the beginning.
 
Posts: 82
Karma: 12
Join Date: Apr 2010
Device: Nokia e71, Ipod Touch, Sony PRS 300
Calibre: TypeError:expected string or buffer

So, I've just had upgraded to Calibre's recent 0.7.21 version. In previous version I set up some custom column, and had no problem so far.

But after upgraded, when I tried to click one of my book which is in custom column it show error:

Code:
ERROR: ERROR: Unhandled exception: <b>TypeError</b>:expected string or buffer

Traceback (most recent call last):
  File "/home/kovid/build/calibre/src/calibre/gui2/library/models.py", line 366, in current_changed
  File "/home/kovid/build/calibre/src/calibre/gui2/library/models.py", line 342, in get_book_display_info
  File "/home/kovid/build/calibre/src/calibre/ebooks/metadata/book/base.py", line 451, in format_field
  File "/home/kovid/build/calibre/src/calibre/ebooks/metadata/book/base.py", line 477, in format_field_extended
  File "/home/kovid/build/calibre/src/calibre/utils/date.py", line 148, in format_date
  File "/usr/lib/python2.6/re.py", line 151, in sub
    return _compile(pattern, 0).sub(repl, string, count)
TypeError: expected string or buffer
.

Basically it kind of prevent me to see the book in booklist view (although I still can the metadata).
If anyone can explain why this is happened, much appreciated.
Jonimeesermann is offline   Reply With Quote
Old 10-02-2010, 09:18 AM   #2
chaley
Grand Sorcerer
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: 11,704
Karma: 6658935
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Check the format section of that custom column to be sure that it contains only characters. To check the format, right-click on a column header, choose 'Add you own columns', select the date column, and press the circle-I button.
chaley is offline   Reply With Quote
Advert
Old 10-02-2010, 09:34 AM   #3
Jonimeesermann
Connoisseur
Jonimeesermann began at the beginning.
 
Posts: 82
Karma: 12
Join Date: Apr 2010
Device: Nokia e71, Ipod Touch, Sony PRS 300
I'm not sure what you mean. Do you mean it's the heading column? Anyway I insert screenshot from my column setting:

Click image for larger version

Name:	Screenshot-2.png
Views:	494
Size:	315.5 KB
ID:	59200

Last edited by Jonimeesermann; 10-02-2010 at 09:42 AM. Reason: Edit screenshot
Jonimeesermann is offline   Reply With Quote
Old 10-02-2010, 11:14 AM   #4
chaley
Grand Sorcerer
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: 11,704
Karma: 6658935
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Thanks. Found it.

As a work-around, put something in the 'Format for dates' box. Put the default in if that is what you want.
chaley is offline   Reply With Quote
Old 10-02-2010, 11:40 AM   #5
Jonimeesermann
Connoisseur
Jonimeesermann began at the beginning.
 
Posts: 82
Karma: 12
Join Date: Apr 2010
Device: Nokia e71, Ipod Touch, Sony PRS 300
Ok, i've tried your advise, and it works well.

Thank you
Jonimeesermann is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR: Unhandled exception: <b>TypeError</b> mdurham Calibre 3 08-27-2010 11:31 PM
Error when inputting a search string in V0.6.37 solitaire Calibre 1 02-05-2010 11:29 PM
Ubuntu 9.10 error - Unhandled exception - typeerror AdamGott Calibre 6 11-07-2009 07:41 PM
TypeError: 'dict' object is not callable sauravishal Calibre 3 01-23-2009 06:21 PM
Search for files by content string? nekokami iRex 4 12-01-2006 12:14 PM


All times are GMT -4. The time now is 08:44 PM.


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