

AnKindle (Batch Vocab and Clippings)
This item is large, and may take some time to download.
Description
Download
As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.
To download this add-on, please copy and paste the following code into Anki 2.1:
1016931132
If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.
This add-on previously supported Anki 2.0. You can download the last version supporting 2.0 here. As Anki 2.0 has been discontinued, no support is available for this version.
Reviews



错误
有一个错误发生了.请在按住shift键的同时启动Anki,这样可以临时的忽略掉你已经安装的插件。
如果仅仅是因为插件引起的问题,请选择工具>插件菜单项来将出错的的插件设置成失效,然后重启Anki,重复以上的步骤直到你发现了具体是哪个插件引起的问题。
当你已经发现是因为插件引起的问题,请在我们的支持网站上 add-ons section 上报告问题。
调试信息
Anki 2.1.21 (f1734a47) Python 3.8.0 Qt 5.13.1 PyQt 5.14.1
Platform: Mac 10.16
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2021-01-06 10:39:41
相关扩展:AnKindle Batch Vocab and Clippings
Caught exception:
Traceback (most recent call last):
File "anki/hooks.py", line 475, in runHook
File "/Users/sheilawho/Library/Application Support/Anki2/addons21/1016931132/gui_clippings.py", line 1415, in confirm_clicked
status_cd, msg = self.register(self.edit_sn.text().strip().upper(), self.user_email, self.addon)
File "/Users/sheilawho/Library/Application Support/Anki2/addons21/1016931132/libs/xmlrpc/client.py", line 1112, in __call__
return self.__send(self.__name, args)
File "/Users/sheilawho/Library/Application Support/Anki2/addons21/1016931132/libs/xmlrpc/client.py", line 1448, in __request
response = self.__transport.request(
File "/Users/sheilawho/Library/Application Support/Anki2/addons21/1016931132/libs/xmlrpc/client.py", line 1154, in request
return self.single_request(host, handler, request_body, verbose)
File "/Users/sheilawho/Library/Application Support/Anki2/addons21/1016931132/libs/xmlrpc/client.py", line 1170, in single_request
return self.parse_response(resp)
File "/Users/sheilawho/Library/Application Support/Anki2/addons21/1016931132/libs/xmlrpc/client.py", line 1342, in parse_response
return u.close()
File "/Users/sheilawho/Library/Application Support/Anki2/addons21/1016931132/libs/xmlrpc/client.py", line 656, in close
raise Fault(**self._stack[0])
1016931132.libs.xmlrpc.client.Fault: <Fault 1: "<class 'FileNotFoundError'>:[Errno 2] No such file or directory: '/var/folders/wd/m45h8tsx3vdf4mf5vw710t3h0000gn/T/_MEIMrn2G4/base_library.zip'">


分享一下我的临时解决方法,希望对大家有用。
1.打开anki,工具→附加组件,选择ankindle 点击右边的 ‘查看文件’。
2.在打开的文件夹中找到kkLib.py,打开它(可以用记事本)大约第30行 找到"from aqt.downloader import download"这句,在最前面加上井号#
就像“#from aqt.downloader import download” 保存后退出。
3.在同一个文件夹中打开config.py,将大约第5行的“from anki.sync import os” 改成 “import os” 保存后退出。
现在应该能使用了。就是每次打开软件比没开这个插件时要慢上一些。
建议可以平时在插件里面吧ankindle设置为不启用,需要导入kindle生词时再把插件启用。














MacOS: 10.14.5
Ankindle Version: 2.1.19-standard





Your add-on is very valuable to me, so I would like to use it; however, I receive an error every time I input my license number.
Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools>Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site.
Debug info:
Anki 2.1.11 (3cf770c7) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
Platform: Mac 10.14.5
Flags: frz=True ao=True sv=2
Add-ons possibly involved: AnKindle Batch Vocab and Clippings
Caught exception:
File "anki/hooks.py", line 29, in runHook
File "/Users/noahjones/Library/Application Support/Anki2/addons21/1016931132/gui_clippings.py", line 1415, in confirm_clicked
status_cd, msg = self.register(self.edit_sn.text().strip().upper(), self.user_email, self.addon)
File "/Users/noahjones/Library/Application Support/Anki2/addons21/1016931132/libs/xmlrpc/client.py", line 1112, in __call__
return self.__send(self.__name, args)
File "/Users/noahjones/Library/Application Support/Anki2/addons21/1016931132/libs/xmlrpc/client.py", line 1452, in __request
verbose=self.__verbose
File "/Users/noahjones/Library/Application Support/Anki2/addons21/1016931132/libs/xmlrpc/client.py", line 1154, in request
return self.single_request(host, handler, request_body, verbose)
File "/Users/noahjones/Library/Application Support/Anki2/addons21/1016931132/libs/xmlrpc/client.py", line 1170, in single_request
return self.parse_response(resp)
File "/Users/noahjones/Library/Application Support/Anki2/addons21/1016931132/libs/xmlrpc/client.py", line 1342, in parse_response
return u.close()
File "/Users/noahjones/Library/Application Support/Anki2/addons21/1016931132/libs/xmlrpc/client.py", line 656, in close
raise Fault(**self._stack[0])
<class '1016931132.libs.xmlrpc.client.Fault'>: <Fault 1: "<class 'ssl.SSLError'>:[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)">






It goes
sh: 1: /home/pesua/.local/share/Anki2/addons21/1016931132/ARPC: Exec format error
Waiting for next ping of rpc server
Waiting for next ping of rpc server
Waiting for next ping of rpc server
Waiting for next ping of rpc server
Waiting for next ping of rpc server
Waiting for next ping of rpc server





Anki 2.1.12 (eef86bf3) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
Platform: Windows 10
Flags: frz=True ao=True sv=1
Caught exception:
File "C:\Users\Administrator\AppData\Roaming\Anki2\addons21\1016931132\gui.py", line 492, in on_select_kindle_db
self._validate_langs()
File "C:\Users\Administrator\AppData\Roaming\Anki2\addons21\1016931132\gui.py", line 434, in _validate_langs
if self.word_langs:
File "C:\Users\Administrator\AppData\Roaming\Anki2\addons21\1016931132\gui.py", line 713, in word_langs
for i, _ in enumerate(self.word_data):
File "C:\Users\Administrator\AppData\Roaming\Anki2\addons21\1016931132\gui.py", line 707, in word_data
self._preload_data = list(self.db.get_words(self.ck_import_new.isChecked()))
File "C:\Users\Administrator\AppData\Roaming\Anki2\addons21\1016931132\db.py", line 92, in get_words
""".format("WHERE ws.CATEGORY = 0" if only_new else "")
File "anki\db.py", line 32, in execute
<class 'sqlite3.OperationalError'>: no such table: words


https://freemdict.com/2018/10/31/american-heritage-dictionary-fifth-edition/

https://anki.tenderapp.com/discussions/add-ons
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Roaming\Anki2\addons\AnKindle\gui.py", line 565, in on_select_mdx
dlg = plus.MDXDialog(self, self.current_mdx_lang)
File "C:\Users\Administrator\AppData\Roaming\Anki2\addons\AnKindle\gui_clippings.py", line 1019, in __init__
mdx1, mdx2, mdx3, mdx4, mdx5 = GetMDXConfig(self.lang)
File "C:\Users\Administrator\AppData\Roaming\Anki2\addons\AnKindle\gui_clippings.py", line 1004, in GetMDXConfig
if not plus_api().is_unlocked():
AttributeError: 'NoneType' object has no attribute 'is_unlocked'

错误
有一个错误发生了.请在按住shift键的同时启动Anki,这样可以临时的忽略掉你已经安装的插件。
如果仅仅是因为插件引起的问题,请选择工具>插件菜单项来将出错的的插件设置成失效,然后重启Anki,重复以上的步骤直到你发现了具体是哪个插件引起的问题。
当你已经发现是因为插件引起的问题,请在我们的支持网站上 add-ons section 上报告问题。
调试信息
Anki 2.1.11 (3cf770c7) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
Platform: Mac 10.14.4
Flags: frz=True ao=True sv=1
Add-ons possibly involved: AnKindle Batch Vocab and Clippings
Caught exception:
File "anki/hooks.py", line 29, in runHook
File "/Users/wangshuangxu/Library/Application Support/Anki2/addons21/1016931132/gui_clippings.py", line 1415, in confirm_clicked
status_cd, msg = self.register(self.edit_sn.text().strip().upper(), self.user_email, self.addon)
File "/Users/wangshuangxu/Library/Application Support/Anki2/addons21/1016931132/libs/xmlrpc/client.py", line 1112, in __call__
return self.__send(self.__name, args)
File "/Users/wangshuangxu/Library/Application Support/Anki2/addons21/1016931132/libs/xmlrpc/client.py", line 1452, in __request
verbose=self.__verbose
File "/Users/wangshuangxu/Library/Application Support/Anki2/addons21/1016931132/libs/xmlrpc/client.py", line 1154, in request
return self.single_request(host, handler, request_body, verbose)
File "/Users/wangshuangxu/Library/Application Support/Anki2/addons21/1016931132/libs/xmlrpc/client.py", line 1170, in single_request
return self.parse_response(resp)
File "/Users/wangshuangxu/Library/Application Support/Anki2/addons21/1016931132/libs/xmlrpc/client.py", line 1342, in parse_response
return u.close()
File "/Users/wangshuangxu/Library/Application Support/Anki2/addons21/1016931132/libs/xmlrpc/client.py", line 656, in close
raise Fault(**self._stack[0])
<class '1016931132.libs.xmlrpc.client.Fault'>: <Fault 1: "<class 'ssl.SSLError'>:[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)">
链接:https://pan.baidu.com/s/11Ss3Kyd3gVd0hSLAT0V_KA 提取码:7O08 复制这段内容后打开百度网盘手机App,操作更方便哦


调试信息
Anki 2.1.11 (3cf770c7) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
Platform: Mac 10.14.4
Flags: frz=True ao=True sv=1
Add-ons possibly involved: AnKindle Batch Vocab and Clippings
Caught exception:
File "/Users/zhaohan/Library/Application Support/Anki2/addons21/1016931132/gui.py", line 492, in on_select_kindle_db
self._validate_langs()
File "/Users/zhaohan/Library/Application Support/Anki2/addons21/1016931132/gui.py", line 434, in _validate_langs
if self.word_langs:
File "/Users/zhaohan/Library/Application Support/Anki2/addons21/1016931132/gui.py", line 713, in word_langs
for i, _ in enumerate(self.word_data):
File "/Users/zhaohan/Library/Application Support/Anki2/addons21/1016931132/gui.py", line 707, in word_data
self._preload_data = list(self.db.get_words(self.ck_import_new.isChecked()))
File "/Users/zhaohan/Library/Application Support/Anki2/addons21/1016931132/db.py", line 92, in get_words
""".format("WHERE ws.CATEGORY = 0" if only_new else "")
File "anki/db.py", line 32, in execute
<class 'sqlite3.DatabaseError'>: database disk image is malformed



Anki 2.1.11 (3cf770c7) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
Platform: Mac 10.14.3
Flags: frz=True ao=True sv=1
Add-ons possibly involved: AnKindle Batch Vocab and Clippings
Caught exception:
File "aqt/progress.py", line 72, in handler
File "aqt/main.py", line 122, in setupProfile
File "aqt/main.py", line 263, in loadProfile
File "anki/hooks.py", line 29, in runHook
File "/Users/lev/Library/Application Support/Anki2/addons21/1016931132/__init__.py", line 137, in start
rr = AnKindleAddon()
File "/Users/lev/Library/Application Support/Anki2/addons21/1016931132/__init__.py", line 35, in __init__
if plus_api() and not self.ext_unlocked:
File "/Users/lev/Library/Application Support/Anki2/addons21/1016931132/__init__.py", line 87, in ext_unlocked
mw.pm.profile.get('syncUser', ''), "ANKINDLE_PLUS")
File "/Users/lev/Library/Application Support/Anki2/addons21/1016931132/libs/xmlrpc/client.py", line 1112, in __call__
return self.__send(self.__name, args)
File "/Users/lev/Library/Application Support/Anki2/addons21/1016931132/libs/xmlrpc/client.py", line 1452, in __request
verbose=self.__verbose
File "/Users/lev/Library/Application Support/Anki2/addons21/1016931132/libs/xmlrpc/client.py", line 1154, in request
return self.single_request(host, handler, request_body, verbose)
File "/Users/lev/Library/Application Support/Anki2/addons21/1016931132/libs/xmlrpc/client.py", line 1170, in single_request
return self.parse_response(resp)
File "/Users/lev/Library/Application Support/Anki2/addons21/1016931132/libs/xmlrpc/client.py", line 1342, in parse_response
return u.close()
File "/Users/lev/Library/Application Support/Anki2/addons21/1016931132/libs/xmlrpc/client.py", line 656, in close
raise Fault(**self._stack[0])
<class '1016931132.libs.xmlrpc.client.Fault'>: <Fault 1: "<class 'ssl.SSLError'>:[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)">


An error occurred in an add-on.
Please post on the add-on forum:
https://anki.tenderapp.com/discussions/add-ons
Traceback (most recent call last):
File "aqt/main.pyc", line 165, in onOpenProfile
File "aqt/main.pyc", line 244, in loadProfile
File "anki/hooks.pyc", line 26, in runHook
File "/Users/xxxxxxxx/Library/Application Support/Anki2/addons/AnKindle/__init__.py", line 137, in start
rr = AnKindleAddon()
File "/Users/xxxxxxxx/Library/Application Support/Anki2/addons/AnKindle/__init__.py", line 25, in __init__
self.on_start()
File "/Users/xxxxxxxx/Library/Application Support/Anki2/addons/AnKindle/__init__.py", line 49, in on_start
if plus_api():
File "/Users/xxxxxxxx/Library/Application Support/Anki2/addons/AnKindle/const.py", line 105, in get_api_client
return _proxy.api_client
File "/Users/xxxxxxxx/Library/Application Support/Anki2/addons/AnKindle/const.py", line 55, in api_client
self._client = self.try_server()
File "/Users/xxxxxxxx/Library/Application Support/Anki2/addons/AnKindle/const.py", line 84, in try_server
Thread(target=os.system, args=('"{}" "{}"'.format(arpc_file, media_folder),)).start()
UnicodeEncodeError: 'ascii' codec can't encode characters in position 51-52: ordinal not in range(128)

加载的时候,出现 xmlrpc 异常, 个人感觉是 python3 使用了 老的 xmlrpc 库 ,经过一番尝试,还是无法解决. 请版主帮忙搞一下哈. 我试图用 2to3 转换 哪个 xmlrpclib.py 还是不行. 手动修改语法还是无果.........







An add-on you installed failed to load. If problems persist, please go to the Tools> Add-ons menu, and disable or delete the add-on.
When loading 'AnKindle Batch Vocab and Clippings':
Traceback (most recent call last):
File "C:\Users\Affon\AppData\Roaming "Anki2\addons21\1016931132\_init__.py", line 45, in <module>
from AnKindle import AnKindlePlus ModuleNotFoundError: No module named 'AnKindle'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Affon\AppData\Roaming (Anki2\addons21\1016931132\_init__.py", line 48, in <module>
import AnKindle.AnKindlePlus ModuleNotFoundError: No module named 'AnKindle
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "aqt\addons.py", line 60, in loadAddons File "C:\Users\Affon\AppData\Roaming lanki2\addons211016931132\_init__.py", line 50, in <module>
from , import AnKindlePlus ImportError cannot import name 'AnKindlePlus

Anki 2.1.7 (a6c34fd7) Python 3.6.7 Qt 5.12.0 PyQt 5.11.3
Platform: Mac 10.13.6
Flags: frz=True ao=True sv=1
Caught exception:
File "<decorator-gen-22>", line 2, in addCards
File "anki/hooks.py", line 74, in decorator_wrapper
File "anki/hooks.py", line 66, in repl
File "AnKindlePlus.py", line 244, in AnKindleExt.AnKindlePlus._adjust_after_add_cards
File "anki/hooks.py", line 29, in runHook
File "AnKindlePlus.py", line 530, in AnKindleExt.AnKindlePlus._ClippingFrame.on_after_addcards
File "AnKindlePlus.py", line 882, in AnKindleExt.AnKindlePlus._ClippingFrame.cur_item
<class 'RuntimeError'>: wrapped C/C++ object of type QTreeWidget has been deleted



请把它报告在插件的论坛上:
https://anki.tenderapp.com/discussions/add-ons
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Roaming\Anki2\addons\AnKindle\gui.py", line 637, in on_import
mw.col.addNote(note)
File "anki\collection.py", line 259, in addNote
File "anki\collection.py", line 399, in _newCard
File "anki\cards.py", line 78, in flush
AssertionError
win7上边



Trying to make money from trivial development exploiting other people's multiple years effort (Damien Elmes' free Anki) is low ethics at best.

我删除卡片后,重新建立就会出现下面错误
只要我移除ankindle插件,就不会出现这个问题
确定是ankindle引起
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 "<decorator-gen-6>", line 2, in addCards
File "anki\hooks.py", line 66, in decorator_wrapper
File "anki\hooks.py", line 58, in repl
File "AnKindlePlus.py", line 244, in AnKindleExt.AnKindlePlus._adjust_after_add_cards
File "anki\hooks.py", line 28, in runHook
File "AnKindlePlus.py", line 530, in AnKindleExt.AnKindlePlus._ClippingFrame.on_after_addcards
File "AnKindlePlus.py", line 882, in AnKindleExt.AnKindlePlus._ClippingFrame.cur_item
<class 'RuntimeError'>: wrapped C/C++ object of type QTreeWidget has been deleted

——————————
希望能够支持同时导入多个词典~


"None of the MDX dictionaries are selected, explanations will be lost in your imports. Confirm to continue?"
After several 'Yes' clicks the addon freezes, requiring Anki to be restarted, losing all the words that have been 'imported.'
If you click 'No' to the above prompt, the Importing screen stays -- freezing the addon, requiring Anki to be restarted, losing all the words that have been 'imported.'
Reviewing the documentation sheds no light on MDX files, only that they are queried, and that several can be used. No mention of where to find them or why a user would need one (or more).
I very much like the idea of this add-on but am unsure of how to use it.



只是有个小问题,联网的时候还可以正常启动anki,但是不联网会报错,框佬能给解决下么
一个插件发生了错误。
请把它报告在插件的论坛上:
https://anki.tenderapp.com/discussions/add-ons
Traceback (most recent call last):
File "aqt\progress.py", line 69, in handler
File "aqt\main.py", line 110, in setupProfile
File "aqt\main.py", line 244, in loadProfile
File "anki\hooks.py", line 26, in runHook
File "C:\Users\dingj\AppData\Roaming\Anki2\addons\AnKindle\__init__.py", line 181, in start
rr = AnKindleAddon()
File "C:\Users\dingj\AppData\Roaming\Anki2\addons\AnKindle\__init__.py", line 74, in __init__
if self.ext_available and not self.ext_unlocked:
File "C:\Users\dingj\AppData\Roaming\Anki2\addons\AnKindle\__init__.py", line 128, in ext_unlocked
return AnKindlePlus.KuangKuang.Unlocked()
File "AnKindlePlus.py", line 1453, in AnKindleExt.AnKindlePlus.KuangKuang.Unlocked
File "AnKindlePlus.py", line 1771, in AnKindleExt.AnKindlePlus.SNReg.cls_register
File "httplib.py", line 1042, in request
File "httplib.py", line 1082, in _send_request
File "httplib.py", line 1038, in endheaders
File "httplib.py", line 882, in _send_output
File "aqt\sync.py", line 441, in _incrementalSend
File "httplib.py", line 821, in connect
File "socket.py", line 575, in create_connection
socket.error: [Errno 10051]



两个小建议:
1. 默认模板的字体好像是宋体(总之是中文字体),显示英语很难看。能否英文、数字改成Times New Roman等适合显示英文的字体?
2. 目前可以选多个mdx查询,ABCD,如果A查不到则查B……但是不能同时显示多个词典的解释。能否不仅提供“替换查询”,也提供“同时查询”功能?比如AB是替换关系,AB和C又是同时关系。一个词在A上查不到,则查B,不管AB是否查到,都要查C。这样最后的结果可能是AC,也可能是BC。不知道这样表达是否清楚?即实现(A or B)and C(当然这里的AB有先后,不完全是or)。可以让用户选择,哪些词典是替代关系,哪些是同时查询的关系。
还有选择了两个mdx后,再点进去,发现又变成一个了,不知道是不是bug。
最后,怎么买plus?能否给个链接。选择purchase (yes)后,anki会显示loading...,然后就不了了之了,不会跳转到其他页面。怀疑是我的问题,因为在anki上选择浏览插件,也是无反应。所以我l浏览插件也是直接用浏览器去打开ankiweb的。
期待回复,再次感谢。
------------------------------------
谢谢您的回复。感觉至少实现两个词典同时查询,这样更方便,也不会太复杂吧?还请您加以考虑。
另外,淘宝搜不到ankindle,能否麻烦给个链接呢?十分感谢。














