View Single Post
Old 05-24-2022, 06:35 PM   #1
dhdurgee
Guru
dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.
 
Posts: 910
Karma: 3000002
Join Date: Jun 2010
Device: K3W, PW4
segfault using calibredb add

I am attempting to debug a segfault in a plugin when adding a book using calibre-debug. The output of calibre-debug -h gives an example of this, but when I tried it I got:

Code:
dhdurgee@z560:~/Downloads$ calibre-debug -r "Add Books" -- ./Created\ Equal.epub 
Traceback (most recent call last):
  File "runpy.py", line 194, in _run_module_as_main
  File "runpy.py", line 87, in _run_code
  File "site.py", line 45, in <module>
  File "site.py", line 41, in main
  File "calibre/debug.py", line 315, in main
  File "calibre/customize/__init__.py", line 324, in cli_main
NotImplementedError: The Add Books plugin has no command line interface
dhdurgee@z560:~/Downloads$
This is despite the -h option showing:

Code:
  -r RUN_PLUGIN, --run-plugin=RUN_PLUGIN
                        Run a plugin that provides a command line interface.
                        For example:
                        calibre-debug -r "Add Books" -- file1 --option1
                        Everything after the -- will be passed to the plugin
                        as arguments.
The command line approach which hits the segfault is:

Code:
calibredb add ./Created\ Equal.epub --with-library=~/Calibre\ Library
How do I do this?

Dave

Last edited by dhdurgee; 05-24-2022 at 06:51 PM. Reason: add command line approach
dhdurgee is offline   Reply With Quote