View Single Post
Old 11-20-2023, 11:48 AM   #153
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,402
Karma: 171313058
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
Windows 11 here and calibre-debug won't work. I get some sort of calibre interactive shell. Going to the calibre directory doesn't help. I have uninstalled calibre 7 and reinstalled. calibre-debug is still broken.

Attachment 204826
Perhaps running calibre-debug -g would do what you seem to want? BTW, this behaviour has not changed since at least calibre 4.23
Quote:
D:\Calibre Portable\Calibre>calibre-debug --version
calibre-debug.exe (calibre 4.23)

D:\Calibre Portable\Calibre>calibre-debug
Module readline not available.
Welcome to the interactive calibre shell!
Use exit to quit
>>>
To quote from calibre-debug's --help screen:
Quote:
Various command line interfaces useful for debugging calibre. With no options,
this command starts an embedded Python interpreter. You can also run the main
calibre GUI, the calibre E-book viewer and the calibre editor in debug mode.

It also contains interfaces to various bits of calibre that do not have
dedicated command line tools, such as font subsetting, the E-book diff tool and so on.
And for the options:

Quote:
Options:
--version show program's version number and exit

-h, --help show this help message and exit

-c COMMAND, --command=COMMAND
Run Python code.

-e EXEC_FILE, --exec-file=EXEC_FILE
Run the Python code in file.

-f, --subset-font Subset the specified font. Use -- after this option to
pass option to the font subsetting program.

-d, --debug-device-driver
Debug device detection

-g, --gui Run the GUI with debugging enabled. Debug output is
printed to stdout and stderr.

--gui-debug=GUI_DEBUG
Run the GUI with a debug console, logging to the
specified path. For internal use only, use the -g
option to run the GUI in debug mode

--run-without-debug Don't run with the DEBUG flag set

-w, --viewer Run the E-book viewer in debug mode

--paths Output the paths necessary to setup the calibre
environment

--add-simple-plugin=ADD_SIMPLE_PLUGIN
Add a simple plugin (i.e. a plugin that consists of
only a .py file), by specifying the path to the py
file containing the plugin code.

-m, --inspect-mobi Inspect the MOBI file(s) at the specified path(s)

--edit-book Launch the calibre "Edit book" tool in debug mode.

-x, --explode-book Explode the book into the specified folder.
Usage: -x file.epub output_dir
Exports the book as a collection of HTML files and
metadata, which you can edit using standard HTML
editing tools. Works with EPUB, AZW3, HTMLZ and DOCX
files.

-i, --implode-book Implode a previously exploded book.
Usage: -i output_dir file.epub
Imports the book from the files in output_dir which
must have been created by a previous call to
--explode-book. Be sure to specify the same file type
as was used when exploding.

--export-all-calibre-data
Export all calibre data (books/settings/plugins).
Normally, you will be asked for the export folder and
the libraries to export. You can also specify them as
command line arguments to skip the questions. Use
absolute paths for the export folder and libraries.
The special keyword "all" can be used to export all
libraries. Examples:
calibre-debug --export-all-calibre-data # for
interactive use
calibre-debug --export-all-calibre-data
/path/to/empty/export/folder /path/to/library/folder1
/path/to/library2
calibre-debug --export-all-calibre-data
/export/folder all # export all known libraries

--import-calibre-data
Import previously exported calibre data

-s, --shutdown-running-calibre
Cause a running calibre instance, if any, to be
shutdown. Note that if there are running jobs, they
will be silently aborted, so use with care.

--test-build Test binary modules in build

-r RUN_PLUGIN, --run-plugin=RUN_PLUGIN
Run a plugin that provides a command line interface.
For example:
calibre-debug -r "Plugin name" -- file1 --option1
Everything after the -- will be passed to the plugin
as arguments.

-t RUN_TEST, --run-test=RUN_TEST
Run the named test(s). Use the special value "all" to
run all tests. If the test name starts with a period
it is assumed to be a module name. If the test name
starts with @ it is assumed to be a category name.

--diff Run the calibre diff tool. For example:
calibre-debug --diff file1 file2

--default-programs=DEFAULT_PROGRAMS
(Un)register calibre from Windows Default Programs.
--default-programs=(register|unregister)

--fix-multiprocessing
For internal use

Last edited by DNSB; 11-20-2023 at 11:54 AM.
DNSB is offline