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

Throwing Error #25

Open
philosopherdog opened this issue Nov 20, 2022 · 2 comments
Open

Throwing Error #25

philosopherdog opened this issue Nov 20, 2022 · 2 comments

Comments

@philosopherdog
Copy link

When I tap the icon to enabled it I get the following error. I'm on Apple Silicone M1.

Caught exception:
Traceback (most recent call last):
File "aqt.webview", line 568, in handler
File "/Users/asceticcode/Library/Application Support/Anki2/addons21/1030875226/editor.py", line 129, in
lambda field_text : onInnerTextAvailable(field_html, field_text))
File "/Users/asceticcode/Library/Application Support/Anki2/addons21/1030875226/editor.py", line 139, in onInnerTextAvailable
updated_field_html = generateHtmlFromMarkdown(field_text, field_html)
File "/Users/asceticcode/Library/Application Support/Anki2/addons21/1030875226/editor.py", line 53, in generateHtmlFromMarkdown
encoded_field_html = base64.b64encode(field_html.encode('utf-8')).decode() # needs to be string
AttributeError: 'NoneType' object has no attribute 'encode'

@skplunkerin
Copy link

I'm having the same issue, on Apply MacBook Intel.

Is there a pre-requisite package or library I need to install for this Add-on to work?

@philosopherdog
Copy link
Author

I suspect this is a python 2 issue. Modern versions of MacOS do not come with python 2 anymore.

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

No branches or pull requests

2 participants