View Single Post
Old 01-03-2010, 12:05 AM   #1
lmamakos
Member
lmamakos began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Dec 2009
Device: PRS-600
Calibre on OSX won't start - recent bug

In the last couple of releases, I noticed that Calibre stopped launching on my OSX system. After running some experiments, it would seem that the failure is related to running Calibre from a disk formatted with a case-sensitive file system (which is not the default). You can easily test this by creating a disk image in a file with Disk Utility.app, format it as case-senstive, and watch.

Looking at some logs, I see this pop out in the failure scenario:

Code:
1/2/10 11:53:15 PM	[0x0-0x212212].net.kovidgoyal.calibre[4077]	Python function terminated unexpectedly: dlopen(/Volumes/Disk Image/calibre.app/Contents/Resources/Python/site-packages/PyQt4/QtWebKit.so, 2): Library not loaded: @executable_path/../Frameworks/QtWebKit.framework/Versions/4/QtWebKit
1/2/10 11:53:15 PM	[0x0-0x212212].net.kovidgoyal.calibre[4077]	  Referenced from: /Volumes/Disk Image/calibre.app/Contents/Resources/Python/site-packages/PyQt4/QtWebKit.so
1/2/10 11:53:15 PM	[0x0-0x212212].net.kovidgoyal.calibre[4077]	  Reason: image not found
1/2/10 11:53:15 PM	[0x0-0x212212].net.kovidgoyal.calibre[4077]	Traceback (most recent call last):
1/2/10 11:53:15 PM	[0x0-0x212212].net.kovidgoyal.calibre[4077]	  File "/Volumes/Disk Image/calibre.app/Contents/Resources/Python/lib/python2.6/site.py", line 147, in main
1/2/10 11:53:15 PM	[0x0-0x212212].net.kovidgoyal.calibre[4077]	    return run_entry_point()
1/2/10 11:53:15 PM	[0x0-0x212212].net.kovidgoyal.calibre[4077]	  File "/Volumes/Disk Image/calibre.app/Contents/Resources/Python/lib/python2.6/site.py", line 115, in run_entry_point
1/2/10 11:53:15 PM	[0x0-0x212212].net.kovidgoyal.calibre[4077]	    pmod = __import__(mod, fromlist=[1], level=0)
1/2/10 11:53:15 PM	[0x0-0x212212].net.kovidgoyal.calibre[4077]	  File "site-packages/calibre/gui2/__init__.py", line 15, in <module>
1/2/10 11:53:15 PM	[0x0-0x212212].net.kovidgoyal.calibre[4077]	  File "site-packages/calibre/ebooks/metadata/meta.py", line 11, in <module>
1/2/10 11:53:15 PM	[0x0-0x212212].net.kovidgoyal.calibre[4077]	  File "site-packages/calibre/customize/ui.py", line 12, in <module>
1/2/10 11:53:15 PM	[0x0-0x212212].net.kovidgoyal.calibre[4077]	  File "site-packages/calibre/customize/builtins.py", line 393, in <module>
1/2/10 11:53:15 PM	[0x0-0x212212].net.kovidgoyal.calibre[4077]	  File "site-packages/calibre/ebooks/pdf/output.py", line 18, in <module>
1/2/10 11:53:15 PM	[0x0-0x212212].net.kovidgoyal.calibre[4077]	  File "site-packages/calibre/ebooks/pdf/writer.py", line 22, in <module>
1/2/10 11:53:15 PM	[0x0-0x212212].net.kovidgoyal.calibre[4077]	ImportError: dlopen(/Volumes/Disk Image/calibre.app/Contents/Resources/Python/site-packages/PyQt4/QtWebKit.so, 2): Library not loaded: @executable_path/../Frameworks/QtWebKit.framework/Versions/4/QtWebKit
1/2/10 11:53:15 PM	[0x0-0x212212].net.kovidgoyal.calibre[4077]	  Referenced from: /Volumes/Disk Image/calibre.app/Contents/Resources/Python/site-packages/PyQt4/QtWebKit.so
1/2/10 11:53:15 PM	[0x0-0x212212].net.kovidgoyal.calibre[4077]	  Reason: image not found
1/2/10 11:53:15 PM	com.apple.launchd.peruser.501[475]	([0x0-0x212212].net.kovidgoyal.calibre[4077]) Exited with exit code: 255
Hope this help narrow down the problem; I think this might have stopped working two versions ago, perhaps coincident with the new version of PyQt? Not sure.

Thanks for the great software.
lmamakos is offline   Reply With Quote