Quote:
Originally Posted by davidfor
And for a test column, using the templates:
Code:
{:'raw_field('#pages')'}
Code:
program:
raw_field('#words')
The latter gives:
Code:
Traceback (most recent call last):
File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 633, in safe_format
File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 598, in evaluate
File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 522, in _eval_program
File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 319, in program
File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 324, in expression_list
File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 424, in expr
File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 422, in expr
File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 400, in do_node_raw_field
File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 392, in do_node_raw_field
File "E:\Development\GitHub\calibre\src\calibre\utils\formatter.py", line 311, in error
ValueError: Interpreter: Unknown field #pages
Error evaluating column named: #story_length
|
The first one in TPM works?
Neither fail for me using an integer column. Would you be willing to send me your metadata.db so I can debug this? If so, send it to calibre at charleshaley dot org.
EDIT: never mind. I installed the newest version of the calibre binary and it fails for me too. Don't know why yet.