Import of words into dictionary fails

Bug #2064887 reported by Rob Managan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

I went to preferences, manage dictionaries, manage User Dictionaries, chose one I recently added, selected import list of words, used the past from clipboard button to get words into the text box, clicked the OK button and got this error.

The error report gave this info:

calibre, version 7.9.0
ERROR: Unhandled exception: <b>TypeError</b>:argument 1 must be str, not tuple

calibre 7.9 embedded-python: True
macOS-14.4.1-arm64-arm-64bit Darwin ('64bit', '')
('Darwin', '23.4.0', 'Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:25 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6030')
Python 3.11.5
OSX: ('14.4.1', ('', '', ''), 'arm64')
Interface language: None
EXE path: /Applications/calibre.app/Contents/MacOS/calibre-parallel
Successfully initialized third party plugins: DeDRM (10, 0, 3)
Traceback (most recent call last):
  File "calibre/gui2/tweak_book/spell.py", line 497, in import_words
  File "calibre/spell/dictionary.py", line 294, in add_to_user_dictionary
  File "calibre/spell/dictionary.py", line 279, in add_user_words
TypeError: argument 1 must be str, not tuple

Rob Managan (ramanagan)
summary: - Import of words into dictionary files
+ Import of words into dictionary fails
Revision history for this message
Kovid Goyal (kovid) wrote :

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.