Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
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
Old 12-22-2012, 10:54 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
http://manual.calibre-ebook.com/deve...-your-projects
kovidgoyal is offline   Reply With Quote
Advert
Old 12-22-2012, 10:57 PM   #3
John Peterson
Member
John Peterson began at the beginning.
 
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.
John Peterson is offline   Reply With Quote
Old 12-22-2012, 11:02 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,858
Karma: 22666666
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.
kovidgoyal is offline   Reply With Quote
Old 12-22-2012, 11:09 PM   #5
John Peterson
Member
John Peterson began at the beginning.
 
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.
John Peterson is offline   Reply With Quote
Advert
Old 12-22-2012, 11:56 PM   #6
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
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.
DoctorOhh is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 07:13 PM.


MobileRead.com is a privately owned, operated and funded community.