View Single Post
Old 04-04-2021, 12:44 AM   #11
likekindle
Member
likekindle began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Apr 2019
Device: Kindle
Quote:
Originally Posted by davidfor View Post
Calibre includes its own Python installation. It does not use anything from the Python installed in the OS. If you want to use modules not included with calibre, you need to package them yourself.

But, how are you using Pandas and PyMongo? I would have thought Pandas was overkill. But, I haven't touched it enough to see what advantage it would have over other methods. But, you completely baffle me with PyMongo. As it is an interface for MongoDB, I could only see it being useful if Douban is allowing direct access to their database.
Yes, you're right, the pandas/pymongo is not used in the plugin(maybe i copied the code from somewhere), now i removed the dependencies, then the plugin is installed(using command "calibre-customize -b ." BTW)
But when i start the app using command "calibre-debug -g", then use the plugin, it's still not working, the error message is like:
Quote:
calibre, version 5.14.0
ERROR: Download failed: Failed to download metadata or cover for the selected book.

Unknown (Failed metadata)
I've write some log message(using print statement), but they are not showed. i don't know why, and how to debug the plugin?

Thanks a lot for help.
likekindle is offline   Reply With Quote