Comments (5)
Thanks for testing. I was able to reproduce this when trying to import a webpage. I assume that's what you were doing when you got that error?
I've updated the add-on on GitHub (direct link), which should solve the problem for now.
That said, something different breaks almost every time Damien releases a new beta. Just let me know if you run into anything else. At the moment I'm working to make the add-on compatible with Beta 16, but for now it only works with 13, 14 and 15.
from incremental-reading.
No, it was on Anki (beta 15, OS X) startup after adding 'ir' folder to addons. But it's working now after your last commit :) Adding things manually works fine, but:
- When I want to import https webpage (https://www.wired.com/story/physicists-want-to-rebuild-quantum-theory-from-scratch/) I'm getting different error:
Caught exception:
File "/Users/piotr/Library/Application Support/Anki2/addons21/ir/importer.py", line 45, in importWebpage
webpage = self._fetchWebpage(url)
File "/Users/piotr/Library/Application Support/Anki2/addons21/ir/importer.py", line 23, in _fetchWebpage
html = urlopen(url).read().decode('utf-8')
File "urllib/request.py", line 223, in urlopen
File "urllib/request.py", line 526, in open
File "urllib/request.py", line 544, in _open
File "urllib/request.py", line 504, in _call_chain
File "urllib/request.py", line 1361, in https_open
File "urllib/request.py", line 1320, in do_open
<class 'urllib.error.URLError'>: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)>
- When I want to import http webpage it's this:
Caught exception:
File "/Users/piotr/Library/Application Support/Anki2/addons21/ir/importer.py", line 47, in importWebpage
self._createNote(webpage.title.string, body, url)
File "/Users/piotr/Library/Application Support/Anki2/addons21/ir/importer.py", line 33, in _createNote
did = mw.col.decks.byName(self.settings['importDeck'])['id']
<class 'TypeError'>: 'NoneType' object is not subscriptable
from incremental-reading.
The first error is a Mac-only thing. As a work-around, I've disabled certificate checks on Mac.
I can't reproduce the second error, but I've changed the behaviour so that webpages are imported into whatever is the current deck.
Please try the updated add-on (here) and let me know how it goes.
from incremental-reading.
It's working, thank you :)
from incremental-reading.
Not a problem.
from incremental-reading.
Related Issues (20)
- Can't use highlight,extract and so on in other kinds of cards HOT 1
- Error message
- Extracting clozes does not forward the highlighted text HOT 2
- Pocket doesn't seem to import articles
- After installing and restarting Anki, plug-in crashes HOT 1
- Autogenerated Hyperlinks not working - also spacing question
- Clash with image occlusion
- Problems with highlighting and text deletion HOT 1
- alt codes conflicting HOT 1
- Issue with making Cards from an article HOT 2
- Invalid HTML on card: SecurityError: Failed to execute 'insertRule' on 'CSSStyleSheet': Cannot access StyleSheet to insertRule HOT 6
- Caught exception: Traceback (most recent call last): HOT 2
- Pressing up, down, pageUp and pageDown arrows cause an error HOT 2
- ้่ฏฏerror HOT 1
- 'Show Answer' leads to error HOT 6
- Python 3.9 compatibilty issue : AttributeError: module 'base64' has no attribute 'decodestring'
- Hello, will there be a new version of this addon? HOT 3
- Reading queue stuck while trying open a pdf file HOT 2
- Plugin crashes on OSX during on boot-- fresh install HOT 1
- Rename a few options HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from incremental-reading.