Error when using Korean Support

Here is the notification that I received each time I add in a new Korean word. It looks like that. “Korean Support” Add-on is the problem because when I turn it off, the app work just fine.
How can I solve this problem please? thank you.

Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you’ve discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.26 (70784154) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-06-26 17:40:42

— Logging error —
Traceback (most recent call last):
File “logging_init_.py”, line 1084, in emit
File “C:\python38\lib\encodings\cp1252.py”, line 19, in encode
UnicodeEncodeError: ‘charmap’ codec can’t encode characters in position 85-86: character maps to
Call stack:
File “runanki”, line 4, in
File “aqt_init_.py”, line 368, in run
File “aqt_init_.py”, line 514, in run
File “aqt\webview.py”, line 34, in cmd
File “aqt\webview.py”, line 114, in onCmd
File “aqt\webview.py”, line 518, in onBridgeCmd
File “aqt\editor.py”, line 393, in onBridgeCmd
File “aqt\gui_hooks.py”, line 1202, in call
File “lib\site-packages\anki\hooks.py”, line 594, in runFilter
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\edit.py”, line 63, in onFocusLost
if updateFields(note, field, allFields):
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\edit_behavior.py”, line 80, in updateFields
update_Sound_fields(fieldsCopy[currentField], fieldsCopy)
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\edit_behavior.py”, line 48, in update_Sound_fields
s = sound(hangul)
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\edit_functions.py”, line 172, in sound
return “[sound:{}]”.format(tts.download(text, “ko”, service=source))
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\tts.py”, line 41, in download
tts = NaverTTS(text, lang=lang, speed=speed, gender=gender)
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\lib\navertts\tts.py”, line 115, in init
log.debug("%s: %s", k, v)
File "logging_init
.py", line 1422, in debug
File "logging_init
.py", line 1577, in log
File "logging_init
.py", line 1587, in handle
File "logging_init
.py", line 1649, in callHandlers
File “logging_init_.py”, line 950, in handle
File “logging_init_.py”, line 1183, in emit
File “logging_init_.py”, line 1089, in emit
Message: ‘%s: %s’
Arguments: (‘text’, ‘필통’)
— Logging error —
Traceback (most recent call last):
File “logging_init_.py”, line 1084, in emit
File “C:\python38\lib\encodings\cp1252.py”, line 19, in encode
UnicodeEncodeError: ‘charmap’ codec can’t encode character ‘\uff1f’ in position 160: character maps to
Call stack:
File “runanki”, line 4, in
File “aqt_init_.py”, line 368, in run
File “aqt_init_.py”, line 514, in run
File “aqt\webview.py”, line 34, in cmd
File “aqt\webview.py”, line 114, in onCmd
File “aqt\webview.py”, line 518, in onBridgeCmd
File “aqt\editor.py”, line 393, in onBridgeCmd
File “aqt\gui_hooks.py”, line 1202, in call
File “lib\site-packages\anki\hooks.py”, line 594, in runFilter
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\edit.py”, line 63, in onFocusLost
if updateFields(note, field, allFields):
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\edit_behavior.py”, line 80, in updateFields
update_Sound_fields(fieldsCopy[currentField], fieldsCopy)
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\edit_behavior.py”, line 48, in update_Sound_fields
s = sound(hangul)
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\edit_functions.py”, line 172, in sound
return “[sound:{}]”.format(tts.download(text, “ko”, service=source))
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\tts.py”, line 41, in download
tts = NaverTTS(text, lang=lang, speed=speed, gender=gender)
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\lib\navertts\tts.py”, line 115, in init
log.debug("%s: %s", k, v)
File "logging_init
.py", line 1422, in debug
File "logging_init
.py", line 1577, in log
File "logging_init
.py", line 1587, in handle
File "logging_init
.py", line 1649, in callHandlers
File “logging_init_.py”, line 950, in handle
File “logging_init_.py”, line 1183, in emit
File “logging_init_.py”, line 1089, in emit
Message: ‘%s: %s’
Arguments: (‘tokenizer_func’, <bound method Tokenizer.run of re.compile(’(?<=\?).|(?<=!).|(?<=?).|(?<=!).|(?<!\.[a-z])\. |(?<!\.[a-z]), |(?<!\d):|:|\]|。|،|;|\)|,|、|¿|…|¡|\(|—|‥|\[|\\n’, re.IGNORECASE) from: [<function tone_marks at 0x00000127013CE0D0>, <function period_comma at 0x00000127013CE1F0>, <function colon at 0x00000127013CE280>, <function other_punctuation at 0x00000127013CE310>]>)
— Logging error —
Traceback (most recent call last):
File “logging_init_.py”, line 1084, in emit
File “C:\python38\lib\encodings\cp1252.py”, line 19, in encode
UnicodeEncodeError: ‘charmap’ codec can’t encode characters in position 138-139: character maps to
Call stack:
File “runanki”, line 4, in
File “aqt_init_.py”, line 368, in run
File “aqt_init_.py”, line 514, in run
File “aqt\webview.py”, line 34, in cmd
File “aqt\webview.py”, line 114, in onCmd
File “aqt\webview.py”, line 518, in onBridgeCmd
File “aqt\editor.py”, line 393, in onBridgeCmd
File “aqt\gui_hooks.py”, line 1202, in call
File “lib\site-packages\anki\hooks.py”, line 594, in runFilter
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\edit.py”, line 63, in onFocusLost
if updateFields(note, field, allFields):
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\edit_behavior.py”, line 80, in updateFields
update_Sound_fields(fieldsCopy[currentField], fieldsCopy)
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\edit_behavior.py”, line 48, in update_Sound_fields
s = sound(hangul)
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\edit_functions.py”, line 172, in sound
return “[sound:{}]”.format(tts.download(text, “ko”, service=source))
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\tts.py”, line 44, in download
tts.save(path)
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\lib\navertts\tts.py”, line 265, in save
self.write_to_fp(f)
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\lib\navertts\tts.py”, line 208, in write_to_fp
log.debug(“data-%i: %s”, idx, data)
File "logging_init
.py", line 1422, in debug
File "logging_init
.py", line 1577, in log
File "logging_init
.py", line 1587, in handle
File "logging_init
.py", line 1649, in callHandlers
File “logging_init_.py”, line 950, in handle
File “logging_init_.py”, line 1183, in emit
File “logging_init_.py”, line 1089, in emit
Message: ‘data-%i: %s’
Arguments: (0, ‘pitch":0,“speaker”:“mijin”,“speed”: “0”,“text”:“필통”}’)
— Logging error —
Traceback (most recent call last):
File “logging_init_.py”, line 1084, in emit
File “C:\python38\lib\encodings\cp1252.py”, line 19, in encode
UnicodeEncodeError: ‘charmap’ codec can’t encode characters in position 195-196: character maps to
Call stack:
File “runanki”, line 4, in
File “aqt_init_.py”, line 368, in run
File “aqt_init_.py”, line 514, in run
File “aqt\webview.py”, line 34, in cmd
File “aqt\webview.py”, line 114, in onCmd
File “aqt\webview.py”, line 518, in onBridgeCmd
File “aqt\editor.py”, line 393, in onBridgeCmd
File “aqt\gui_hooks.py”, line 1202, in call
File “lib\site-packages\anki\hooks.py”, line 594, in runFilter
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\edit.py”, line 63, in onFocusLost
if updateFields(note, field, allFields):
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\edit_behavior.py”, line 80, in updateFields
update_Sound_fields(fieldsCopy[currentField], fieldsCopy)
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\edit_behavior.py”, line 48, in update_Sound_fields
s = sound(hangul)
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\edit_functions.py”, line 172, in sound
return “[sound:{}]”.format(tts.download(text, “ko”, service=source))
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\tts.py”, line 44, in download
tts.save(path)
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\lib\navertts\tts.py”, line 265, in save
self.write_to_fp(f)
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\lib\navertts\tts.py”, line 246, in write_to_fp
log.debug(“part-%i written to %s”, idx, fp)
File "logging_init
.py", line 1422, in debug
File "logging_init
.py", line 1577, in log
File "logging_init
.py", line 1587, in handle
File "logging_init
.py", line 1649, in callHandlers
File “logging_init_.py”, line 950, in handle
File “logging_init_.py”, line 1183, in emit
File “logging_init_.py”, line 1089, in emit
Message: ‘part-%i written to %s’
Arguments: (0, <io.BufferedWriter name=‘C:\Users\maing\AppData\Roaming\Anki2\User 1\collection.media\필통_N_ko.mp3’>)
— Logging error —
Traceback (most recent call last):
File "logging_init
.py", line 1084, in emit
File “C:\python38\lib\encodings\cp1252.py”, line 19, in encode
UnicodeEncodeError: ‘charmap’ codec can’t encode characters in position 145-146: character maps to
Call stack:
File “runanki”, line 4, in
File “aqt_init_.py”, line 368, in run
File “aqt_init_.py”, line 514, in run
File “aqt\webview.py”, line 34, in cmd
File “aqt\webview.py”, line 114, in onCmd
File “aqt\webview.py”, line 518, in onBridgeCmd
File “aqt\editor.py”, line 393, in onBridgeCmd
File “aqt\gui_hooks.py”, line 1202, in call
File “lib\site-packages\anki\hooks.py”, line 594, in runFilter
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\edit.py”, line 63, in onFocusLost
if updateFields(note, field, allFields):
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\edit_behavior.py”, line 80, in updateFields
update_Sound_fields(fieldsCopy[currentField], fieldsCopy)
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\edit_behavior.py”, line 48, in update_Sound_fields
s = sound(hangul)
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\edit_functions.py”, line 172, in sound
return “[sound:{}]”.format(tts.download(text, “ko”, service=source))
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\tts.py”, line 44, in download
tts.save(path)
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1336389630\lib\navertts\tts.py”, line 266, in save
log.debug(“Saved to %s”, savefile)
File "logging_init
.py", line 1422, in debug
File "logging_init
.py", line 1577, in log
File "logging_init
.py", line 1587, in handle
File "logging_init
.py", line 1649, in callHandlers
File “logging_init_.py”, line 950, in handle
File “logging_init_.py”, line 1183, in emit
File “logging_init_.py”, line 1089, in emit
Message: ‘Saved to %s’
Arguments: (‘C:\Users\maing\AppData\Roaming\Anki2\User 1\collection.media\필통_N_ko.mp3’,)

1 Like

Hi, @mainguyenhuong!

Try creating this same card after clearing out the Sound field. If you’re able to successfully create a card, then it means the problem is that your .mp3 files contain Korean characters and you will have to rename those files and update the Sound fields accordingly.

Cheers,
Andrew

1 Like