![]() |
#211 |
reader, ebook junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 111
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. |
![]() |
![]() |
![]() |
#212 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,892
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
The only thing you're over looking is the simple truth that this is broke. The fix will be in the next release. If you want you can go back to 0.7.45 or just wait for Friday.
|
![]() |
![]() |
Advert | |
|
![]() |
#213 | |
reader, ebook junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 111
Karma: 436806
Join Date: Dec 2007
Location: western nebraska
Device: in use kindle oasis 2nd and 3rd gen, kobo forma, boox poke5
|
Quote:
![]() NEW TOPIC below: I've searched MobileRead forums, read through this thread, several others, and the calibre manual, but I'm probably just missing the pertinent post. I've got a metadata plugboard recipe that gives me no error messages but doesn't seem to do what I want. I thought that I had read that you could preview plugboard recipe results by using the recipe in a custom column (once working again). Is there another method for previewing the results of a plugboard recipe prior to sending files to a device? Thanks again. Last edited by ElizabethN; 02-21-2011 at 09:14 PM. Reason: separation of 2 topics as space between topics was not enougth |
|
![]() |
![]() |
![]() |
#214 | ||
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,892
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#215 |
Member
![]() Posts: 24
Karma: 10
Join Date: Aug 2010
Device: Various
|
I have followed the 'Common composite custom columns' instructions in this thread: https://www.mobileread.com/forums/sho...ry+view+lookup
The column type drop down does not have the option 'Column built from other columns'. The 'Lookup name' is just a text box - where do I chose templates from? I also have no data listed in ISBN or format columns in library view. [Ubuntu 10.10, Calibre 0.7.18] |
![]() |
![]() |
Advert | |
|
![]() |
#216 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
That version of Calibre is horribly out-of-date as the current version (0.7.50) is over 30 releases later. At the rate Calibre develops with weekly updates that is an eternity. Any discussions in these forums will always assume you are running a recent release.
It sounds as if you have installed Calibre from the Ubuntu repositories? If you want to use some of the more recently added feaures, you may be better off getting Calibre directly from its home site and using the binary install method specified on the download page for Linux. |
![]() |
![]() |
![]() |
#217 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,892
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Your version is 6 months and 32 versions out of date. Composite custom columns didn't exist back then. Upgrade to the latest version via the instructions for a Binary install on calibre's download page. Repository versions of calibre are not supported by calibre's creator.
|
![]() |
![]() |
![]() |
#218 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,791
Karma: 30548723
Join Date: Dec 2006
Location: Singapore
Device: Boyue
|
I was wondering if this was possible I am using this for series
{series_index:0>2s} {title} and normally it works great but their are some series with short stories that are numbered 1.2 etc and they don't sort properly in my reader as they show up as 01 02 03 04 1.2 where I would prefer 01 01.2 02 03 Another problem is I am using Ebooks/{tags}/{authors[0]}/{authors}/{series}/{series_index:0>2s|.| }{title} but that sorts as A B C Crime D How would I go about putting brackets on the tag field so I can sort properly |
![]() |
![]() |
![]() |
#219 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,352
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
If you use series indices with sub values (e.g., 1.1), you might want to ensure that the decimal points line up. For example, you might want the indices 1 and 2.5 to appear as 01.00 and 02.50 so that they will sort correctly. To do this, use: Code:
{series_index:0>5.2f} - Five characters, consisting of two digits with leading zeros, a decimal point, then 2 digits after the decimal point Quote:
In any event, you can add brackets around tags with Code:
Ebooks/{tags:|[|]/}{authors[0]}/{authors}/{series}/{series_index:0>2s|.| }{title} |
||
![]() |
![]() |
![]() |
#220 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,791
Karma: 30548723
Join Date: Dec 2006
Location: Singapore
Device: Boyue
|
Quote:
a b c crime it will be [Crime] [Fantasy] a b c |
|
![]() |
![]() |
![]() |
#221 |
Member
![]() Posts: 11
Karma: 10
Join Date: Apr 2011
Location: East Coast, USA
Device: Kindle 3G + WiFi
|
![]() I feel very stupid, but I've tried this several times and I get the read_status to work on my newer books. for example a book i just read shows: Read Status: Not Read 04/22/11 Last Page Read: Location 3563 (99%) Location 1309 • Bookmark Location 1448 • Bookmark Location 2095 • Bookmark Location 2306 • Bookmark Location 2575 • Bookmark Location 3443 • Bookmark But an older book: Read Status: 6/10/2010 6/10/2010 Last Page Read: Location 5341 (99%) Older books that ARE showing as read are getting a date in stead of "Read", and then new books that have been read are showing up as "Not Read" even though it shows that I have completed 99 % I copy and pasted everything that I was supposed to but I didn't put numbers in the values where it says Code:
If the val is larger, then return date, if the val is >0 and < is_read_pct return is_reading_str. also, none of my books are coming up as "Reading" it's either a date or "Not Read" What in the world am I doing wrong????? I have a K3 and older books were on my K2. Last edited by Sassafrass; 04-24-2011 at 10:11 AM. |
![]() |
![]() |
![]() |
#222 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 385
Karma: 6514
Join Date: Aug 2010
Location: Denmark
Device: Kindle 3 3G+Wifi, Oasis
|
number of digits in year
Hi Sassfras
Think your main issue is 2 date formats. K3 with 4 digits in year and K2 with 2 digits ? Have a look at this post to see if the suggested changes works: https://www.mobileread.com/forums/sho...18&postcount=9 Then we can look further into further tweaks. |
![]() |
![]() |
![]() |
#223 | |
Member
![]() Posts: 11
Karma: 10
Join Date: Apr 2011
Location: East Coast, USA
Device: Kindle 3G + WiFi
|
THANK YOU!!
Quote:
THANKS for all your help. |
|
![]() |
![]() |
![]() |
#224 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 385
Karma: 6514
Join Date: Aug 2010
Location: Denmark
Device: Kindle 3 3G+Wifi, Oasis
|
You'r welcome
Quote:
No problem. But also thanx - you see I forgot to make those changes to the original posts, so this issue pops up over & Over. Will edit the 2 posts now. |
|
![]() |
![]() |
![]() |
#225 |
eBook Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
|
pchrist7:
I have a question for you, it's kinda related to the kindle template for annotations. I have a few books which some lost their annotation file, so I tried to "reacreate" them by opening the book back on the kindle and then re-running the fetch annotations. This worked as it was supposed to but of course now they have the later date instead of the true date in which they were read. I have a custom column which keeps track of this date and I thought if I went into the comments section and updated the date to the true date this info would show up in the custom column, but instead they show up as Not Read. Is there anyway to get these books to reflect the true date instead of the later date? Nyn |
![]() |
![]() |
![]() |
Tags |
custom column, tag, tags |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
custom column i need a little help | shinken | Calibre | 3 | 09-15-2010 03:41 AM |
Using Custom Metadata in Save Template | EJvdH | Calibre | 1 | 07-02-2010 06:06 AM |
Accessories Decalgirl Kindle 2 custom skin template | srmalloy | Amazon Kindle | 6 | 04-09-2010 09:55 PM |
Donations for Custom Recipes | ddavtian | Calibre | 5 | 01-23-2010 04:54 PM |
Help understanding custom recipes | andersent | Calibre | 0 | 12-17-2009 02:37 PM |