Re: calibre error
On Tue, Nov 24, 2015 at 04:33:45PM +0100, misc nick wrote: > > https://github.com/kovidgoyal/calibre/commit/72d47ba9377d70e786bf3d93b323544188c894 > > > > The quick and dirty fix worked. Thank you! > > > Another problem you might run into with epub is if there's no cover and > > calibre tries to generate one; if you run into this it's fixed with the > > ImageMagick update but that isn't suitable for -stable; at least using > > the command-line ebook-convert tool you can add --no-default-epub-cover > > to the command line to work around this. Not sure what's your input format but pandoc can convert to epub as well. Although there's no port for pandoc yet. I built it manually and it works fine. j.
Re: calibre error
> Sent: Sunday, November 22, 2015 at 11:06 PM > From: "Stuart Henderson" <st...@openbsd.org> > To: "misc nick" <misc.n...@gmx.com> > Cc: ports@openbsd.org > Subject: Re: calibre error > > On 2015/11/22 07:10, misc nick wrote: > > I'm using the calibre package on OpenBSD 5.8/amd64 release. > > > > When i try to convert anything to epub i get this: > > This was broken by a py-qt4 update that went in too late to get it fixed > in time for release. You can build calibre from 5.8-stable ports (or I think > it will probably be in mtier stable packages) or for a dirty fix you could > edit /usr/local/lib/calibre/calibre/gui2/widgets.py as done here: > > https://github.com/kovidgoyal/calibre/commit/72d47ba9377d70e786bf3d93b323544188c894 > The quick and dirty fix worked. Thank you! > Another problem you might run into with epub is if there's no cover and > calibre tries to generate one; if you run into this it's fixed with the > ImageMagick update but that isn't suitable for -stable; at least using > the command-line ebook-convert tool you can add --no-default-epub-cover > to the command line to work around this. Good to know.
Re: calibre error
On Sun, Nov 22, 2015 at 07:10:22AM +0100, misc nick wrote: > I'm using the calibre package on OpenBSD 5.8/amd64 release. > > When i try to convert anything to epub i get this: > > calibre 1.48 isfrozen: False is64bit: True > OpenBSD-5.8-amd64-64bit OpenBSD ('64bit', '') > ('OpenBSD', '5.8', 'GENERIC.MP#1236') > Python 2.7.10 > Linux: ('', '', '') > Traceback (most recent call last): > File "/usr/local/lib/calibre/calibre/gui2/actions/convert.py", line 156, in > convert_ebook > self.do_convert(book_ids, bulk=bulk) > File "/usr/local/lib/calibre/calibre/gui2/actions/convert.py", line 173, in > do_convert > self.gui.library_view.model().db, book_ids, > out_format=prefs['output_format']) > File "/usr/local/lib/calibre/calibre/gui2/tools.py", line 41, in > convert_single_ebook > d = SingleConfig(parent, db, book_id, None, out_format) > File "/usr/local/lib/calibre/calibre/gui2/convert/single.py", line 151, in > __init__ > self.setup_pipeline() > File "/usr/local/lib/calibre/calibre/gui2/convert/single.py", line 201, in > setup_pipeline > self.mw = widget_factory(MetadataWidget) > File "/usr/local/lib/calibre/calibre/gui2/convert/single.py", line 199, in > widget_factory > self.plumber.get_option_help, self.db, self.book_id) > File "/usr/local/lib/calibre/calibre/gui2/convert/metadata.py", line 55, in > __init__ > Widget.__init__(self, parent, ['prefer_metadata_cover']) > File "/usr/local/lib/calibre/calibre/gui2/convert/__init__.py", line 61, in > __init__ > self.setupUi(self) > File "/usr/local/lib/calibre/calibre/gui2/convert/metadata_ui.py", line 63, > in setupUi > self.cover = ImageView(self.groupBox_4) > File "/usr/local/lib/calibre/calibre/gui2/widgets.py", line 292, in __init__ > self._pixmap = QPixmap(self) > TypeError: QPixmap(): argument 1 has unexpected type 'ImageView' No idea but I would recomment not to spend time on this ancient calibre version but instead to try to update the port itself. But iirc we need py-qt5, poppler-qt5 and maybe something else. j.
Re: calibre error
On 2015/11/22 07:10, misc nick wrote: > I'm using the calibre package on OpenBSD 5.8/amd64 release. > > When i try to convert anything to epub i get this: This was broken by a py-qt4 update that went in too late to get it fixed in time for release. You can build calibre from 5.8-stable ports (or I think it will probably be in mtier stable packages) or for a dirty fix you could edit /usr/local/lib/calibre/calibre/gui2/widgets.py as done here: https://github.com/kovidgoyal/calibre/commit/72d47ba9377d70e786bf3d93b323544188c894 Another problem you might run into with epub is if there's no cover and calibre tries to generate one; if you run into this it's fixed with the ImageMagick update but that isn't suitable for -stable; at least using the command-line ebook-convert tool you can add --no-default-epub-cover to the command line to work around this.
Re: calibre error
On 2015/11/22 06:53, Jiri B wrote: > No idea but I would recomment not to spend time > on this ancient calibre version but instead to try > to update the port itself. But iirc we need py-qt5, > poppler-qt5 and maybe something else. > > j. > That's not a very helpful mail.