Community Packages

Please read this before reporting a bug:
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#32051 - Calibre will not convert books with python2-lxml 3.0

Attached to Project: Community Packages
Opened by Doug Newgard (Scimmia) - Thursday, 18 October 2012, 04:10 GMT
Last edited by Allan McRae (Allan) - Thursday, 18 October 2012, 05:42 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Calibre 0.9.2 will not convert to .mobi format (and possibly others) with python2-lxml 3.0 installed. The cssselector was moved into a separate project (available in the AUR) for 3.0 with lxml providing a wrapper that doesn't seem to expose the same functionality. I filed a bug report upstream, but they will not support their source code, only their binary distribution that provides it's own python libs and it was marked as invalid.

This task depends upon

Closed by  Allan McRae (Allan)
Thursday, 18 October 2012, 05:42 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#31857 
Comment by Allan McRae (Allan) - Thursday, 18 October 2012, 04:40 GMT
Apologies - I thought this was regarding the need to fix the dependencies of python2-lxml.

Can you provide a link to the upstream bug report?
Comment by Greg (dolby) - Thursday, 18 October 2012, 05:02 GMT
https://bugs.launchpad.net/calibre/+bug/1067942
Sounds like a reason to stop having calibre in the repos.
Comment by Doug Newgard (Scimmia) - Thursday, 18 October 2012, 05:33 GMT
I've got a fix. python2-cssselect needs to be installed from the AUR, and this line needs to be added along with the other sed lines in the PKGBUILD:

sed -i -e "s:lxml.cssselect\ import\ css_to_xpath:cssselect\ import\ GenericTranslator:g" src/calibre/ebooks/oeb/stylizer.py

I know it's not a good fix since it depends on package from the AUR, but that's where the functionality is that used to be in lxml.

Loading...