![]() |
#16 | |||
Member
![]() Posts: 13
Karma: 10
Join Date: Jun 2008
Device: PRS-505
|
Quote:
I mean, duh. Literally the entire description of what you need to do first is: Quote:
Additionally, literally 2 lines above that: Quote:
If nothing else, again, the documentation (such as it is) is extremely misleading. Wrong documentation is worse then no documentation. Last edited by fake-name; 10-29-2021 at 06:00 AM. |
|||
![]() |
![]() |
![]() |
#17 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
*sigh* if you are stupid enough to believe that you can build anything on a "linux" computer without installing needed dependencies first, no amount of documentation is going to help you.
And given your attitude, I have zero interest in helping you further. Good bye and good luck. |
![]() |
![]() |
![]() |
#18 | |
Member
![]() Posts: 13
Karma: 10
Join Date: Jun 2008
Device: PRS-505
|
Quote:
If your documentation says "it just needs a linux computer", you're LITERALLY SAYING IT HAS NO OTHER DEPENDENCIES. I do expect to need the dependencies that the documentation says it needs. My whole point here, which were arguing about, is that the documentation says it needs nothing. |
|
![]() |
![]() |
![]() |
#19 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 33
Karma: 2114
Join Date: Nov 2021
Device: kindle
|
Quote:
I had a similar problem trying to create my first plugin for calibre, and my solution was "simple" but effective ( Happy idea ) U can try this... 1º Add a folder with the library you needs to use in your project. 2º Import any library to unzip files like "import zipfile" 3º Extrat this folder in calibre plugin folder (Example code ### unzip.py ###) Code:
from calibre.utils.config import config_dir UNZIP_PATH = Path(config_dir).joinpath("plugins/YOUR_PLUGIN_NAME") UNZIP_M_PATH = Path(config_dir).joinpath("plugins/YOUR_PLUGIN_NAME/your_library_folder_name") if Path.is_dir(UNZIP_M_PATH): print('This library folder already exists on your system') else: for file in archive.namelist(): if file.startswith('your_library_folder_name'): archive.extract(file, UNZIP_PATH) (example code for import your custom libs on main.py or whatever file.py) Code:
import os from calibre_plugins.YOUR_PLUGIN_NAME.unzip import UNZIP_PATH sys.path.append(UNZIP_PATH) os.chdir(UNZIP_PATH) FROM your_library_folder_name import what_you_need You can see the code on my plugin AudioBook_Duration on this forum. AudioBook_Duration I think it can be useful for you to use external libraries. Last edited by wiso; 11-15-2021 at 06:28 PM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Systemwide installation of plugins / Discovery of installed plugins via pkg_resources | t-8ch | Development | 8 | 11-14-2020 09:25 AM |
Slow with large library | luoto | Calibre | 17 | 02-06-2020 04:44 PM |
Maintenance large library | tomcooke | General Discussions | 11 | 06-11-2018 03:23 PM |
Best way to get a large Calibre library into the PE library? | Filark | enTourage Archive | 0 | 04-20-2011 10:18 PM |
Networked db/large library a no-go? | concern | Calibre | 3 | 02-03-2010 09:11 PM |