Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-06-2015, 10:28 AM   #1
Sazzaroo
Junior Member
Sazzaroo began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2015
Device: Aldiko app on Android tablet
Question Please help - AttributeError: 'NoneType' object has no attribute 'lower'

I'd really appreciate some help with an error message I am getting. It only seems to appear when I am using 'Get Books' and searching for books, and it doesn't seem to happen all the time either. I tried searching for similar issues on here, but the only post that seemed to have a similar error message, I wasn't sure was relevant to me.

Anyway, here is the error. If anyone can offer any help I'd be really grateful. I'm using Calibre 2.45.0 on a Windows 8.1 laptop and an Android tablet.

I'd put myself at the level of 'moderate' teccie, rather than 'advanced'

Traceback (most recent call last):
File "site-packages\calibre\gui2\store\search\search.py", line 375, in get_results
File "site-packages\calibre\gui2\store\search\models.py", line 102, in add_result
File "site-packages\calibre\gui2\store\search\models.py", line 121, in filter_results
File "site-packages\calibre\utils\search_query_parser.py", line 327, in parse
File "site-packages\calibre\utils\search_query_parser.py", line 348, in _parse
File "site-packages\calibre\utils\search_query_parser.py", line 356, in evaluate
File "site-packages\calibre\utils\search_query_parser.py", line 399, in evaluate_token
File "site-packages\calibre\utils\search_query_parser.py", line 405, in _get_matches
File "site-packages\calibre\gui2\store\search\models.py", line 458, in get_matches
File "site-packages\calibre\gui2\store\search\models.py", line 392, in <lambda>
AttributeError: 'NoneType' object has no attribute 'lower'



Many thanks,
Saz
Sazzaroo is offline   Reply With Quote
Old 12-06-2015, 11:12 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: 12,385
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
This is my fault. Amazon required me to close all of the Amazon EU get books stores. I closed them in a way that (usually) says something to user. Unfortunately I got it wrong if the user was searching by author.

New store plugins will arrive soon that fix this crash. In the meantime, uncheck all of amazon DE, FR, UK, ES, and IT.
chaley is offline   Reply With Quote
Advert
Old 12-06-2015, 11:41 AM   #3
Sazzaroo
Junior Member
Sazzaroo began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2015
Device: Aldiko app on Android tablet
Thumbs up Thank you!

Quote:
Originally Posted by chaley View Post
This is my fault. Amazon required me to close all of the Amazon EU get books stores. I closed them in a way that (usually) says something to user. Unfortunately I got it wrong if the user was searching by author.

New store plugins will arrive soon that fix this crash. In the meantime, uncheck all of amazon DE, FR, UK, ES, and IT.
Ah right ok, I get you. Thanks for replying!

S
Sazzaroo is offline   Reply With Quote
Old 12-07-2015, 12:38 AM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
@chaley -- curious, did Amazon mention what they had against your affiliate accounts?
eschwartz is offline   Reply With Quote
Old 12-07-2015, 03:49 AM   #5
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: 12,385
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by eschwartz View Post
@chaley -- curious, did Amazon mention what they had against your affiliate accounts?
They said that "I" (get books) violate their terms of service, specifically the following condition:
Quote:
31. You will not cloak, hide, spoof, or otherwise obscure the URL of the site containing Special Links (including by use of a redirecting page) such that we cannot determine the site from which a customer clicks through such Special Link to the Amazon Site.
Clearly they cannot determine the instance of calibre that generated the link.

The email telling me that they force-closed my affiliate accounts also said that I must remove all links pointing to Amazon from any "site" under my control (i.e., calibre), and that they reserve all recourse against me should I not comply. They provide no opportunity for discussion. The easiest and safest thing for me to do was to comply 100% with their demand and shut down the stores.

An odd and annoying thing is that I told Amazon when the accounts were opened that the links were generated by calibre. I told them again around 18 months ago when I was queried. Obviously something changed in their attitude between then and now. I don't know what or why.
chaley is offline   Reply With Quote
Advert
Old 12-07-2015, 04:53 AM   #6
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,681
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by chaley View Post
Obviously something changed in their attitude between then and now. I don't know what or why.
Take your pick - Bolshevism, Fascism, Corporate Totalitarianism - laying a brick in their garden wall.
BetterRed is offline   Reply With Quote
Old 12-07-2015, 10:17 AM   #7
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Well, that kind of stinks.
eschwartz is offline   Reply With Quote
Old 12-11-2015, 08:46 AM   #8
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Is it necessary for them to be affiliate links? Could you not comply simply by removing the affiliate tag from the URL?
HarryT is offline   Reply With Quote
Old 12-11-2015, 10:16 AM   #9
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: 12,385
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by HarryT View Post
Is it necessary for them to be affiliate links? Could you not comply simply by removing the affiliate tag from the URL?
Amazon said I was to remove *all* links. They didn't say special links or affiliate links. They threatened legal action if I did not comply. And just to put icing on the cake, when Amazon force-closed my accounts they also confiscated 2 months of earnings.

I will not take the risk to resurrect the stores without affiliate links. Someone else might be able to do it and not face Amazon's wrath. If such a "someone" wants to try, the old code is still in calibre's GIT repository.
chaley is offline   Reply With Quote
Old 12-11-2015, 10:22 AM   #10
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by chaley View Post
Amazon said I was to remove *all* links. They didn't say special links or affiliate links. They threatened legal action if I did not comply. And just to put icing on the cake, when Amazon force-closed my accounts they also confiscated 2 months of earnings.

I will not take the risk to resurrect the stores without affiliate links. Someone else might be able to do it and not face Amazon's wrath. If such a "someone" wants to try, the old code is still in calibre's GIT repository.
Thanks for clarifying the situation.
HarryT is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
AttributeError: 'NoneType' object has no attribute 'split' Thalia Helikon Conversion 1 12-30-2012 08:09 AM
Adding <guide> produces error: "Nonetype object has no attribute 'lower' MichaelKaufman ePub 2 08-19-2011 06:39 PM
AttributeError: 'NoneType' object has no attribute 'replace' when trying to add books tilleydog Calibre 16 10-04-2010 04:29 AM
AttributeError: 'NoneType' object has no attribute 'lower manada Calibre 2 08-10-2010 10:54 PM


All times are GMT -4. The time now is 10:34 PM.


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