02-04-2016, 06:18 AM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Feb 2016
Device: paperwhite
|
Metadatada not working anymore for Amazon
Hi, it's 2-3 weeks that getting medata info from amazon gives me an error:
Code:
Request extra headers: [('User-agent', 'Mozilla/5.0 (Windows NT 5.2; rv:2.0.1) Gecko/20100101 Firefox/4.0.1')] Found 0 results Downloading from Amazon.com took 0.919376134872 Failed to parse amazon page for query: u'http://www.amazon.com/s/?sort=relevanceexprank&field-title=LaTeX+Cookbook&search-alias=stripbooks&unfiltered=1' Traceback (most recent call last): File "/usr/lib/calibre/calibre/ebooks/metadata/sources/amazon.py", line 1060, in identify namespaceHTMLElements=False) File "/usr/lib/python2.7/site-packages/html5lib/html5parser.py", line 29, in parse return p.parse(doc, encoding=encoding) File "/usr/lib/python2.7/site-packages/html5lib/html5parser.py", line 236, in parse parseMeta=parseMeta, useChardet=useChardet) File "/usr/lib/python2.7/site-packages/html5lib/html5parser.py", line 94, in _parse self.mainLoop() File "/usr/lib/python2.7/site-packages/html5lib/html5parser.py", line 203, in mainLoop new_token = phase.processComment(new_token) File "/usr/lib/python2.7/site-packages/html5lib/html5parser.py", line 468, in processComment self.tree.insertComment(token, self.tree.openElements[-1]) File "/usr/lib/python2.7/site-packages/html5lib/treebuilders/etree_lxml.py", line 312, in insertCommentMain super(TreeBuilder, self).insertComment(data, parent) File "/usr/lib/python2.7/site-packages/html5lib/treebuilders/_base.py", line 262, in insertComment parent.appendChild(self.commentClass(token["data"])) File "/usr/lib/python2.7/site-packages/html5lib/treebuilders/etree.py", line 148, in __init__ self._element = ElementTree.Comment(data) File "src/lxml/lxml.etree.pyx", line 3017, in lxml.etree.Comment (src/lxml/lxml.etree.c:80806) ValueError: Comment may not contain '--' or end with '-' Any help is very appreciated. Cheers |
02-04-2016, 08:10 AM | #2 |
creator of calibre
Posts: 43,867
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Uninstall the arch version and install the official calibre binaries and you will be fine.
|
Advert | |
|
02-04-2016, 09:46 AM | #3 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
See this Arch Linux bug (feel free to leave a comment there, too): https://bugs.archlinux.org/task/43382
The problem is that calibre internally uses a forked and heavily modified offshoot of html5lib, but Arch Linux decided to strip it and use the incompatible upstream project. The solution is to use either calibre-git or calibre-installer from the AUR. Disclaimer: I maintain both. calibre-git uses the proper build instructions (no stripping out needed components), and calibre-installer is an updater script with a systemd timer to auto-install the official binaries from https://calibre-ebook.com/download_linux |
02-07-2016, 08:51 AM | #4 |
Junior Member
Posts: 2
Karma: 10
Join Date: Feb 2016
Device: paperwhite
|
thanks @eschwartz, I opted for calibre-git
|
02-07-2016, 10:12 AM | #5 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Drag and Drop not working anymore | pietro | Calibre | 0 | 08-15-2014 12:21 PM |
T2 does not working anymore with Calibre | samy2 | Calibre | 2 | 07-08-2013 03:30 AM |
The New Republic (TNR) doesn't seem to be working anymore | mark_e_h | Recipes | 3 | 02-01-2013 11:59 AM |
Ereader side not working correctly anymore. | Brichelle78 | enTourage eDGe | 12 | 11-29-2011 09:20 PM |
youtube not working anymore | Noah98 | Nook Developer's Corner | 42 | 03-04-2011 11:16 AM |