Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoDefineAddon/core.py", line 184 error #16

Open
qslid opened this issue Nov 5, 2018 · 7 comments
Open

AutoDefineAddon/core.py", line 184 error #16

qslid opened this issue Nov 5, 2018 · 7 comments
Assignees
Labels

Comments

@qslid
Copy link

qslid commented Nov 5, 2018

I have error in addon.

Traceback (most recent call last):
File "/home/fin/.local/share/Anki2/addons/AutoDefineAddon/core.py", line 184, in
editor._addButton("AutoDefine", lambda ed=editor: get_definition(ed),
File "/home/lina/.local/share/Anki2/addons/AutoDefineAddon/core.py", line 55, in get_definition
etree = ET.fromstring(urllib2.urlopen(url).read())
File "xml/etree/ElementTree.py", line 1301, in XML
File "xml/etree/ElementTree.py", line 1643, in feed
File "xml/etree/ElementTree.py", line 1507, in _raiseerror
xml.etree.ElementTree.ParseError: syntax error: line 1, column 0

Can you help me with this error?

@z1lc
Copy link
Owner

z1lc commented Nov 5, 2018

What were the contents of the first field when this exception occurred?

@z1lc z1lc self-assigned this Nov 5, 2018
@z1lc z1lc added the bug label Nov 5, 2018
@z1lc
Copy link
Owner

z1lc commented Nov 11, 2018

Closing due to inactivity. Please re-open if you are able to post the contents of the first field that led to this error.

@z1lc z1lc closed this as completed Nov 11, 2018
@qslid
Copy link
Author

qslid commented Nov 11, 2018

Sorry for waiting.
@z1lc Robert, it's seems to me that i have o permission to reopen the issue. Can you re-open it?
I tried the AutoDefine for word "extensive".
Below the screenshot. Anki with extention runs on Linux Ubuntu, Anki 2.0.52 Qt 4.8.1 PyQt 4.9.1
2018-11-11 19-41-50

@z1lc z1lc reopened this Nov 16, 2018
@z1lc
Copy link
Owner

z1lc commented Nov 16, 2018

It looks like you have an outdated version of AutoDefine installed. Please update it by going to Tools > Add-ons > Check for Updates within Anki.

@qslid
Copy link
Author

qslid commented Nov 17, 2018

In the addons directory AutoDefine.py file has this string : # AutoDefine Anki Add-on v.20180626
Is this an actual version?
Maybe my Anki have "Check for Updates within Anki" but i cant find it. I removed addon manually and installed AutoDefine from ankiweb by code (https://ankiweb.net/shared/info/2136497008). After restart version in the AutoDefine.py is'not changed.

After all, autodefine works fine with a lot of worlds (like "basketball"). but still have a problems with worlds like "extensive"

@sudorich
Copy link

sudorich commented Mar 5, 2019

I am getting similar error in MAC .. looks like the plugin works properly in Windows but not in Linux or Mac.
image

Please let me know if I can help in any way to fix or simulate the error for you .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants
@z1lc @qslid @sudorich and others