Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error handling: #11

Open
chezfo opened this issue Jul 1, 2024 · 1 comment
Open

Error handling: #11

chezfo opened this issue Jul 1, 2024 · 1 comment

Comments

@chezfo
Copy link

chezfo commented Jul 1, 2024

Anki 24.06.3 (d678e393) (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.22631

Traceback (most recent call last):
File "aqt.webview", line 637, in handler
File "aqt.editor", line 634, in
File "C:\Users\username\AppData\Roaming\Anki2\addons21\2087444887\main.py", line 68, in on_editor_button_clicked
dialog = WiktionaryFetcherDialog(editor.mw, editor.parentWindow, [editor.note])
File "C:\Users\username\AppData\Roaming\Anki2\addons21\2087444887\gui\main.py", line 47, in init
super().init(parent)
File "C:\Users\username\AppData\Roaming\Anki2\addons21\2087444887\gui\dialog.py", line 13, in init
super().init(name, parent, flags)
File "C:\Users\username\AppData\Roaming\Anki2\addons21\2087444887\vendor\ankiutils\gui\dialog.py", line 20, in init
self.setup_ui()
File "C:\Users\username\AppData\Roaming\Anki2\addons21\2087444887\gui\main.py", line 69, in setup_ui
self.form.dictionaryComboBox.addItems(get_dict_names())
File "C:\Users\username\AppData\Roaming\Anki2\addons21\2087444887\utils.py", line 21, in get_dict_names
return [p.stem for p in get_dicts()]
File "C:\Users\username\AppData\Roaming\Anki2\addons21\2087444887\utils.py", line 17, in get_dicts
return [p for p in (consts.dicts_dir).iterdir() if p.is_file()]
File "C:\Users\username\AppData\Roaming\Anki2\addons21\2087444887\utils.py", line 17, in
return [p for p in (consts.dicts_dir).iterdir() if p.is_file()]
File "pathlib", line 1160, in iterdir
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\Users\username\AppData\Roaming\Anki2\addons21\2087444887\user_files\dictionaries'

@abdnh
Copy link
Owner

abdnh commented Jul 2, 2024

You can work around the error for now by importing a dictionary from Tools > Wiktionary > Import a dictionary, which you have to do anyway for the add-on to be useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants