View Single Post
Old 09-13-2020, 08:56 AM   #385
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,448
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by davidfor View Post
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.

Last edited by chaley; 09-13-2020 at 09:10 AM.
chaley is offline