jcklie / anki-maobi

máobĭ (毛笔) is an Anki add-on to create cards with writing quizzes for Hanzi (Chinese characters)
MIT License
51 stars 7 forks source link

Cannot enter the Maobi config. Get an error message when pressing "Maobi" button at the bottom #47

Closed Tofuu214 closed 3 months ago

Tofuu214 commented 4 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go into Anki note types
  2. Select Note type "Maobi (Ho Edition)"
  3. Press the Cards Button and get sent to the Template section where the HDML code is.
  4. Press Maobi Button at the bottom.

If possible, attach a minimal file that triggers the error. IDK what that is??

Expected behavior A clear and concise description of what you expected to happen. For me to be able to go into the config when I press the "Maobi button"

Error message If applicable, add the error message to help explain your problem. "Anki encountered a problem. Please follow the troubleshooting steps.

Add-ons possibly involved: ⁨maobi - Chinese Hanzi Writing Quizzes in Anki v0 5 2⁩"

WhatsApp Image 2024-07-03 at 18 30 17_402e756c

Please complete the following information:

Additional context Add any other context about the problem here.

For this "Ho Edition" note type I have made a lot of tweaks to the HDML code. Although im pretty sure that I had this error using the example deck provided before I had made any changes.

I am also using other addons such as "AwesomeTTS" it gives me an error message upon opening the Template section but it does not seem related to the error I want to attend to which is pressing the Maobi config button at the bottom.

Debug file if helpful:

Anki 23.12.1 (1a1d4d54) (ao) Python 3.9.15 Qt 6.6.1 PyQt 6.6.1 Platform: Windows-10-10.0.22631

Traceback (most recent call last): File "C:\Users\gamer\AppData\Roaming\Anki2\addons21\931477147\config.py", line 311, in maobi_button.clicked.connect(lambda: MaobiConfigDialog(cardlayout)) File "C:\Users\gamer\AppData\Roaming\Anki2\addons21\931477147\config.py", line 149, in init self._leniency = self._build_leniency_slider() File "C:\Users\gamer\AppData\Roaming\Anki2\addons21\931477147\config.py", line 206, in _build_leniency_slider slider = QSlider(Qt.Horizontal) AttributeError: type object 'Qt' has no attribute 'Horizontal'

===Add-ons (active)=== (add-on provided name [Add-on folder, installed at, version, is config changed]) AwesomeTTS - Add speech to your flashcards ['1436550454', 2024-06-01T15:05, 'None', ''] Image Occlusion Enhanced ['1374772155', 2022-04-09T08:15, 'None', ''] Remove Cloze Button and Hotkey ['1966460736', 2022-05-21T11:29, 'None', ''] Review Heatmap ['1771074083', 2022-06-30T02:43, 'None', ''] Speed Focus Mode auto-alert auto-reveal auto-answer ['1046608507', 2022-12-16T11:24, 'None', ''] Straight Reward ['957961234', 2023-11-01T14:11, 'None', ''] maobi - Chinese Hanzi Writing Quizzes in Anki v0 5 2 ['931477147', 2021-02-21T17:14, 'None', mod]

===IDs of active AnkiWeb add-ons=== 1046608507 1374772155 1436550454 1771074083 1966460736 931477147 957961234

===Add-ons (inactive)=== (add-on provided name [Add-on folder, installed at, version, is config changed])

jcklie commented 4 months ago

Hi, can you share me a deck with that card type so that I can reproduce this error?

Tofuu214 commented 4 months ago

Hi, Im not sure how I can upload it here. Could I send it via email?

jcklie commented 4 months ago

You can send it per mail, my email is in my profile.

Tofuu214 commented 3 months ago

Hi, I sent you my deck with the card type to your email a week and a few days ago. Just messaging here to let you know. Thanks for any help you can give :).

jcklie commented 3 months ago

Sorry for the slow response, I am quite busy with work and will move this week, will have a look soon.

jcklie commented 3 months ago

@Tofuu214 I updated the addon, please check whether that solves your issue.

Tofuu214 commented 3 months ago

Yes, this is great you have fixed the issue. Thank you for your help. image