Find cards from uworld test addon not working on anking

Before the error happened, I was…
[Replace this text.]

Error message (don't change this)
Anki 25.09.2 (3890e12c) (ao)
Python 3.13.5 Qt 6.9.1 PyQt 6.9.1
Platform: macOS-26.3.1-arm64-arm-64bit-Mach-O

Traceback (most recent call last):

  File "/Users/Krithika/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/taskman.py", line 152, in raise_exception
    raise exception

  File "/Users/Krithika/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/taskman.py", line 148, in _on_closures_pending
    closure()
    ~~~~~~~^^

  File "/Users/Krithika/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/taskman.py", line 88, in <lambda>
    lambda future: self.run_on_main(lambda: on_done(future))
                                            ~~~~~~~^^^^^^^^

  File "/Users/Krithika/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/operations/__init__.py", line 253, in wrapped_done
    self._failure(exception)
    ~~~~~~~~~~~~~^^^^^^^^^^^

  File "/Users/Krithika/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 87, in on_failure
    raise exception

  File "/Users/Krithika/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-aarch64-none/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)

  File "/Users/Krithika/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/operations/__init__.py", line 243, in wrapped_op
    return self._op(mw.col)
           ~~~~~~~~^^^^^^^^

  File "/Users/Krithika/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 91, in <lambda>
    op=lambda _: self._client.upload_media(media_paths, ankihub_did),
                 ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/Krithika/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 467, in upload_media
    if media_path.is_file():
       ~~~~~~~~~~~~~~~~~~^^

  File "/Users/Krithika/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-aarch64-none/lib/python3.13/pathlib/_abc.py", line 482, in is_file
    return S_ISREG(self.stat(follow_symlinks=follow_symlinks).st_mode)
                   ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/Krithika/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-aarch64-none/lib/python3.13/pathlib/_local.py", line 515, in stat
    return os.stat(self, follow_symlinks=follow_symlinks)
           ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

OSError: [Errno 63] File name too long: '/Users/Krithika/Library/Application Support/Anki2/User 1/collection.media/data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAADkElEQVR42rVVS0iUYRSdoqKiVWFR0ANatGndvl20K5AgyHwhCr5Rx+f4dpwc329FfOs4vhqf46jjOONrHBUXhZvaREIZZAhBJOPtnB9nk+OQMi0uXO73/ffc79xz768SEdX/tH++mJOTczYqKuplbGxsTHBw8EW/A8TFxYWVl5e7KysrJTk5We9XgJSUlCKdTvexpaVFaBUVFdtpaWn5fgEICwu7ioQ7PT090tvbqxj9qqqqnaCgoGsnAggMDLwEu5KQkPAsIyNDm5iYeJvxvLy8mb6+PvfIyIjQjEajmzGeJSUlXU9NTc3GN0/Yp4iIiPNeASIjIx8i6WZhYeG3mpqan11dXaLVaoeUSyrVmZKSkrczMzNCo88Yz3DHyBdVV1fvFhUVfUIOF8Tw4AhATExMMp4tzc3N0tnZKf39/VJaWupAVRd4jgQGu90uNPoeZYE+68DAgHR3dyv9wZlAaUneAAJyc3Pft7W1icFgEJPJJJOTk9LY2LiRlZUVUVtb61hcXBRaXV2dXaPRvEIxS7wzOjpK2qS9vV0KCgq2oqOjb3ntQX5+/hSrZ0UTExMyNzenVGy1WmVpaUmWl5cVo8+Yw+EQm80mZrNZhoaGlFcAwHxsk9VqtQ7V7ZWVlW2AnnFU95tJmHBlZUVWV1cVczqdSmxhYUEsFss+qDWjb+/wol9ouN6nTMPDw29ACZfpg7JA9OIzq2bitbU1WV9fV3zGBgcHt9GHUI+cMeH3PM0/FiAkJCSAUj1sYjCTsFpW7XK5FKNPgOHh4S+gJJpJORMAuesTABOrxlN/YB1sgiJQa94nRWwsEzIxjXQRlGfT09MHuG/Hd1tNTU2+KQIlE1QCFTE2NqZofn5+XmZnZxUQJqXRZ8wjgPHxcUUYFAhyWLwCQKaPiouLt6llDg5VQZCGhoZNyDQcMrWyYhq0bktPTw/F2QqTgyplhbS2tgp21g7m4PERgPj4+GxsSyYUzyzo9Xqnp+FQioGSpNE/7NE5DiPWiHR0dAgoEm5bbF6NtxfcRw9smZmZG7i0R6ow+lOeiUVlJs4GB4s+YzxDk0eYHBO9i+FbhdSnAHDH5zbFa55jHWs9OwWLzYohOuD6OFwLB4wd3r2JpBosxqenWteUH6j6StpYKY2vAzXfT7yuffxwskHXh/r6eqVHBETsjV9/mVDGa3DvRnIBHZV+/ydzQrElXwAo5e+fil8ATmt/AOh9KEgi19yvAAAAAElFTkSuQmCC'

Sentry link (for developers)

Hello,

It looks like an image was pasted into one of your cards as a raw Base64 data string instead of being saved as a standard image file (like picture.png). This sometimes happens when you copy and paste images directly from certain websites or other apps.

Because the file name is thousands of characters of raw code, macOS rejected it for being too long.

Please try these steps to fix the issue:

  1. In the Anki browser, paste the following into the search bar: “data:image/png;base64” (including the quotation marks).
  2. Click on the card that appears in the results. You might see a broken image icon or a massive block of text in one of your fields. Please delete it.
    If you do not see the text immediately, click into the field where the image should be and open the HTML editor by pressing Cmd + Shift + X on your Mac (or by clicking the < > icon above the text box). Look for the giant block of code starting with <img src="data:image/png;base64… and delete the entire tag.

Hey when I put in the QIDs it just shows up as a blank screen instead of the cards

To use the UWorld QIDs to Anki Search add-on correctly, follow the tutorial here: https://courses.theanking.com/products/anking-vip-platinum-tier/categories/4385543/posts/2157381202

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.