Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-01-2019, 12:38 PM   #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, 01: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: 36,061
Karma: 15014853
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:43 PM
Python error when accessing content server with calibredb drawson1 Library Management 1 06-19-2018 01:08 PM
Python newbie, need help about print statement debug TonyAn Calibre 3 05-17-2017 04:46 PM
How to setup Python debug environment for Calibre Recipes huang5307 Recipes 9 03-03-2016 03:35 PM
win7-debug-python jaapx Calibre 2 10-23-2015 01:11 AM


All times are GMT -4. The time now is 07:03 PM.


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