[opensuse-packaging] python 2.7.1 and calibre
Hi, I read some time ago a thread about calibre and python 2.7.1 on opensuse 11.4, unfortunately I deleted that e-mail and missed the thread. So, calibre only need python 2.7.1 for "calibre/src/calibre/ebooks/metadata/sources/cli.py", more specifically a "option parser" problem reported here: http://susepaste.org/31237540 I made a crazy modification here (not a patch, actually a broken program) that consists of eliminating this parser. Since most users do not use the calibre's CLI interface, that should be OK as (ugly) a work around until python 2.7.1 is on opensuse 11.4... ... or some more skilled than I could made a real patch :-) Anyways, I'm running it here and so far I could use all of calibre's GUI features. -Filipe
Hi Filipe, On Sunday 31 July 2011 Filipe Pires Alvarenga Fernandes wrote:
I read some time ago a thread about calibre and python 2.7.1 on opensuse 11.4, unfortunately I deleted that e-mail and missed the thread.
By the way, you can search the list archive: http://lists.opensuse.org/cgi- bin/search.cgi?query=calibre&metaname=&list=opensuse- packaging&subject=&from=&xtime=&ytime=&timeframe=&size=10
[...]
-- Gruß/Regards, Thomas Schraitle ---------------------------------------------------------------------- SUSE LINUX Products GmbH (o< Maxfeldstrasse 5 /\\ Documentation Specialist 90409 Nuernberg, Germany _\_v http://www.suse.com http://lizards.opensuse.org/author/thomas-schraitle/ SUSE LINUX GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Sunday 31 July 2011 16:31:51 Filipe Pires Alvarenga Fernandes wrote:
Hi,
I read some time ago a thread about calibre and python 2.7.1 on opensuse 11.4, unfortunately I deleted that e-mail and missed the thread. [...] ... or some more skilled than I could made a real patch :-) I hope this isn't accepted, it solves nothing. While trying to find the issue, I immediatly stumbled upon this (calibre/src/calibre/linux.py):
def options(option_parser): parser = option_parser() ... So that's a calibre bug. Anyways, you're trying to code around http://bugs.python.org/issue9161, which is indeed a regression in the optparse module. As calibre subclasses optparse.OptionParser, you may just want to fix the offending method by re-defining it (with it's python-2.7.1 version). See the attached patch or submit request sr#77540. Updating Python in openSUSE-11.4 is another option... -- Mit freundlichen Grüßen, Sascha Peilicke
On Mon, Aug 1, 2011 at 05:06, Sascha Peilicke
On Sunday 31 July 2011 16:31:51 Filipe Pires Alvarenga Fernandes wrote:
Hi,
I read some time ago a thread about calibre and python 2.7.1 on opensuse 11.4, unfortunately I deleted that e-mail and missed the thread. [...] ... or some more skilled than I could made a real patch :-) I hope this isn't accepted, it solves nothing. While trying to find the issue, I immediatly stumbled upon this (calibre/src/calibre/linux.py):
def options(option_parser): parser = option_parser() ...
So that's a calibre bug. Anyways, you're trying to code around http://bugs.python.org/issue9161, which is indeed a regression in the optparse module. As calibre subclasses optparse.OptionParser, you may just want to fix the offending method by re-defining it (with it's python-2.7.1 version). See the attached patch or submit request sr#77540.
Great, a real fix. Hope to see calibre 0.8x soon then.
Updating Python in openSUSE-11.4 is another option... -- Mit freundlichen Grüßen, Sascha Peilicke
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (3)
-
Filipe Pires Alvarenga Fernandes
-
Sascha Peilicke
-
Thomas Schraitle