View Single Post
Old 12-05-2025, 10:49 AM   #1
m.s
Enthusiast
m.s possesses cleverness exceeding the boundaries of Space and Timem.s possesses cleverness exceeding the boundaries of Space and Timem.s possesses cleverness exceeding the boundaries of Space and Timem.s possesses cleverness exceeding the boundaries of Space and Timem.s possesses cleverness exceeding the boundaries of Space and Timem.s possesses cleverness exceeding the boundaries of Space and Timem.s possesses cleverness exceeding the boundaries of Space and Timem.s possesses cleverness exceeding the boundaries of Space and Timem.s possesses cleverness exceeding the boundaries of Space and Timem.s possesses cleverness exceeding the boundaries of Space and Timem.s possesses cleverness exceeding the boundaries of Space and Time
 
m.s's Avatar
 
Posts: 34
Karma: 49174
Join Date: Oct 2012
Device: Bookeens, Kindles, Kobos, PocketBooks, Tolinos
Calibre-AI with Ollama: TypeError:can only concatenate str (not "list") to str

I can't get the AI summary with Ollama to work. Calibre is throwing this error message:

Code:
calibre, version 8.16.1
FEHLER: Unbehandelter Ausnahmefehler: <b>TypeError</b>:can only concatenate str (not "list") to str

calibre 8.16.1  embedded-python: True
macOS-26.1-arm64-arm-64bit Darwin ('64bit', '')
('Darwin', '25.1.0', 'Darwin Kernel Version 25.1.0: Mon Oct 20 19:32:47 PDT 2025; root:xnu-12377.41.6~2/RELEASE_ARM64_T8103')
Python 3.11.14
OSX: ('26.1', ('', '', ''), 'arm64')
Interface language: de
EXE path: /Applications/calibre.app/Contents/MacOS/calibre
Successfully initialized third party plugins: DeDRM (10, 0, 3) && Access Aide (0, 1, 15) && Check Books (0, 2, 0) && Count Pages (1, 14, 4) && DNB_DE (3, 2, 5) && Ebook Translator (2, 4, 1) && EpubSplit (3, 12, 0) && Find Duplicates (1, 10, 9) && Hyphenate This! (0, 1, 4) && Set KFX metadata (from KFX Output) (2, 18, 0) && KFX Output (2, 18, 0) && Mass Search-Replace (1, 8, 5) && Modify ePub (1, 8, 8) && PocketBook632 (1, 0, 2) && Pocketbook Collections (1, 2, 6) && Quality Check (1, 14, 6) && View Manager (1, 10, 3)
Traceback (most recent call last):
  File "calibre/gui2/llm.py", line 449, in on_chat_link_clicked
  File "calibre/gui2/dialogs/llm_book.py", line 214, in handle_chat_link
  File "calibre/gui2/dialogs/llm_book.py", line 220, in activate_action
  File "calibre/gui2/llm.py", line 349, in start_api_call
  File "calibre/gui2/dialogs/llm_book.py", line 235, in create_initial_messages
  File "calibre/gui2/dialogs/llm_book.py", line 53, in format_books_for_query
  File "calibre/gui2/dialogs/llm_book.py", line 44, in format_book_for_query
TypeError: can only concatenate str (not "list") to str
My AI settings are in attached screenshot.
Attached Thumbnails
Click image for larger version

Name:	SCR-20251205-nxur.png
Views:	59
Size:	110.5 KB
ID:	219572  
m.s is offline   Reply With Quote