View Single Post
Old 10-29-2015, 09:23 AM   #745
traycold
Connoisseur
traycold doesn't littertraycold doesn't litter
 
Posts: 63
Karma: 196
Join Date: Oct 2010
Device: Kobo Glo Hd, Kobo H2O2
Quote:
Originally Posted by davidfor View Post
OK. I need some more information:

- Can you run calibre in debug mode? And then do a metadata download from goodreads and run one or two of the functions from this plugin. Then post the logs from that.
- What proxy are you using?
- Can you post the environment variables for the proxy? If it has a username or password, you can obscure them, but I want to check that what I see matches what is set.
ok, I used
Code:
calibre-debug -g
to start calibre. Is this what you means?
Then:
  1. selected a book
  2. open modify metadata
  3. download metadata (having only goodreads as source)
  4. closed metadata window
  5. clicked on "goodreads sync" -> "sync from shelf" function
These are the logs shown at startup of Calibre:
Code:
Starting up Calibre from portable directory "XXX/Calibre"
calibre 2.38  isfrozen: True is64bit: True
Linux-4.2.3-200.fc22.x86_64-x86_64-with-fedora-22-Twenty_Two Linux ('64bit', 'ELF')
('Linux', '4.2.3-200.fc22.x86_64', '#1 SMP Thu Oct 8 03:23:55 UTC 2015')
Python 2.7.9
Linux: ('Fedora', '22', 'Twenty Two')
Successfully initialized third party plugins: DeDRM && Goodreads && Goodreads Sync && Count Pages && Kobo Utilities
Starting up...
DEBUG:    0.0 KoboUtilites::action.py - loading translations
DEBUG:    0.0 KoboUtilites::dialogs.py - loading translations
DEBUG:    0.0 KoboUtilites::action.py - loading translations
libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
Using proxies: {'https': '127.0.0.1:3128', 'no': '127.0.0.1, localhost', 'http': '127.0.0.1:3128'}
Failed to check for calibre update: Tunnel connection failed: 503 Service Unavailable
Using proxies: {'https': '127.0.0.1:3128', 'no': '127.0.0.1, localhost', 'http': '127.0.0.1:3128'}
Using proxies: {'https': '127.0.0.1:3128', 'no': '127.0.0.1, localhost', 'http': '127.0.0.1:3128'}
Using http proxy {'pass': None, 'user': None, 'host': '127.0.0.1', 'port': 3128}
_request_get: proxy={'pass': None, 'user': None, 'host': '127.0.0.1', 'port': 3128}
Key u'A' for shortcut Apri la cartella contenente is already used by Aggiungi libri, ignoring
DEBUG:    1.7 No Kobo Touch, Glo or Mini appears to be connected
DEBUG:    1.7 rebuild_menus - self.supports_ratings=None
Key u'A' for shortcut Apri la cartella contenente is already used by Aggiungi libri, ignoring
Key u'A' for shortcut Apri la cartella contenente is already used by Aggiungi libri, ignoring
Failed to check for plugin update: HTTP Error 503: Service Unavailable
Started up in 2.78 seconds with 747 books
When downloading goodreads metadata (they are successfully downloaded) I have no logs on STDOUT, but clicking on view logs of the panel this is what I got:
Code:
Running identify query with parameters: 
{u'authors': [u'Louisa Gilder'], u'timeout': 30, u'title': u'The Age of Entanglement', u'identifiers': {u'isbn': u'9780307270368'}} 
Using plugins: Goodreads 
The log from individual plugins is below 

****************************** Goodreads ****************************** 
Request extra headers: [('User-agent', 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)')] 
Found 1 results 
Downloading from Goodreads took 3.14938187599 


--- 
Title               : The Age of Entanglement: When Quantum Physics Was Reborn
Author(s)           : Louisa Gilder
Publisher           : Vintage
Tags                : Science, Non-Fiction, History
Languages           : eng
Rating              : 1.9
Published           : 2008-11-11T00:00:00+00:00
Identifiers         : isbn:9780307270368, goodreads:7815102 
Querying: http://www.goodreads.com/search?search_type=books&search[query]=9780307270368
ISBN match location: u'http://www.goodreads.com/book/show/7815102-the-age-of-entanglement'
Goodreads book url: u'http://www.goodreads.com/book/show/7815102-the-age-of-entanglement' 

******************************************************************************** 
The identify phase took 3.27 seconds 
The longest time (3.149382) was taken by: Goodreads 
Merging results from different sources and finding earliest  publication dates from the worldcat.org service 
We have 1 merged results, merging took: 0.78 seconds
Then, when I try and do the goodreads sync operation this is the log of the failure:
Code:
calibre, version 2.38.0
ERRORE: Eccezione non gestita: <b>error</b>:[Errno 111] Connessione rifiutata

calibre 2.38  isfrozen: True is64bit: True
Linux-4.2.3-200.fc22.x86_64-x86_64-with-fedora-22-Twenty_Two Linux ('64bit', 'ELF')
('Linux', '4.2.3-200.fc22.x86_64', '#1 SMP Thu Oct 8 03:23:55 UTC 2015')
Python 2.7.9
Linux: ('Fedora', '22', 'Twenty Two')
Successfully initialized third party plugins: DeDRM && Goodreads && Goodreads Sync && Count Pages && Kobo Utilities
Traceback (most recent call last):
  File "calibre_plugins.goodreads_sync.dialogs", line 342, in _accept_clicked
  File "calibre_plugins.goodreads_sync.core", line 372, in get_goodreads_books_on_shelves
  File "calibre_plugins.goodreads_sync.core", line 117, in _oauth_request_get
  File "calibre_plugins.goodreads_sync.oauth2.__init__", line 682, in request
  File "calibre_plugins.goodreads_sync.httplib2.__init__", line 1447, in request
  File "calibre_plugins.goodreads_sync.httplib2.__init__", line 1199, in _request
  File "calibre_plugins.goodreads_sync.httplib2.__init__", line 1135, in _conn_request
  File "calibre_plugins.goodreads_sync.httplib2.__init__", line 801, in connect
error: [Errno 111] Connessione rifiutata
The proxy used is SQUID, without authentication.

This is the output of export for proxy related env vars:
Code:
declare -x http_proxy="http://127.0.0.1:3128"
declare -x https_proxy="http://127.0.0.1:3128"
declare -x no_proxy="127.0.0.1, localhost"
Let me know if you need other info.
traycold is offline   Reply With Quote