Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Problems with and after update #30

Closed
onaphta opened this issue Dec 20, 2018 · 3 comments
Closed

Problems with and after update #30

onaphta opened this issue Dec 20, 2018 · 3 comments
Assignees
Milestone

Comments

@onaphta
Copy link

onaphta commented Dec 20, 2018

Describe the bug
Hi, I tried to update the addon but got an error message. After I updated it using debug mode, I can add new cards but I get an error message every time I try to make changes to an aready existing card.

To Reproduce

Error message while updating:

Anki 2.1.5 Python 3.6.1 Qt 5.9.2 PyQt 5.9
Platform: Windows 10
Flags: frz=True ao=True sv=1

Caught exception:
  File "aqt\addons.py", line 380, in onDelete
  File "aqt\addons.py", line 140, in deleteAddon
  File "site-packages\send2trash\plat_win.py", line 58, in send2trash
<class 'OSError'>: Couldn't perform operation. Error code: 124

I managed to update it by opening Anki in debug mode. Now, when I try to make changes to an already existing card, I get this error:

Anki 2.1.5 Python 3.6.1 Qt 5.9.2 PyQt 5.9
Platform: Windows 10
Flags: frz=True ao=True sv=1

Caught exception:
  File "aqt\webview.py", line 27, in cmd
  File "aqt\webview.py", line 80, in _onCmd
  File "aqt\webview.py", line 333, in _onBridgeCmd
  File "aqt\editor.py", line 268, in onBridgeCmd
  File "anki\hooks.py", line 34, in runFilter
  File "C:\Users\ASUS\AppData\Roaming\Anki2\addons21\1128979221\edit.py", line 74, in onFocusLost
    if updateFields(note, field, allFields):
  File "C:\Users\ASUS\AppData\Roaming\Anki2\addons21\1128979221\behavior.py", line 438, in updateFields
    update_all_Transcription_fields(hanzi, fieldsCopy)
  File "C:\Users\ASUS\AppData\Roaming\Anki2\addons21\1128979221\behavior.py", line 205, in update_all_Transcription_fields
    update_Pinyin_fields(hanzi, d)
  File "C:\Users\ASUS\AppData\Roaming\Anki2\addons21\1128979221\behavior.py", line 143, in update_Pinyin_fields
    format_Pinyin_fields(d)
  File "C:\Users\ASUS\AppData\Roaming\Anki2\addons21\1128979221\behavior.py", line 130, in format_Pinyin_fields
    True
<class 'TypeError'>: accentuate() takes 1 positional argument but 2 were given

Specs (please complete the following information):

  • OS: Windows 10
  • Anki 2.1.5
  • Chinese Support Version v084

Thanks for your help!

@onaphta
Copy link
Author

onaphta commented Dec 23, 2018

Some additional information: My anki version is 2.1.7 (but it still says "2.1.5"). I tried with the 32 bit alternate version but the problem persists. I have uninstalled and reinstalled anki a few times.
It worked perfectly before I forced the update.

@jdlorimer
Copy link
Owner

Thanks. This should be fixed now. I'll upload to AnkiWeb shortly.

@onaphta
Copy link
Author

onaphta commented Jan 2, 2019

Hi, it worked for the 2018.12.25 0.90 upddate.
I'm trying to update to the new version and I get the same error again:

`Anki 2.1.7 (a6c34fd7) Python 3.6.7 Qt 5.12.0 PyQt 5.11.3
Platform: Windows 10
Flags: frz=True ao=True sv=1

Caught exception:
File "aqt\addons.py", line 394, in onCheckForUpdates
File "aqt\addons.py", line 156, in downloadIds
File "aqt\addons.py", line 117, in install
File "aqt\addons.py", line 140, in deleteAddon
File "lib\site-packages\send2trash\plat_win.py", line 86, in send2trash
<class 'OSError'>: [WinError 124] None: 'C:\Users\ASUS\AppData\Roaming\Anki2\addons21\112897~1'`

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

No branches or pull requests

2 participants