View Single Post
Old 10-02-2010, 04:07 PM   #1
_Em
Junior Member
_Em began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Sep 2010
Device: iPod
calibredb update bug with 0.7.21?

I just upgraded to 0.7.21, and discovered that calibre_guess_and_add_isbn is suddenly broken. Error below:

Python function terminated unexpectedly: write_dirtied() takes exactly 1 argument (0 given)
Traceback (most recent call last):
File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.6/site.py", line 147, in main
return run_entry_point()
File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.6/site.py", line 116, in run_entry_point
return getattr(pmod, func)()
File "site-packages/calibre/library/cli.py", line 1049, in main
File "site-packages/calibre/library/cli.py", line 482, in command_set_metadata
File "site-packages/calibre/library/cli.py", line 459, in do_set_metadata
TypeError: write_dirtied() takes exactly 1 argument (0 given)
Traceback (most recent call last):
File "/usr/local/bin/calibre_guess_and_add_isbn", line 8, in <module>
load_entry_point('mekk.calibre==1.1.1', 'console_scripts', 'calibre_guess_and_add_isbn')()
File "build/bdist.macosx-10.6-universal/egg/mekk/calibre/scripts/guess_and_add_isbn.py", line 159, in run
File "build/bdist.macosx-10.6-universal/egg/mekk/calibre/calibre_util.py", line 159, in save_isbn
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 462, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['calibredb', 'set_metadata', '23154', '/var/folders/sk/sk0vYj+4EjqXI6RkRVnwXE+++TI/-Tmp-/tmpdlLEjk.opf']' returned non-zero exit status 255

This didn't happen with 0.7.20; I've verified that the command line tools are properly symlinked.

It appears that the opf file gets correctly generated by the script, but then calibredb set_metadata fails on update.

When running it by hand, I get:
Python function terminated unexpectedly: write_dirtied() takes exactly 1 argument (0 given)
Traceback (most recent call last):
File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.6/site.py", line 147, in main
return run_entry_point()
File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.6/site.py", line 116, in run_entry_point
return getattr(pmod, func)()
File "site-packages/calibre/library/cli.py", line 1049, in main
File "site-packages/calibre/library/cli.py", line 482, in command_set_metadata
File "site-packages/calibre/library/cli.py", line 459, in do_set_metadata
TypeError: write_dirtied() takes exactly 1 argument (0 given)


However, adding the data manually through the gui edit window works perfectly????

{edit:} rolled back to 0.7.20 and everything works. So I'm using 0.7.20 for cmdline and 21 for gui

Last edited by _Em; 10-02-2010 at 04:22 PM.
_Em is offline   Reply With Quote