Arthur-Milchior / anki-relation

Allow to relate notes, and bury related notes
GNU General Public License v3.0
3 stars 1 forks source link

Error #1

Closed cjdduarte closed 5 years ago

cjdduarte commented 5 years ago

When trying to use the addon, the following error occurred:

Informação de Debug:
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 "<decorator-gen-12>", line 2, in _linkHandler
  File "anki\hooks.py", line 66, in decorator_wrapper
  File "anki\hooks.py", line 63, in repl
  File "D:\Anki\ankitest\addons21\880824023\slackersDelight.py", line 129, in linkHandler
    else: _old(self, url)
  File "aqt\reviewer.py", line 289, in _linkHandler
  File "aqt\reviewer.py", line 236, in _answerCard
  File "<decorator-gen-6>", line 2, in answerCard
  File "anki\hooks.py", line 66, in decorator_wrapper
  File "anki\hooks.py", line 57, in repl
  File "anki\sched.py", line 62, in answerCard
  File "D:\Anki\ankitest\addons21\413416269\burying.py", line 25, in _burySiblings
    nids|= getNotesIDFromRelation(relation)
<class 'NameError'>: name 'getNotesIDFromRelation' is not defined
Arthur-Milchior commented 5 years ago

Hi, can you please tell me your os, the version of anki, and anything which could help to understand ?

I asqume it occurs when you try to answer a card

Le jeu. 15 nov. 2018 à 18:51, cjdduarte notifications@github.com a écrit :

When trying to use the addon, the following error occurred:

Informação de Debug: 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 "", line 2, in _linkHandler File "anki\hooks.py", line 66, in decorator_wrapper File "anki\hooks.py", line 63, in repl File "D:\Anki\ankitest\addons21\880824023\slackersDelight.py", line 129, in linkHandler else: _old(self, url) File "aqt\reviewer.py", line 289, in _linkHandler File "aqt\reviewer.py", line 236, in _answerCard File "", line 2, in answerCard File "anki\hooks.py", line 66, in decorator_wrapper File "anki\hooks.py", line 57, in repl File "anki\sched.py", line 62, in answerCard File "D:\Anki\ankitest\addons21\413416269\burying.py", line 25, in _burySiblings nids|= getNotesIDFromRelation(relation) <class 'NameError'>: name 'getNotesIDFromRelation' is not defined

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Arthur-Milchior/anki-relation/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AAVz8bN-a1_4QlZ1u_Yeu-hBDHSJmGOzks5uvamugaJpZM4YhGFN .

cjdduarte commented 5 years ago

The error occurs when I try to answer a card.

Versão 2.1.5 Qt 5.9.2 PyQt 5.9 Windows 10 Portuguese Brazilian

Arthur-Milchior commented 5 years ago

Thank you for your report. I totally fail to understand how I could make such a mistake. This was not actually the correct version of the code. I did upload a code which was not even working on my own computer. It makes no sens at all. I hope that the current version of the add-on will work.

cjdduarte commented 5 years ago

Thank you, you were able to respond to the card and the error did not occur.

But another question, at what point is the card buried?

I figured that by responding to a card related by its addon, the others would be buried by Anki's algorithm.

cjdduarte commented 5 years ago
Anki 2.1.5 Python 3.6.1 Qt 5.9.2 PyQt 5.9
Platform: Windows 10
Flags: frz=True ao=True sv=2

Caught exception:
  File "D:\Anki\ankitest\addons21\413416269\browser.py", line 31, in <lambda>
    a.triggered.connect(lambda function=function: function(browser))
<class 'TypeError'>: 'bool' object is not callable

image

cjdduarte commented 5 years ago

Did you evaluate my previous review?

Arthur-Milchior commented 5 years ago

I don't know what you mean by "evaluate". I see all your post here. I currently am not working on it, but I intend to eventually find a window to try myself

Le sam. 17 nov. 2018 à 09:52, cjdduarte notifications@github.com a écrit :

Did you evaluate my previous review?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Arthur-Milchior/anki-relation/issues/1#issuecomment-439601457, or mute the thread https://github.com/notifications/unsubscribe-auth/AAVz8T2zSSgPaWSmVSUD-pAyCjooprs9ks5uv85QgaJpZM4YhGFN .

cjdduarte commented 5 years ago

Sorry, it's the google translator. I await correction. The addon does not work on Anki 2.1's v2 scheduler.

Arthur-Milchior commented 5 years ago

Better ?

cjdduarte commented 5 years ago

Good night. With scheduler v2 enabled, the addon is not yet burying the cards.

But now I was testing with v2 disabled and this error occurred.

`Debug info: 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 "", line 2, in _linkHandler File "anki\hooks.py", line 66, in decorator_wrapper File "anki\hooks.py", line 63, in repl File "D:\Anki\ankitest\addons21\880824023\slackersDelight.py", line 129, in linkHandler else: _old(self, url) File "aqt\reviewer.py", line 289, in _linkHandler File "aqt\reviewer.py", line 236, in _answerCard File "", line 2, in answerCard File "anki\hooks.py", line 66, in decorator_wrapper File "anki\hooks.py", line 57, in repl File "anki\sched.py", line 62, in answerCard File "D:\Anki\ankitest\addons21\413416269\burying.py", line 33, in _burySiblings debug(f"The query retuned {cid}, {queue}") <class 'NameError'>: name 'debug' is not defined`

cjdduarte commented 5 years ago

I commented this line, and the addon worked.

debug(f"The query retuned {cid}, {queue}")

But the addon still does not work with v2 enabled.

image

Arthur-Milchior commented 5 years ago

I totally forgot to check V2. Thank you for reminding me

Arthur-Milchior commented 5 years ago

Done. Can you test please

I added you in the documentation as debugger, I hope it's ok

cjdduarte commented 5 years ago

Thank you. It is now working properly.