View Single Post
Old 04-17-2011, 07:03 AM   #1
webwizard
Member
webwizard began at the beginning.
 
webwizard's Avatar
 
Posts: 20
Karma: 10
Join Date: Feb 2011
Device: Kindle DX
calibredb strange behaviour

I am still missing something.

I try to pull out the OPF structure using:

Code:
calibredb show_metadata --as-opf 1127 >zzzzz.txt
and immediately typing

Code:
calibredb set_metadata 1127 zzzzz.txt
produces this error:
Code:
Python function terminated unexpectedly
  'charmap' codec can't encode characters in position 280-283: character maps to
 <undefined> (Error Code: 1)
Traceback (most recent call last):
  File "site.py", line 103, in main
  File "site.py", line 85, in run_entry_point
  File "site-packages\calibre\library\cli.py", line 1183, in main
  File "site-packages\calibre\library\cli.py", line 483, in command_set_metadata

  File "site-packages\calibre\library\cli.py", line 459, in do_set_metadata
  File "site-packages\calibre\library\cli.py", line 429, in do_show_metadata
  File "encodings\cp1252.py", line 12, in encode
UnicodeEncodeError: 'charmap' codec can't encode characters in position 280-283:
 character maps to <undefined>
What's the catch ? I attached the xxxxx.txt file and the original metadata.opf from Calibre DB.
Attached Files
File Type: txt zzzzz.txt (2.4 KB, 568 views)
File Type: opf metadata.opf (2.6 KB, 555 views)
webwizard is offline   Reply With Quote