I have a similar issue with Calibre on Windows 10 when trying to add Danish-language hyphenation using Hyphenate-this. I use
this Danish dictionary and get the below error. I get no error when using the extension with English-language dictionary files. I was unable to find an alternative Danish dictionary file, so I don’t know for sure if the fault lies with the dictionary file itself. But this particular dictionary file appears to be more or less the only open source Danish dictionary file on the market, and the project looks quite serious, so I doubt that the file itself is corrupted.
Code:
calibre, version 5.41.0
ERROR: Unhandled exception: <b>ValueError</b>:invalid literal for int() with base 10: '31 al:a-våbenet al:a-våbnet al:a-våbenets al:a-våbnets al:a-våbens al:a-våbnene al:a-våbnenes'
calibre 5.41 embedded-python: True is64bit: False
Windows-10-10.0.19041 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Hyphenate This! (0, 1, 3)
Traceback (most recent call last):
File "calibre_plugins.hyphenatethis.hyphenatethisaction", line 120, in hyphenate
File "calibre_plugins.hyphenatethis.hyphenatethisaction", line 94, in _select_books
File "calibre_plugins.hyphenatethis.hyphenator.hyphenator", line 178, in __init__
File "calibre_plugins.hyphenatethis.hyphenator.hyphenator", line 109, in __init__
File "calibre_plugins.hyphenatethis.hyphenator.hyphenator", line 51, in __init__
ValueError: invalid literal for int() with base 10: '31 al:a-våbenet al:a-våbnet al:a-våbenets al:a-våbnets al:a-våbens al:a-våbnene al:a-våbnenes'