Polishing individual books bear no problem but when polishing multiple books, about half of the jobs randomly fail with an error similar to this. These same books can be polished without any error if the process is repeated.
Code:
Polish book 1 of 6 (BookName)
Found existing cover page
Python function terminated unexpectedly
[Error 5] Access is denied (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 114, in main
File "site.py", line 88, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 209, in main
File "site-packages\calibre\ebooks\oeb\polish\main.py", line 291, in gui_polish
File "site-packages\calibre\ebooks\oeb\polish\main.py", line 269, in polish
File "site-packages\calibre\ebooks\oeb\polish\main.py", line 258, in polish_one
File "site-packages\calibre\ebooks\oeb\polish\hyphenation.py", line 16, in add_soft_hyphens
File "site-packages\calibre\utils\hyphenation\hyphenate.py", line 116, in add_soft_hyphens_to_html
File "site-packages\calibre\utils\hyphenation\hyphenate.py", line 102, in add_to_tag
File "site-packages\backports\functools_lru_cache.py", line 152, in wrapper
File "site-packages\calibre\utils\hyphenation\hyphenate.py", line 27, in dictionary_for_locale
File "site-packages\calibre\utils\hyphenation\dictionaries.py", line 110, in path_to_dictionary
File "site-packages\calibre\utils\hyphenation\dictionaries.py", line 72, in extract_dicts
WindowsError: [Error 5] Access is denied
Using Calibre 4.19 on recently resetted Windows 10 2004 64-bit, running on Ryzen 7 1700, 8GB RAM. Also happened on Calibre 4.18 and previous Windows installation too. Still happening even when Kaspersky antivirus protection is disabled.