View Single Post
Old 05-20-2024, 07:34 AM   #1
Leilu
Member
Leilu began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Feb 2023
Device: Kindle Oasis 3 / Kobo Libra 2
Question I need help to start coding

Hi,

I would like to start coding. I'm a beginner and I'd like to learn from real cases that interest me. Here's a plugin for synchronizing metadata between Calibre and KOReader that I use every day. I've been wracking my brains over this for two afternoons now, ending up frustrated at not understanding.


Windows Development Environment

I'm having problems with Calibre's official documentation, which isn't detailed enough for my limited skills.
https://manual.calibre-ebook.com/dev...nt-environment
I think this is done.

Calibre source code is here
Code:
C:\Users\leilu\Source\Repos\calibre\src
Calibre binaries are here
Code:
C:\Program Files\Calibre2
KOReader calibre plugin repository
I cloned here
Code:
C:\Users\leilu\Source\Repos\koreader-calibre-plugin
this repo https://github.com/harmtemolder/koreader-calibre-plugin to comment it with GPT4 to understand its code and why not contribute to this project in the future.


Errors in my IDE

I've got lots of import errors, as you can see from these screenshots




Python interpreter is set



What I want to achieve today
As I see here https://manual.calibre-ebook.com/cre...ugging-plugins I want to be able to
Code:
print("I'm ready to code")
in this koreader-calibre-plugin running this command:
Code:
calibre-debug -s; calibre-customize -b C:\Users\leilu\Source\Repos\koreader-calibre-plugin; calibre
I think the koreader-calibre-plugin dev included a way to kinda do this

But for now I'd like to at least sort out the import problems linked to my development environment, I think.


Last edited by Leilu; 05-20-2024 at 07:56 AM. Reason: Smaller image to not break the forum layout
Leilu is offline   Reply With Quote