View Single Post
Old 05-22-2013, 12:43 PM   #1
Yves000
Junior Member
Yves000 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2013
Device: iPad 1
Bug: --debug-javascript broken on Mac

(deleted, reported as https://bugs.launchpad.net/calibre/+bug/1183014)

Hi,

In Calibre 0.9.31 for Mac (10.6.1 but it shouldn't matter), from the Terminal, running either "calibre.app/Contents/MacOS/ebook-viewer --debug-javascript foo.epub" or simply "ebook-viewer --debug-javascript foo.epub" after having clicked the button "Install command line tools" in Calibre's Preferences/Miscrellaneous fails with error "IOError: [Errno 2] No such file or directory: u'/Applications/calibre.app/Contents/Resources/Python/site-packages/calibre/ebooks/oeb/display/utils.coffee'". Directory "/Applications/calibre.app/Contents/Resources/Python/site-packages/calibre/ebooks/oeb/display" exists, but contains only __init__.pyo, test-cfi/run.pyo and webview.pyo.

I've downloaded the current source code with "bzr branch lp:calibre" and copied the files from src/calibre/ebooks/oeb/display to Python/site-packages/calibre/ebooks/oeb/display. No more error, and console.debug in epub's JavaScript is shown in the Terminal.

Thanks,

Yves

Last edited by Yves000; 05-22-2013 at 01:54 PM.
Yves000 is offline   Reply With Quote