On Sunday 31 July 2011 16:31:51 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. [...] ... 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...