Bug 1319450 - Fedora package doesn't work where upstream package does.
Summary: Fedora package doesn't work where upstream package does.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: calibre
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-20 07:50 UTC by Robin Powell
Modified: 2016-09-04 18:42 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-04 18:42:03 UTC
Type: Bug


Attachments (Terms of Use)

Description Robin Powell 2016-03-20 07:50:50 UTC
The full details are at http://www.mobileread.com/forums/showthread.php?p=3282205 , but the short version is that I fixed a crash bug by removing the Fedora package and installing the upstream dependencies-included binary version.  I gather there's some kind of fight between Calibre and Fedora on how Calibre should be packaged, and frankly what I'm seeing so far makes me think the Fedora side is more likely to be the sane side, but I thought y'all should know anyway.

Comment 1 Kevin Fenzi 2016-03-20 16:17:00 UTC
ok, your convert works fine here. ;( 

1. Have you installed hipchat or viber on your system?

2. what version of calibre from packages do you have? 'rpm -q calibre' 

3. Can you try this packaged version scratch build?
 https://koji.fedoraproject.org/koji/taskinfo?taskID=13399395

Sorry that upstream is still so distro hostile. We just want to help more folks use their fine application.

Comment 2 Kevin Fenzi 2016-03-20 16:44:09 UTC
Oops. Should have made sure that build completed, which it didn't. ;) 

Please try https://koji.fedoraproject.org/koji/taskinfo?taskID=13399427 instead.

Comment 3 Robin Powell 2016-03-21 01:55:04 UTC
I'm certainly not *aware* of installing hipchat or viber; this is a headless server (in fact, it's a headless VM on a headless server).

rlpowell@vrici> sudo dnf list installed '*ip*hat*' '*iber*'
Last metadata expiration check performed 2:18:52 ago on Sun Mar 20 16:34:03 2016.
Installed Packages
liberation-fonts-common.noarch                                                                                1:1.07.4-6.fc23                                                                                 @fedora
liberation-mono-fonts.noarch                                                                                  1:1.07.4-6.fc23                                                                                 @fedora
liberation-narrow-fonts.noarch                                                                                1:1.07.4-6.fc23                                                                                 @fedora
liberation-sans-fonts.noarch                                                                                  1:1.07.4-6.fc23                                                                                 @fedora
liberation-serif-fonts.noarch                                                                                 1:1.07.4-6.fc23                                                                                 @fedora
linux-libertine-biolinum-fonts.noarch                                                                         5.3.0-7.2012_07_02.fc23                                                                         @fedora
linux-libertine-fonts.noarch                                                                                  5.3.0-7.2012_07_02.fc23                                                                         @fedora
linux-libertine-fonts-common.noarch                                                                           5.3.0-7.2012_07_02.fc23                                                                         @fedora

Comment 4 Robin Powell 2016-03-21 03:35:52 UTC
OK:

$ sudo calibre-uninstall
$ sudo dnf install calibre [just to get dependencies]
[ stop to confirm the issue; confirmed ]
$ cd /tmp
$ wget https://kojipkgs.fedoraproject.org//work/tasks/9434/13399434/calibre-2.53.0-1.fc23.x86_64.rpm
$ sudo rpm -U calibre-2.53.0-1.fc23.x86_64.rpm
$ rpm -q calibre
calibre-2.53.0-1.fc23.x86_64

Repro; no change that I can see:

Removing fake margins...
Removing level p_9 left margin of: auto
Removing level p_9 right margin of: auto
Removing level p_4 left margin of: auto
Removing level p_4 right margin of: auto
Removing level p_5 left margin of: auto
Removing level p_5 right margin of: auto
Cleaning up manifest...
Trimming unused files from manifest...
Creating MOBI Output...
67% Running MOBI Output plugin
Serializing resources...
Creating MOBI 6 output
Traceback (most recent call last):
  File "/bin/ebook-convert", line 20, in <module>
    sys.exit(main())
  File "/usr/lib64/calibre/calibre/ebooks/conversion/cli.py", line 380, in main
    plumber.run()
  File "/usr/lib64/calibre/calibre/ebooks/conversion/plumber.py", line 1219, in run
    self.opts, self.log)
  File "/usr/lib64/calibre/calibre/ebooks/conversion/plugins/mobi_output.py", line 207, in convert
    self.write_mobi(input_plugin, output_path, kf8, resources)
  File "/usr/lib64/calibre/calibre/ebooks/conversion/plugins/mobi_output.py", line 217, in write_mobi
    from calibre.ebooks.oeb.transforms.rasterize import SVGRasterizer, Unavailable
  File "/usr/lib64/calibre/calibre/ebooks/oeb/transforms/rasterize.py", line 13, in <module>
    from PyQt5.Qt import (
ImportError: cannot import name QColor
scripts/Makefile:114: recipe for target '/home/rlpowell/lojban/cll/build/cll.mobi' failed
make: *** [/home/rlpowell/lojban/cll/build/cll.mobi] Error 1

Comment 5 Robin Powell 2016-03-21 03:36:41 UTC
I was about to push this host to rawhide for unrelated reasons; do you need me to stay on F23 to test this?

Comment 6 Kevin Fenzi 2016-03-25 19:29:56 UTC
Sorry for the delay. 

If you haven't reinstalled yet, could you do: 

rpm -V python-qt5

and see if it outputs anything?

Comment 7 Robin Powell 2016-04-14 06:35:43 UTC
I'm sorry, I thought I updated this:

rlpowell@vrici> rpm -V python-qt5
rlpowell@vrici>

Comment 8 Kevin Fenzi 2016-04-18 17:20:58 UTC
Weird. I don't understand what could be different on your machine. 

Will try and come up with some theory.

Comment 9 Robin Powell 2016-09-04 04:39:01 UTC
After literally years,  figured this out:

There were random old crappy *system-level* libs in /usr/local/lib, and they were *in use*:

rlpowell@vrici> sudo ldd /usr/bin/* | grep /usr/local/lib | awk '{ print $3 }' | sort | uniq -c
[sudo] password for rlpowell:
ldd: /usr/bin/miniterm-2.7.py: No such file or directory
ldd: warning: you do not have execution permission for `/usr/bin/mono-sgen-gdb.py'
      2 /usr/local/lib/libQtCore.so.4
      1 /usr/local/lib/libQtGui.so.4
     82 /usr/local/lib/libfontconfig.so.1
    101 /usr/local/lib/libfreetype.so.6
      5 /usr/local/lib/libguile-2.0.so.22

Removing that crap plus a re-install cleared the problem right up.

;___;  I can't believe it was something so dumb.  Sorry about that!

Comment 10 Kevin Fenzi 2016-09-04 18:42:03 UTC
Ah ha! 

Good catch... glad you tracked it down. :)


Note You need to log in before you can comment on or make changes to this bug.