jac241 / anki_killstreaks

A Halo and Call of Duty inspired add-on to gamify Anki and make reviewing more bearable
GNU Affero General Public License v3.0
17 stars 8 forks source link

2.1.55 spinner.css ImportWarning #47

Open khonkhortisan opened 2 years ago

khonkhortisan commented 2 years ago

console warning

addons21\579111794\config.py:18:json is deprecated: please implement your own

console warning

Not found: 579111794\web\spinner.css
https://ankiachievements.com

error

<template>:2: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__

This ImportWarning appears when going to the main screen and opening a deck. The images show as pop-ups while reviewing, but not on the main screen/deck screen. The error appears once per badge. Disabling this addon removes the error.

partial workaround?: Leaving AnkiWebView Inspector open replaces the images with <img src="data:image/png;base64,…"> and they then load, but the error is still thrown.

git bisect: works on 2.1.54 release commit b6a7760, fails on commit e39fb74e8 https://github.com/ankitects/anki/compare/2.1.54...e39fb74e8, likely https://github.com/ankitects/anki/commit/8c515e316ee2d63f570051782c31bc45a3821cd6 Template err improvements * Specify if error occured in a browser template

workaround?: comment out https://github.com/jac241/anki_killstreaks/blob/c0bb57fdf0b269bf7123dd6008f35707a74369b3/anki_killstreaks/chase_mode.py#L69