I keep getting this pop up everytime i turn on anki. Not sure if it's related to ankihub

Anki 25.02.4 (a5c33ad0) (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.26100

Unknown errorTraceback (most recent call last):
File “aqt”, line 390, in onRecv
File “colorama.ansitowin32”, line 47, in write
File “colorama.ansitowin32”, line 177, in write
File “colorama.ansitowin32”, line 205, in write_and_convert
File “colorama.ansitowin32”, line 211, in write_plain_text
AttributeError: ‘ErrorHandler’ object has no attribute ‘flush’

Error in sys.excepthook:
Traceback (most recent call last):

Original exception was:
Traceback (most recent call last):

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AMBOSS Official Medical School Step Shelf Study Resource [‘1044112126’, 2998-12-31T19:00, ‘None’, mod]
Add Hyperlink [‘318752047’, 2023-06-18T07:39, ‘None’, ‘’]
Advanced Browser [‘874215009’, 2024-10-27T10:20, ‘None’, ‘’]
Advanced Card Styles [‘1625103157’, 2021-12-28T12:50, ‘None’, ‘’]
AnKing Note Types Easy Customization [‘952691989’, 2025-03-25T17:57, ‘None’, ‘’]
Anki Simulator [‘817108664’, 2023-11-06T12:26, ‘None’, ‘’]
AnkiHub [‘1322529746’, 2025-04-28T09:54, ‘None’, ‘’]
Batch Editing [‘291119185’, 2023-10-25T20:38, ‘None’, ‘’]
BetterSearch [‘1052724801’, 2025-04-06T17:13, ‘None’, ‘’]
Browser Resizer [‘1435775540’, 2025-01-28T06:03, ‘None’, ‘’]
Clickable Tags v20 original [‘380714095’, 2022-01-30T17:58, ‘None’, ‘’]
Contanki - Controller Support for Anki beta [‘1898790263’, 2024-02-29T20:22, ‘v1.0.2’, mod]
FSRS Helper Postpone Advance Load Balance Easy Days Disperse Siblings [‘759844606’, 2025-04-27T22:32, ‘None’, ‘’]
Fastbar- with nightmode support [‘46611790’, 2025-01-27T17:52, ‘None’, ‘’]
Find cards from UWorld test [‘444814983’, 2024-07-19T02:19, ‘None’, ‘’]
Image Occlusion Enhanced [‘1374772155’, 2022-04-09T03:15, ‘None’, ‘’]
Review Heatmap [‘1771074083’, 2022-06-29T21:43, ‘None’, ‘’]
add-on dialog searchfilter bar [‘561945101’, 2023-10-18T12:22, ‘None’, ‘’]

===IDs of active AnkiWeb add-ons===
1044112126 1052724801 1322529746 1374772155 1435775540 1625103157 1771074083 1898790263 291119185 318752047 380714095 444814983 46611790 561945101 759844606 817108664 874215009 952691989

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])

Thank you for reaching out! Our moderators have been notified and will assist you shortly. In the meantime, you can get an instant response from me simply by @ mentioning my username`. Alternatively, start a private conversation with me (see screenshot below). If you ask me a question, I will do my best to respond using only verified information found in the official AnkiHub docs and the Anki manual.

You can also find answers to common questions in our FAQ and Docs.

I’ll help you with this error message you’re getting when starting Anki. Let me search for similar issues in the community to find a solution.

Search

Found 0 results for 'tags:official colorama ansitowin32 error ankihub status:public'

Search

Found 0 results for 'tags:official colorama error flush status:public'

Search

Found 0 results for 'tags:official AttributeError ErrorHandler flush status:public'

Search

Found 5 results for 'tags:official anki error startup status:public'

Search

Found 5 results for 'tags:official addon conflict troubleshooting status:public'

Read topic

Reading: Why can't I update the AnkiHub addon?

Based on your error message, it looks like you’re experiencing an issue with the colorama module in Anki. This appears to be an add-on conflict rather than an issue specifically related to AnkiHub.

Troubleshooting Steps

Since you have multiple add-ons installed, it’s likely that one of them is causing a conflict. Here’s how to resolve this:

1. Start Anki in Safe Mode

This is the most efficient way to identify if an add-on is causing the problem:

  1. Close Anki completely
  2. Restart Anki while holding down the Shift key
  3. This will start Anki without loading any add-ons

If Anki starts without the error in safe mode, then one of your add-ons is definitely the culprit.

2. Identify the Problematic Add-on

If safe mode fixed the issue, you’ll need to find which add-on is causing problems:

  1. Close Anki again
  2. Restart normally (without holding shift)
  3. Go to ToolsAdd-ons
  4. Disable approximately half of your add-ons by selecting them and clicking the toggle button
  5. Restart Anki
  6. If the error still appears, the problem is in the enabled half. If not, it’s in the disabled half.
  7. Repeat this process, narrowing down which add-on or combination of add-ons is causing the issue

3. Update Add-ons

Sometimes errors occur because of outdated add-ons:

  1. In safe mode (hold shift while starting Anki)
  2. Go to ToolsAdd-onsCheck for Updates
  3. Restart Anki normally after updates are complete

4. Check Database

It’s also worth running the database check:

  1. Go to ToolsCheck Database

If you continue to have issues after trying these steps, please let us know which add-on was causing the problem, or if you need further assistance.

Hello,

This issue is likely caused by an add-on. Try the following steps:

Temporarily disable all add-ons to check for conflicts:

  • Start Anki while holding down the Shift key on your keyboard.
  • Keep holding Shift until a window appears asking if you want to disable add-ons.
  • Click Yes.
  • If the issue does not occur, it means one of the add-ons is causing the problem.

Then, identify the problematic add-on:

  1. Start Anki normally (without holding Shift) so add-ons are enabled.
  2. Go to Tools > Add-ons.
  3. Select AnkiHub from the list.
  4. Click the Toggle Enabled button to disable it.
  5. Restart Anki (this is required for changes to take effect).

Now:

  • If the bug still occurs: AnkiHub is likely not the primary cause. You can re-enable AnkiHub and try disabling other add-ons one by one to find the culprit.
  • If the bug does not occur: AnkiHub is likely the cause, either directly or due to a conflict with another add-on or Anki itself. In that case, let us know, and we’ll help you troubleshoot further.

Let me know how it goes and feel free to ask if you run into any trouble with these steps!:blush: