Arthur-Milchior / anki-tex-as-image

Uses tex as image in browser/editor
GNU General Public License v3.0
6 stars 1 forks source link

version from 2020-02-24 on ankiweb is missing a file #1

Closed ijgnd closed 4 years ago

ijgnd commented 4 years ago

the file "js.js" is not included

Details:

Anki 2.1.20 (47a1bf8b) Python 3.8.1 Qt 5.14.1 PyQt 5.14.1
Platform: Linux
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-02-28 21:17:21
Add-ons possibly involved: Show LaTeXs result in editorbrowser

Caught exception:
Traceback (most recent call last):
File "aqt/webview.py", line 30, in cmd
File "aqt/webview.py", line 96, in _onCmd
File "aqt/webview.py", line 422, in _onBridgeCmd
File "aqt/toolbar.py", line 75, in _linkHandler
File "aqt/toolbar.py", line 90, in _addLinkHandler
File "aqt/main.py", line 979, in onAddCard
File "aqt/__init__.py", line 92, in open
File "aqt/addcards.py", line 40, in __init__
File "aqt/addcards.py", line 52, in setupEditor
File "aqt/editor.py", line 82, in __init__
File "<../bin/decorator.pyc:decorator-gen-2>", line 2, in setupWeb
File "anki/hooks.py", line 530, in decorator_wrapper
File "anki/hooks.py", line 522, in repl
File "../Anki2/addons21/882784122/__init__.py", line 31, in setupWeb
    self.web.eval(str_from_file_name("js.js"))
File "../Anki2/addons21/882784122/from_file.py", line 9, in str_from_file_name
    with open(file_path, "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: '../Anki2/addons21/882784122/js.js'
Arthur-Milchior commented 4 years ago

Strange. Thanks

Arthur-Milchior commented 4 years ago

Corrected. Please udate. I wasn't really sure anyone else was actually using it to be honest

ijgnd commented 4 years ago

Now it works for me. Thanks for the quick correction and the add-on itself. This should be relevant for many people - e.g. when you examine a shared deck with some latex the first time in the browser.