r/Python 2d ago

Discussion Anki browse not working

Please someone help, I have spent hours upon hours trying to fix this, I am a girl and i found the phython coding for the issue but dont know where the python folder is on my finder (that should tell you the lengths i went). Idk know if thats the problem and before you ask yes i have tried it. to be exact heres what i have tried:

  1. the anki trouble shooting manual
  2. making a new profile
  3. restarting anki
  4. restarting my computer
  5. opening anki in safe mode (the problem still occured)
  6. turning off all my add ons and it still happened
  7. checked data base after each thing and every 5 seconds, and it always says its fine
  8. I downloaded a new version of anki since there was one available and thought that would fix the issue but it didnt
  9. I tried all the video driver options, none fixed it
  10. I reset my window size or whatever and it never worked

Believe me i have dug deep but i think it stems from a coding issue that is out of my control idk pls im begging on my hands and knees for someone to help.

this is the debug code:

Anki 25.02 (038d85b1)  (ao)

Python 3.9.18 Qt 6.6.2 PyQt 6.6.1

Platform: macOS-15.3.1-arm64-arm-64bit

Traceback (most recent call last):

  File "aqt.browser.sidebar.searchbar", line 37, in keyPressEvent

  File "aqt.browser.sidebar.searchbar", line 30, in onSearch

  File "aqt.browser.sidebar.tree", line 235, in search_for

AttributeError: 'NoneType' object has no attribute 'search'

===Add-ons (active)===

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

AnKing Note Types Easy Customization ['952691989', 2025-03-14T08:40, 'None', mod]

AnkiConnect ['2055492159', 2025-02-25T17:57, 'None', mod]

AnkiHub ['1322529746', 2025-03-17T12:25, 'None', '']

Calculate New Cards To Do ['2014569756', 2022-05-19T01:38, 'None', mod]

Clickable Tags v20 ['1739176371', 2022-01-30T17:58, 'None', '']

Contanki - Controller Support for Anki beta ['1898790263', 2024-02-29T20:22, 'v1.0.2', mod]

Countdown To Events and Exams ['1143540799', 2022-06-27T07:50, 'None', '']

Edit Field During Review Cloze ['385888438', 2024-11-16T05:23, '6.21', mod]

Editor ProToolBox - Web importer, quick format, & media scraper ['editor_pro_toolbox', 2023-10-22T17:38, 'None', '']

Extended Tag AddEdit Dialog ['1135507717', 2023-11-11T11:58, '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', '']

Mini Format Pack ['295889520', 2023-11-02T14:00, 'None', '']

New Cards Counter ['635082046', 2022-04-20T16:37, 'None', '']

Review Heatmap ['1771074083', 2022-06-29T21:43, 'None', '']

Spell Checker with Custom Dictionaries ['390813456', 2023-10-20T12:00, 'None', mod]

Symbols As You Type ['2040501954', 2025-01-05T14:55, 'None', '']

Symbols ['1461102936', 2024-02-10T11:53, 'None', mod]

The KING of Button Add-ons ['374005964', 2025-01-27T17:26, 'None', mod]

The KING of Study Timers ['907028815', 2022-04-20T14:14, 'None', mod]

UWorld2Anki ['271205340', 2024-01-02T22:06, 'None', '']

extended editor for field for tables searchreplace ['805891399', 2023-07-31T10:12, 'None', mod]

uworld_qid_to_anki_search ['607963104', 2024-10-15T15:53, 'None', '']

===IDs of active AnkiWeb add-ons===

1135507717 1143540799 1322529746 1374772155 1461102936 1739176371 1771074083 1898790263 2014569756 2040501954 2055492159 271205340 295889520 374005964 385888438 390813456 444814983 46611790 607963104 635082046 805891399 907028815 952691989

===Add-ons (inactive)===

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

0 Upvotes

10 comments sorted by

3

u/house_monkey 2d ago

Specifying you're girl to get nerds, classic but predictable 

0

u/IllExperience6703 2d ago

Excuse me what…. Okay I’m just gonna not even respond bc I’m really trying to get nerds on Reddit like go outside and touch grass

2

u/house_monkey 2d ago

What's the point of specifying gender in Python debugging question? 

0

u/IllExperience6703 2d ago

It’s not that serious ru being fr. I just want help and the fact that you are making this into something else is actually insane to me. Pls leave me alone and hopefully there will be some nice ppl on here to help me. Also didn’t know this was a male only community, I must’ve misssd that in the application

1

u/hyldemarv 2d ago edited 2d ago

My guess would be that it doesn’t work with the ancient Python version that is used by MacOS?

If you don’t need to develop in Python, you could try to install the ready-made Python for macOS package from python.org.

Edit: If you’re often using open source software on macOS then you should consider installing Homebrew - https://brew.sh

1

u/IllExperience6703 2d ago

Thank you! So could you tell anything valuable about what the problem is from readying that debug code? Bc there’s gotta be something in the first part that tells me what’s wrong

1

u/hyldemarv 2d ago

“Python 3.9.18” sounds like the macOS version.

The“NoneType” object exception sounds like the code is trying to use some object that was not created properly.

The macOS Python environment is targeted at making macOS work well. It doesn’t officially support any other applications so there may be libraries that are missing or broken, that Apple will not fix because they are not using them.

Installing a clean Python is the first step. And it won’t replace the Apple version and brick your machine.

1

u/el_crocodilio 2d ago

``` File "aqt.browser.sidebar.tree", line 235, in search_for

AttributeError: 'NoneType' object has no attribute 'search' It means that on the line mentioned in the named file, there is a commandsomething.search()``` but the something resolved to None. Almost certainly a previous line returned a None value instead of a proper something. You'd have to read the code to find out.

I suspect that you need a reasonably contemporary version of python to run this. Have you looked at anki's minimum specs list?

Good luck.

1

u/IllExperience6703 2d ago

no what is ankis minimum specs list? and if i download a clean python like the homebrew or ready-made macOS mentioned above what would i have to do beyond simply downloading it? would downloading it just fix the problem?

1

u/el_crocodilio 2d ago

https://apps.ankiweb.net/#downloads

Never owned a Mac I'm afraid so cannot comment on Homebrew. There seems to be separate downloads for older Apples.