![]() |
#1 |
Member
![]() 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. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,221
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 21
Karma: 10
Join Date: Jul 2011
Device: none
|
Which part of "Using calibre in your projects" is an answer to which question(s)?
Last edited by John Peterson; 12-22-2012 at 11:09 PM. |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,221
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre-debug -e /path/to/your/python/script.py
is an answer to both your questions. |
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 21
Karma: 10
Join Date: Jul 2011
Device: none
|
Print the contents of `script.py` that launch the main window.
Last edited by John Peterson; 02-05-2013 at 10:01 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,890
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Moderator Notice
Moved posts to their own thread. The thread posted to was over 3 years old. We try to keep necro-posting to a minimum. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre W7 runtime error | Cosworth | Devices | 4 | 09-04-2012 11:39 PM |
Print vs Pixel: retailers experiment with print/ebook bundles | DMcCunney | General Discussions | 42 | 09-15-2010 11:29 AM |
Frash: Runtime Ported Flash For iPad | Lotus Esprit | Apple Devices | 7 | 07-09-2010 12:43 AM |
runtime error when converting html | AngrySpoon | Calibre | 4 | 01-09-2010 04:57 PM |
Runtime Error: Windows 7 | ZacWolf | Sigil | 16 | 01-07-2010 11:54 PM |