Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 07-01-2019, 11:38 AM   #1
plo233
Member
plo233 began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Sep 2017
Device: Android tablet
How to debug calibredb error using Python tools?

I'm getting the following error when trying to add books using the calibredb executable file on Windows. Probably something messed up with my new calibre server install, as it worked before. Is there a way for me to debug the Python script (eg using pdb)? I'm well-versed in Python

C:\>calibredb add --with-library=http://192.168.1.100:38203 --username=admin --password=password "C:\dl\watch.epub"
Traceback (most recent call last):
File "site-packages/calibre/srv/cdb.py", line 48, in cdb_run
File "site-packages/calibre/db/cli/cmd_add.py", line 65, in implementation
File "site-packages/calibre/db/cli/cmd_add.py", line 40, in book
ValueError: too many values to unpack
plo233 is offline   Reply With Quote
Old 07-01-2019, 12:39 PM   #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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://manual.calibre-ebook.com/develop.html
kovidgoyal is offline   Reply With Quote
Advert
Reply

Tags
calibredb, calibredb calibre-server, python


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
3.34 calibre-debug runs the script code under Python 3 EbokJunkie Conversion 2 11-20-2018 07:43 PM
Python error when accessing content server with calibredb drawson1 Library Management 1 06-19-2018 12:08 PM
Python newbie, need help about print statement debug TonyAn Calibre 3 05-17-2017 03:46 PM
How to setup Python debug environment for Calibre Recipes huang5307 Recipes 9 03-03-2016 02:35 PM
win7-debug-python jaapx Calibre 2 10-23-2015 12:11 AM


All times are GMT -4. The time now is 04:32 AM.


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