On Windows, running python install_yomitan_api.py and selecting the chromium option crashes with:
Traceback (most recent call last):
File "C:\Tools\yomitan-api-master\install_yomitan_api.py", line 206, in <module>
winreg.CreateKey(winreg.HKEY_CURRENT_USER, manifest_install_data["registry_path"])
KeyError: 'registry_path'
Cause: In PLATFORM_DATA["windows"]["manifest_install_data"], every browser entry (firefox, chrome, edge, brave) defines a registry_path key, but chromium does not:
"chromium": {
"methods": ["file", "registry"],
"path": DIR,
},
Since "registry" is still listed under "methods", the script tries to access the missing registry_path key and throws a KeyError.
Suggested fix: add a registry_path entry for chromium, e.g.:
"chromium": {
"methods": ["file", "registry"],
"path": DIR,
"registry_path": f"SOFTWARE\\Chromium\\NativeMessagingHosts\\{NAME}",
},
This resolved the crash for me locally.
On Windows, running
python install_yomitan_api.pyand selecting thechromiumoption crashes with:Cause: In
PLATFORM_DATA["windows"]["manifest_install_data"], every browser entry (firefox,chrome,edge,brave) defines aregistry_pathkey, butchromiumdoes not:Since
"registry"is still listed under"methods", the script tries to access the missingregistry_pathkey and throws aKeyError.Suggested fix: add a
registry_pathentry forchromium, e.g.:This resolved the crash for me locally.