arthur-milchior / anki-change-note-type Goto Github PK
View Code? Open in Web Editor NEWChanging a note type without requiring a full new sync.
License: GNU General Public License v3.0
Changing a note type without requiring a full new sync.
License: GNU General Public License v3.0
Since around several months ago, Anki on desktop started showing the following exception, failing to load the plugin. Reinstalling the plugin didn't help
When loading 'Change the type of a note without upload':
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/aqt/addons.py", line 244, in loadAddons
__import__(addon.dir_name)
File "/home/user/.local/share/Anki2/addons21/1990502531/__init__.py", line 2, in <module>
from aqt.browser import ChangeModel
ImportError: cannot import name 'ChangeModel' from 'aqt.browser' (/usr/lib/python3.10/site-packages/aqt/browser/__init__.py)
I don't have enough expertise to say if it's related to Anki's verion or Python. Please find below some more details about the setup:
Anki Version: 2.1.51 (11b89b2f)
Python/Qt: Python 3.10.4 Qt 5.15.2 PyQt 5.15.6
OS: Arch Linux (latest updates)
Is it by any chance something that is easy to fix? The plugin is really useful and it would be cool to have it working again
needs an __init__.py
file containing from . import change
and a different qt version
from PyQt5.QtCore import *
from PyQt5.QtGui import *
in order to load the plugin, but it doesn't take effect with only those changes.
Backward compatibility can be done with conditional imports, as here:
https://github.com/glutanimate/image-occlusion-enhanced/pull/49/files
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.