Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 10-03-2020, 04:09 AM   #1
tycho
Member
tycho began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jun 2018
Device: samsung
CLI catalog while calibre is running

Hello

I use CLI:

> calibredb catalog

if calibre is running, calibre says I need to use remote library, but 'catalog' is not compatible with remote library. Any suggestion?
tycho is offline   Reply With Quote
Old 10-03-2020, 05:10 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,853
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
generate the catalog from inside calibre.
kovidgoyal is offline   Reply With Quote
Old 10-03-2020, 10:04 AM   #3
tycho
Member
tycho began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jun 2018
Device: samsung
ok, thanks, using the GUI.
So I guess it's not possible to use the CLI to get the catalog while calibre is running
tycho is offline   Reply With Quote
Old 10-03-2020, 05:31 PM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,567
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@tycho - using Preferences->Toolbars & Menus, add the Create Catalogue tool to a menu or toolbar.

BR
BetterRed is offline   Reply With Quote
Old 10-03-2020, 07:40 PM   #5
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: 35,380
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by tycho View Post
ok, thanks, using the GUI.
So I guess it's not possible to use the CLI to get the catalog while calibre is running
That would have the CLI and the GUI accessing the database simultaneously which calibre was not designed to handle. If nothing else, SQLite was designed as an embedded database not a client/server database. One major drawback to that design is that SQLite locks the entire database during a write which can result in very noticeable slowness if multiple users are trying to access it.

See the Quirks, Caveats, and Gotchas In SQLite page for more on this topic.
DNSB is offline   Reply With Quote
Old 10-04-2020, 03:59 AM   #6
tycho
Member
tycho began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jun 2018
Device: samsung
yes, thanks, but you know that the other CLI commands are working with remote database (aka while calibre is running). And 'catalog' is a read-only operation.

So I'm confused why I can run search, add, set_metadata while calibre is running, but not 'catalog'.
tycho is offline   Reply With Quote
Old 10-04-2020, 04:05 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,853
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by tycho View Post

So I'm confused why I can run search, add, set_metadata while calibre is running, but not 'catalog'.
Because the catalog code was written assuming access to a database object.
kovidgoyal is offline   Reply With Quote
Old 10-06-2020, 08:15 AM   #8
tycho
Member
tycho began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jun 2018
Device: samsung
ok, thanks
tycho is offline   Reply With Quote
Reply

Tags
catalog, cli, remote library


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CLI catalog bib -> Values instance has no attribute 'bibfile_enc' tycho Library Management 13 10-06-2020 08:15 AM
Running Calibre CLI module, SYS arguments? tsar2512 Development 6 02-06-2018 12:05 PM
How to get Calibre 3 running on Raspberry Pi 3 running Raspbian Jessie? fivestones Calibre 6 01-25-2018 09:41 PM
calibredb catalog CLI error ilovejedd Library Management 4 02-06-2012 10:26 AM


All times are GMT -4. The time now is 08:24 AM.


MobileRead.com is a privately owned, operated and funded community.