Odhiambo Washington writes:
After successfully updating my MM3 venv install, I thought I could also keep everything else up to date. One app refuses - mysqlclient. All the rest did update.
Is this a report for our benefit, or are you asking for help? I guess I can just assume the latter, I already figured out what I can say.
(venv) [mailman@gw /opt/mailman/mm]$ pip install -U mysqlclient Requirement already satisfied: mysqlclient in ./venv/lib/python3.11/site-packages (2.1.1)
"Requirement already satisfied" means that you can keep using the existing Python 3 mysqlclient wrapper. There's no need to upgrade immediately.
Exception: Can not find valid pkg-config name. Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually [end of output]
That seems clear enough to me. I don't know much about the MySQL family, so correct me if I'm wrong. As I read the trace, there are two or maybe three MySQL versions that might provide the upstream mysqlclient, and each is expected to provide a pkg-config module which generates a C compiler environment to build code that links to the mysqlclient library. For some reason, your installation of MySQL or MariaDB doesn't provide that pkg-config module, or doesn't provide it in the usual place.
If your distro provided MySQL and separates development information into a separate mysql-dev package, maybe you just need to install that.
Steve