Git Product home page Git Product logo

Comments (5)

ssricardo avatar ssricardo commented on June 12, 2024 1

Thanks for the reports guy, i'm already trying to check that

from anki-plugins.

ssricardo avatar ssricardo commented on June 12, 2024

Hey @weanprednisone.
What is the version of your Anki?
What is the URL of the image that it didn't work?

from anki-plugins.

weanprednisone avatar weanprednisone commented on June 12, 2024

I use google images
Anki 2.1
It has worked, but stopped working for some reason. Thanks for replying!

from anki-plugins.

shahrokh-bahtooei avatar shahrokh-bahtooei commented on June 12, 2024

Hi,
I do also have the same problem with using "Assign to field" feature on "Google Images" for copying them to "Extra" field of "Cloze" card type.
Please fix it as soon as possible.


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.12 (eef86bf3) 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: Anki Web Browser Selection searching Import texts and images automatically

Caught exception:
File "/Users/Shahrokh/Library/Application Support/Anki2/addons21/864545277/browser.py", line 191, in
return lambda: self._selectedListener.handleSelection(field, value, isLink)
File "/Users/Shahrokh/Library/Application Support/Anki2/addons21/864545277/controller.py", line 175, in handleSelection
self.handleUrlSelection(fieldIndex, value)
File "/Users/Shahrokh/Library/Application Support/Anki2/addons21/864545277/controller.py", line 188, in handleUrlSelection
Feedback.log('handleUrlSelection.imgReference: ' + imgReference)
<class 'TypeError'>: must be str, not NoneType

from anki-plugins.

ssricardo avatar ssricardo commented on June 12, 2024

A new release is available (1.2) which handles this issue.
It doesn't solve what you want completely, because it's not a bug on the addon.

What happens:

  • The addon uses Anki engine to import the images
  • Anki has a restriction that it accepts only URLs with static files. More precisely URLs with one these suffix: (png, jpg, jpeg, git).

Check it out: https://github.com/dae/anki/blob/master/aqt/editor.py#L624

  • Google Images probably changed something on their links to the images.

I got to import from Google Images yet, but it required the following steps:

  • Click on the thumbnail
  • Click again on that image
  • Now it was possible to import it

from anki-plugins.

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.