migaku-official / Migaku-Dictionary-Addon

Migaku Dictionary allows users to lookup word definitions, export definitions to their cards in real-time, hear word audio and see word frequency, etc. If you have an issue please report it in the "Issues" tab. Reponses to issues can be slow on GitHub, for faster support consider joining our Discord server through our Patreon page.
GNU General Public License v3.0
64 stars 24 forks source link

Bug in MIA Dictionary #1

Closed renrocks closed 4 years ago

renrocks commented 4 years ago

Type:

Environment:

I'm going to open a PR to resolve the issue:

Description: [Hello, Matt and Yoga, thank you for the new addon. When I tried to search or use the MIA Dictionary, it's showing the following error: Whenever I search or use the MIA dictionary, it is showing the following error. If you could, please resolve it for me. Thank you again for everything

Debug info: Anki 2.1.15 (442df9d6) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3 Platform: Windows 10 Flags: frz=True ao=True sv=1 Caught exception: File "C:\Users\Raj\AppData\Roaming\Anki2\addons21\1655992655\main.py", line 535, in dictionaryInit mw.miaDictionary = DictInterface(mw, addon_path, welcomeScreen, term = term) File "C:\Users\Raj\AppData\Roaming\Anki2\addons21\1655992655\midict.py", line 797, in init self.startUp(term) File "C:\Users\Raj\AppData\Roaming\Anki2\addons21\1655992655\midict.py", line 871, in startUp self.dict.loadHTMLURL(html, url) File "C:\Users\Raj\AppData\Roaming\Anki2\addons21\1655992655\midict.py", line 65, in loadHTMLURL self._page.setHtml(html, url) <class 'TypeError'>: setHtmlWithBaseurl() takes 2 positional arguments but 3 were given ]

renrocks commented 4 years ago

When I tried to click MIA>> Dictionary settings :(
Debug info: Anki 2.1.15 (442df9d6) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3 Platform: Windows 10 Flags: frz=True ao=True sv=1

Caught exception: File "C:\Users\Raj\AppData\Roaming\Anki2\addons21\1655992655\main.py", line 503, in openDictionarySettings mw.dictSettings = SettingsGui(mw, addon_path, openDictionarySettings) File "C:\Users\Raj\AppData\Roaming\Anki2\addons21\1655992655\addonSettings.py", line 92, in init self.userGuideTab = self.getUserGuideTab() File "C:\Users\Raj\AppData\Roaming\Anki2\addons21\1655992655\addonSettings.py", line 536, in getUserGuideTab guide._page.setHtml(html, url) <class 'TypeError'>: setHtmlWithBaseurl() takes 2 positional arguments but 3 were given