View Single Post
Old 12-22-2012, 10:12 PM   #1
John Peterson
Member
John Peterson began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Jul 2011
Device: none
Print runtime errors from `calibre-parallel`

Runtime error output from `calibre-parallel`

How do i print runtime errors that occur in `calibre-parallel`?

There seem to be something in the launcher that voids attempts to redirect `sys.stderr` including runtime errors because the code

sys.stderr = dbg_view_writer()
undefined()

by default print the runtime error to `dbg_view_writer`. However when running the code from
* `calibre` it's printed to a message box
* `calibre-debug` to stdout
* `calibre-parallel` to nowhere visible

Run Calibre main window directly from .py (rather from calibre.exe or calibre-debug.exe)

Which file or function do I call to launch Calibre directly from the .py files? (Including code that defines `sys.extensions_location`.)

Build calibre-parallel.exe

Print the commands to build calibre-parallel.exe.

Answer

* the answer is given in https://github.com/mirror/calibre/pull/11
* it's not necessary to run Calibre directly from the .py files or change calibre-parallel.exe

Last edited by John Peterson; 02-07-2013 at 02:31 AM.
John Peterson is offline   Reply With Quote