krassowski / Anki-Night-Mode

Enabling studying at night with Anki - without eye strain
https://ankiweb.net/shared/info/1496166067
GNU General Public License v3.0
72 stars 13 forks source link

Bug in browse windows, anki 2.1 b6 #21

Closed pskmsc closed 7 years ago

pskmsc commented 7 years ago

Hello,

Browsing card is not possible with this addon activated. Ubuntu 17.04 Version 2.1.0beta6 Qt 5.9.1 PyQt 5.9

I got the following error: An error occurred in an add-on.

Please start Anki while holding down the shift key, and see if the error goes away.

If the error goes away, please report the issue on the add-on forum: https://anki.tenderapp.com/discussions/add-ons

If the error occurs even with add-ons disabled, please report the issue on our support site. Caught exception: File "aqt/webview.py", line 26, in cmd File "aqt/webview.py", line 65, in _onCmd File "aqt/webview.py", line 232, in _onBridgeCmd File "aqt/toolbar.py", line 61, in _linkHandler File "aqt/toolbar.py", line 79, in _browseLinkHandler File "aqt/main.py", line 715, in onBrowse File "aqt/init.py", line 64, in open File "", line 2, in init File "anki/hooks.py", line 66, in decorator_wrapper File "anki/hooks.py", line 57, in repl File "aqt/browser.py", line 380, in init File "aqt/browser.py", line 613, in setupEditor File "", line 2, in init File "anki/hooks.py", line 66, in decorator_wrapper File "anki/hooks.py", line 57, in repl File "aqt/editor.py", line 53, in init File "aqt/editor.py", line 111, in setupWeb File "", line 2, in stdHtml File "anki/hooks.py", line 66, in decorator_wrapper File "anki/hooks.py", line 63, in repl File "/home/psk/.local/share/Anki2/addons21/Night_Mode.py", line 349, in nm_editor_web_view_stdHTML_around signature = inspect.signature(original_function) <class 'NameError'>: name 'inspect' is not defined

krassowski commented 7 years ago

Thank you for the report. I committed a fix for this bug. Please try the newest version from repository.

3 sie 2017 11:13 AM "pskmsc" notifications@github.com napisał(a):

Hello,

Browsing card is not possible with this addon activated. Ubuntu 17.04 I got the following error: An error occurred in an add-on.

Please start Anki while holding down the shift key, and see if the error goes away.

If the error goes away, please report the issue on the add-on forum: https://anki.tenderapp.com/discussions/add-ons

If the error occurs even with add-ons disabled, please report the issue on our support site. Caught exception: File "aqt/webview.py", line 26, in cmd File "aqt/webview.py", line 65, in _onCmd File "aqt/webview.py", line 232, in _onBridgeCmd File "aqt/toolbar.py", line 61, in _linkHandler File "aqt/toolbar.py", line 79, in _browseLinkHandler File "aqt/main.py", line 715, in onBrowse File "aqt/init.py", line 64, in open File "", line 2, in init File "anki/hooks.py", line 66, in decorator_wrapper File "anki/hooks.py", line 57, in repl File "aqt/browser.py", line 380, in init File "aqt/browser.py", line 613, in setupEditor File "", line 2, in init File "anki/hooks.py", line 66, in decorator_wrapper File "anki/hooks.py", line 57, in repl File "aqt/editor.py", line 53, in init File "aqt/editor.py", line 111, in setupWeb File "", line 2, in stdHtml File "anki/hooks.py", line 66, in decorator_wrapper File "anki/hooks.py", line 63, in repl File "/home/psk/.local/share/Anki2/addons21/Night_Mode.py", line 349, in nm_editor_web_view_stdHTML_around signature = inspect.signature(original_function) <class 'NameError'>: name 'inspect' 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/krassowski/Anki-Night-Mode/issues/21, or mute the thread https://github.com/notifications/unsubscribe-auth/AFkAxu6gZ5WvV21PA6fRTSp7L6oAYTRCks5sUY8ogaJpZM4OsKqZ .

pskmsc commented 7 years ago

Hello,

The fix worked perfectly, many thanks for your rapid answer !

Kind regards,