Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-18-2020, 05:46 AM   #1
Bertrand
Zealot
Bertrand began at the beginning.
 
Posts: 124
Karma: 10
Join Date: Dec 2008
Location: France
Device: None
Calibre 5.71 - CLI - Message error when adding books/exporting data

Windows 10 - Calibre 5.71

When I add books or export data through a batch file, I get this error message (since calibre v5.xx) :

Code:
Could not contact the running instance of calibre (<-- free translation from french...)
Failed to connect to Listener at: \\.\pipe\CalibreGUI-adminx with error: QLocalSocket::connectToServer: Invalid name
QWidget: Must construct a QApplication before a QWidget
Despite this message, everything works as expected: books are added, exports are done correctly, so I just wanted to point out this little problem.
Bertrand is offline   Reply With Quote
Old 12-18-2020, 06:44 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: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
What is your batch file doing exactly?
kovidgoyal is online now   Reply With Quote
Advert
Old 12-18-2020, 07:27 AM   #3
Bertrand
Zealot
Bertrand began at the beginning.
 
Posts: 124
Karma: 10
Join Date: Dec 2008
Location: France
Device: None
Here it is (only relevant parts, the whole script is checking various things before, not related to calibre)

Add books :
Code:
calibre-debug -s
calibredb --library-path %biblio% add -d %dest% 1>nul 2>&1
Export all data :
Code:
calibre-debug --export-all-calibre-data %destination% %calibre% > nul
Edit : I've just found out, if I remove the redirections ( 1>nul 2>&1), this message doesn't appear anymore.
Strange, I've been using this script for years.
Bertrand is offline   Reply With Quote
Old 12-18-2020, 07:56 AM   #4
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: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Well the first couple of lines of the eror message will happen if there was no running calibre to shutdown. The last lineis a bug and will be fixed in the next release. Note that if you want to avoid the first two lines use

calibre -s


instead of

calibre-debug -s
kovidgoyal is online now   Reply With Quote
Old 12-18-2020, 09:05 AM   #5
Bertrand
Zealot
Bertrand began at the beginning.
 
Posts: 124
Karma: 10
Join Date: Dec 2008
Location: France
Device: None
Quote:
Originally Posted by kovidgoyal View Post
Note that if you want to avoid the first two lines use
calibre -s

instead of
calibre-debug -s
Noted. Thanks !
Bertrand is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre issues with adding books using cli klackerz Calibre 1 07-06-2018 06:06 AM
Adding books on cli leads to error johnny_cgn Calibre 11 06-26-2018 04:12 AM
Error message - adding books Squash0001 Library Management 3 01-24-2015 12:04 PM
Error message when auto adding books Rachel Library Management 3 04-08-2012 12:27 PM
Calibre Error Message - Now I have NO BOOKS SmiLynnLady Calibre 10 07-14-2011 05:12 AM


All times are GMT -4. The time now is 05:07 AM.


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