View Single Post
Old 02-21-2011, 03:18 AM   #211
ElizabethN
reader, ebook junkie
ElizabethN ought to be getting tired of karma fortunes by now.ElizabethN ought to be getting tired of karma fortunes by now.ElizabethN ought to be getting tired of karma fortunes by now.ElizabethN ought to be getting tired of karma fortunes by now.ElizabethN ought to be getting tired of karma fortunes by now.ElizabethN ought to be getting tired of karma fortunes by now.ElizabethN ought to be getting tired of karma fortunes by now.ElizabethN ought to be getting tired of karma fortunes by now.ElizabethN ought to be getting tired of karma fortunes by now.ElizabethN ought to be getting tired of karma fortunes by now.ElizabethN ought to be getting tired of karma fortunes by now.
 
ElizabethN's Avatar
 
Posts: 113
Karma: 436806
Join Date: Dec 2007
Location: western nebraska
Device: in use kindle oasis 2nd and 3rd gen, kobo forma, boox poke5
AttributeError: 'QString' object has no attribute 'strip'

I'm trying to create a couple of composite custom columns but with no success. I've even tried to create some of the composite custom columns from the first post and get a similar error message after getting to step 7.

1. Go to preferences, Interface (the first row), Add your own columns.
2) Click the green plus sign.
3) Choose a lookup name. This will be the name you use for searching and in templates. It must be letters, all lowercase. Note that when you use the lookup name you must prefix it with a '#' character. Do not enter that character here.
4) Choose a column heading. This is what will appear at the top of the column.
5) Choose a column type. For the recipes below, that type must be 'Column built from other columns'.
6) Enter the template from the recipe into the template box.
7) Press OK, Apply, etc. Restart calibre.

After pressing OK, this is the message I've gotten on every composite column I've tried:

calibre, version 0.7.46
ERROR: Unhandled exception: <b>AttributeError</b>:'QString' object has no attribute 'strip'

Traceback (most recent call last):
File "site-packages\calibre\gui2\preferences\create_custom_co lumn.py", line 161, in accept
AttributeError: 'QString' object has no attribute 'strip'

I've gotten this error trying all the following templates:
Display the ISBN. Template: {isbn}
Display the formats for a book. Template: {formats}
Display Yes if the book has an EPUB format. Template: {formats:contains(EPUB, Yes,)}

I've tried a space in front of {formats}, I've tried no space. I even tried typing "template: {formats}" even though the row is labelled template.

I'm sure it's something basic that I'm just overlooking in my fatigue. Using calibre 7.46 on win 7.

Any thoughts, advice, help? Thanks in advance.
ElizabethN is offline   Reply With Quote