Giter Club home page Giter Club logo

Comments (5)

luoliyan avatar luoliyan commented on June 1, 2024

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.

PiotrSss avatar PiotrSss commented on June 1, 2024

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:

  1. 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)>

  1. 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.

luoliyan avatar luoliyan commented on June 1, 2024

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.

PiotrSss avatar PiotrSss commented on June 1, 2024

It's working, thank you :)

from incremental-reading.

luoliyan avatar luoliyan commented on June 1, 2024

Not a problem.

from incremental-reading.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.