DLL error when importing modules in Python

I am trying to create and edit collections in Python. However, when I try to import _rsbridge in Python, either through from anki.collection import Collection or directly, I get the following error:

“ImportError: DLL load failed while importing _rsbridge: The specified procedure could not be found.”

Am I doing something wrong with the importing or is there another issue?

How did you install Anki, and are you using Python 3.9+?

I installed Anki off of Ankiweb (version 2.1.66 Qt6), downloaded the anki library with pip, and I’m running Python 3.9.1

Was Python downloaded from python.org? Maybe a newer 3.9.x version may fare better?

This might be related: Problem with Qt6 but not with Qt5 · Issue #2459 · ankitects/anki · GitHub

1 Like

Good catch, that’s possible. While Qt is not involved here, I think we depend on some TTS functionality that was not in the original Windows 10 release.

Updating to Python version 3.11.5 fixed the problem. Thank you!

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