m-rtin / anki-ipa

Anki add-on to insert IPA transcriptions
https://ankiweb.net/shared/info/799647424
GNU Affero General Public License v3.0
21 stars 12 forks source link

Error when use Anki IPA on MacOS #63

Open khiempx1 opened 1 year ago

khiempx1 commented 1 year ago

Describe the bug I encountered an error when using Anki IPA, with the error details as follows:

Anki 2.1.60 (76d88073) Python 3.9.15 Qt 6.3.2 PyQt 6.3.1
Platform: macOS-13.1-arm64-arm-64bit
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2023-03-13 22:32:05
Add-ons possibly involved: ⁨Anki IPA⁩

Caught exception:
Traceback (most recent call last):
  File "aqt.webview", line 46, in cmd
  File "aqt.webview", line 153, in _onCmd
  File "aqt.webview", line 662, in _onBridgeCmd
  File "decorator", line 232, in fun
  File "anki.hooks", line 89, in decorator_wrapper
  File "anki.hooks", line 86, in repl
  File "/Users/khiempx/Library/Application Support/Anki2/addons21/799647424/__init__.py", line 186, in on_bridge_cmd
    _old(editor, command)
  File "aqt.editor", line 469, in onBridgeCmd
  File "/Users/khiempx/Library/Application Support/Anki2/addons21/799647424/__init__.py", line 60, in paste_ipa
    ipa = parse_ipa_transcription.transcript(words=words, language=lang_alias)
  File "/Users/khiempx/Library/Application Support/Anki2/addons21/799647424/parse_ipa_transcription.py", line 136, in transcript
    transcription_method = transcription_methods[language]
KeyError: ''