I made a big mistake, updated brew packages (my python packages are also up to date)
And now in brew there is only version 22 of mysqlclient in default mysql v 8.1.0
But python still requires v21 of mysqlclient.
So it looks for /usr/local/Cellar/mysql/8.1.0/lib/libmysqlclient.21.dylib
But there is only /usr/local/Cellar/mysql/8.1.0/lib/libmysqlclient.22.dylib
So how should i manga this?
I had the same issue where my app was trying to find v21 but my system has v22 after Sonoma update. I guess this was because I installed mysql using brew install mysql which installed a non-compatible version. For me this worked in letting my app run :