Fedora 20 PIL is now python-pillow -- Binary install fails

Bug #1247315 reported by Dennis Kohler on 2013-11-02
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

So, the unfortunate side effect of upgrading to Fedora 20: Trying to install 1.9.0, Calibre install fails with:

WARNING ____________________
Setting up completion failed with error:
__________________________________________________
        Traceback (most recent call last):
          File "site-packages/calibre/linux.py", line 493, in setup_completion
          File "site-packages/calibre/gui2/__init__.py", line 7, in <module>
        ImportError: cannot import name QDesktopServices

Setting up desktop integration...

____________________ WARNING ____________________
Setting up desktop integration failed with error:
__________________________________________________
        Traceback (most recent call last):
          File "site-packages/calibre/linux.py", line 656, in setup_desktop_integration
          File "site-packages/calibre/linux.py", line 915, in render_img
        ImportError: cannot import name QImage

on
$calibre

Traceback (most recent call last):
  File "site.py", line 56, in main
  File "site-packages/calibre/gui2/__init__.py", line 7, in <module>
ImportError: cannot import name QDesktopServices

THat error indicates one of the libraries needed my Qt is missing/has an
incompatible version on your system. Run calibre ad

LD_DEBUG=libs calibre-debug -c "from PyQt4.Qt import QDesktopServices"

to get information about the problem library.

 status invalid

Changed in calibre:
status: New → Invalid
Dennis Kohler (dennismkohler) wrote :

Thank you Kovid.
I will work at sorting it out.

FYI
$LD_DEBUG=libs calibre-debug -c "from PyQt4.Qt import QDesktopServices" 2>log
shows up to the error:

    24235: find library=libicuio.so.49 [0]; searching
     24235: search path=/opt/calibre/lib:tls/x86_64:tls:x86_64: (LD_LIBRARY_PATH)
     24235: trying file=/opt/calibre/lib/libicuio.so.49
     24235:
     24235:
     24235: calling init: /opt/calibre/lib/libicuuc.so.49
     24235:
     24235:
     24235: calling init: /opt/calibre/lib/libicui18n.so.49
     24235:
     24235:
     24235: calling init: /opt/calibre/lib/libicuio.so.49
     24235:
     24235:
     24235: calling init: /opt/calibre/lib/python2.7/site-packages/calibre/plugins/icu.so
     24235:
     24235:
     24235: calling init: /opt/calibre/lib/python2.7/lib-dynload/datetime.so
     24235:
     24235:
     24235: calling init: /opt/calibre/lib/python2.7/lib-dynload/_json.so
     24235:
Traceback (most recent call last):
  File "site.py", line 58, in main
  File "site-packages/calibre/debug.py", line 237, in main
  File "<string>", line 1, in <module>
ImportError: cannot import name QDesktopServices

Kovid Goyal (kovid) wrote :

You need to post the full log, the section you have there is not really useful.

Dennis Kohler (dennismkohler) wrote :

Whole log file attached.

Thank you so much for looking at it

Kovid Goyal (kovid) wrote :

Try deleting the file libz.so.1 from /opt/calibre/lib

Dennis Kohler (dennismkohler) wrote :

Works perfectly.
So... in the future look for (fatal) in the log and start there?

You are heroic.

Should I change the name of the bug to help someone else find it who may be in the same trouble in the future?

Kovid Goyal (kovid) wrote :

Dont worry about it, the next calibre release will have an updated
version of zlib that should take care of the problem.

 status fixreleased

Changed in calibre:
status: Invalid → Fix Released
Dennis Kohler (dennismkohler) wrote :

Thank you for the bugfix in the new release. I am always astounded at how responsive you are to this project.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers