google image addon suddenly breaking off addon Nr ( 561924305)

Lele's Avatar

Lele

08 Apr, 2020 08:32 AM

The
Debug info:
Anki 2.1.22 (0ecc189a) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-04-08 08:04:39

Caught exception:
Traceback (most recent call last):
File "C:\Users\jikis\AppData\Roaming\Anki2\addons21\561924305_init.py", line 326, in a.triggered.connect(lambda _, b=browser: onAddImages(b)) File "C:\Users\jikis\AppData\Roaming\Anki2\addons21\561924305__init.py", line 319, in onAddImages updateNotes(browser, nids) File "C:\Users\jikis\AppData\Roaming\Anki2\addons21\561924305__init.py", line 293, in updateNotes nid, fld, images = future.result() File "concurrent\futures_base.py", line 432, in result File "concurrent\futures_base.py", line 388, in __get_result File "concurrent\futures\thread.py", line 57, in run File "C:\Users\jikis\AppData\Roaming\Anki2\addons21\561924305__init_.py", line 257, in getImages fname = mw.col.media.writeData(fname, data) File "lib\site-packages\anki\media.py", line 238, in writeData File "lib\site-packages\anki\media.py", line 99, in write_data File "lib\site-packages\anki\rsbackend.py", line 309, in add_file_to_media_folder File "lib\site-packages\anki\rsbackend.py", line 212, in _run_command anki.rsbackend.DBError: DBError { info: "SqliteFailure(Error { code: DatabaseBusy, extended_code: 5 }, Some(\"database is locked\"))" }

  1. 1 Posted by kelciour on 08 Apr, 2020 09:36 AM

    kelciour's Avatar

    Thank you for the report. I've uploaded a new version on AnkiWeb. Please use Tools - Add-ons - Check for Updates to update the add-on and restart Anki.

  2. 2 Posted by Lele on 08 Apr, 2020 03:02 PM

    Lele's Avatar

    Thank you 

  3. 3 Posted by Noriyuki on 05 Sep, 2020 02:22 AM

    Noriyuki's Avatar

    I am also facing similar issue, I appreciate if you could help me.

    Caught exception:
    Traceback (most recent call last):
      File "C:\Users\xxxxx\AppData\Roaming\Anki2\addons21\561924305\__init__.py", line 368, in <lambda>
        a.triggered.connect(lambda _, b=browser: onAddImages(b))
      File "C:\Users\xxxxx\AppData\Roaming\Anki2\addons21\561924305\__init__.py", line 361, in onAddImages
        updateNotes(browser, nids)
      File "C:\Users\xxxxx\AppData\Roaming\Anki2\addons21\561924305\__init__.py", line 327, in updateNotes
        r.raise_for_status()
      File "lib\site-packages\requests\models.py", line 940, in raise_for_status
    requests.exceptions.HTTPError: 429 Client Error: Too Many Requests for url: https://www.google.com/sorry/index?continue=https://www.google.com/search%3Ftbm%3Disch%26q%3D%25E9%25BC%25A0%25E8%2589%25B2%25EF%25BC%2588%25E3%2581%25AD%25E3%2581%259A%25E3%2581%25BF%25E3%2581%2584%25E3%2582%258D%25EF%25BC%2589%26safe%3Dactive&q=EgR60qnhGJfry_oFIhkA8aeDS1kzkTgoLlCExUnU0xPbL6YyG78HMgFy

  4. 4 Posted by kelciour on 06 Sep, 2020 08:40 PM

    kelciour's Avatar

    Maybe you used it too much, but I don't know how much is too much. It seems to work fine for a few hundred of cards.

    I added a possible fix for it by sleeping for 30+ seconds if it happens, but maybe it won't be enough.

    At the moment it can be downloaded as .ankiaddon from GitHub and installed either by double-clicking on it or using Tools - Add-ons - Install from file.

    https://github.com/kelciour/batch-download-pictures-from-google-ima...

    As an alternative, waiting for 5 minutes, or maybe a few hours, should be enough to make it disappear for some time.

Comments are closed, but you can start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac