vonpetersenn / Pleco-to-Anki

An AddOn for the flashcard App to import bookmark files from the chinese dictionary app Pleco.
The Unlicense
9 stars 3 forks source link

Import error #4

Closed radiant-ape closed 1 year ago

radiant-ape commented 1 year ago

Hi, really excited to use this! I just downloaded and I'm getting:

Debug info: Anki 2.1.66 (70506aeb) Python 3.9.15 Qt 6.5.2 PyQt 6.5.2 Platform: Windows-10-10.0.19041 Flags: frz=True ao=True sv=3 Add-ons, last update check: 2023-10-02 10:15:25 Add-ons possibly involved: ⁨Pleco to Anki⁩

Caught exception: Traceback (most recent call last): File "C:\Users\User\AppData\Roaming\Anki2\addons21\pleco_to_anki__init__.py", line 48, in excecuted_function all_bookmarks = All_Bookmarks(configs.file_name) File "C:\Users\User\AppData\Roaming\Anki2\addons21\pleco_to_anki\pleco\All_Bookmarks.py", line 5, in init self.raw_data = delete_category_headings(self.raw_data) NameError: name 'delete_category_headings' is not defined

Any idea what I can do to fix?

vonpetersenn commented 1 year ago

Are you using version 1.0.1 or 1.0.0? I think I might have made an error in version 1.0.1 that is causing the issue. I will have a better look at it later and give more info.

radiant-ape commented 1 year ago

This is on 1.0.1

On Mon, Oct 2, 2023 at 8:41 PM P. v Petersenn @.***> wrote:

Are you using version 1.0.1 or 1.0.0? I think I might have made an error in version 1.0.1 that is causing the issue. I will have a better look at it later and give more info.

— Reply to this email directly, view it on GitHub https://github.com/vonpetersenn/Pleco-to-Anki/issues/4#issuecomment-1742943868, or unsubscribe https://github.com/notifications/unsubscribe-auth/BC7FYRQPIRMHVLL2QG5DVB3X5KZA5AVCNFSM6AAAAAA5O3PTICVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBSHE2DGOBWHA . You are receiving this because you authored the thread.Message ID: @.***>

vonpetersenn commented 1 year ago

The error should be resolved in the newest version, that I just uploaded. Please uninstall in install again and let me know if it works now. Thanks.

radiant-ape commented 1 year ago

It's working perfectly now! Thanks a ton.