07-11-2020, 04:31 PM | #1 |
Enthusiast
Posts: 38
Karma: 10
Join Date: Jul 2020
Device: Kobo Clara HD
|
PyCharm setup and py3?
Hi all!
I'm able use the PyCharm remote debugger (using pydevd_pycharm) and "calibre-debug" but now I'd like to run everything within the IDE. Dev env = macOS Catalina.
Thanks in advance! |
07-11-2020, 05:36 PM | #2 | |
Resident Curmudgeon
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
https://www.mobileread.com/forums/sh...d.php?t=325721 |
|
Advert | |
|
07-12-2020, 12:00 PM | #3 |
Enthusiast
Posts: 38
Karma: 10
Join Date: Jul 2020
Device: Kobo Clara HD
|
Ok, thanks!
I've tried to decode the launcher app (the binary) "calibre-debug" to find out the Calibre entry point in debug-mode and other arguments but in vain. dtrace does give you only a limited view of the program arguments. I've also tried to find out how it works by looking in the source for the luncher apps but there are no docs how they are constructed and as I don't have a complete dev-env I can't use the build process. Can anyone please give me a hint how calibre-debug is starting up things? A qualified guess is that "start_gui" ("srs/gui2/main.py") might be the entry point... PHP Code:
|
07-12-2020, 12:07 PM | #4 |
creator of calibre
Posts: 43,870
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre-debug executes main() from debug.py
|
07-12-2020, 12:19 PM | #5 |
Enthusiast
Posts: 38
Karma: 10
Join Date: Jul 2020
Device: Kobo Clara HD
|
Ok, thank you!
1. Are there any other settings, env-vars or arguments needed before calling main()? 2. Btw, where is the src for v4.99 (py3 beta) located? Couldn't find any branch or tag at github "https://github.com/kovidgoyal/calibre" for 4.99... Thanks, Lars. |
Advert | |
|
07-12-2020, 01:00 PM | #6 |
creator of calibre
Posts: 43,870
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The py3 branch. And if you want to run calibre from source using a binary read https://manual.calibre-ebook.com/develop.html
|
07-12-2020, 04:01 PM | #7 | |
Enthusiast
Posts: 38
Karma: 10
Join Date: Jul 2020
Device: Kobo Clara HD
|
Quote:
Fyi, the following settings are required by PyCharm to work on macOS (ie set by launcher "caliber-debug"). In the example below Calibre is cloned to "/Users/lars/src/calibre" Code:
CloneRoot = /Users/lars/src/calibre
CALIBRE_DEVELOP_FROM = CloneRoot/src <======
PHP Code:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting PyCharm code completion while writing Calibre plugins | trying | Development | 6 | 03-30-2014 05:47 AM |
Continual Setup | Pullar | Kobo Reader | 13 | 11-14-2011 09:48 AM |
Can't get to setup | kmb99 | Kobo Tablets | 4 | 11-03-2011 01:44 PM |
Pandigital Novel Setup | BlkDimnd | More E-Book Readers | 0 | 07-31-2010 12:26 AM |
PRS-500 My setup | Nogg | Sony Reader Dev Corner | 12 | 08-22-2007 01:30 PM |