I tried installing latest mplcairo from github, and the problem is gone. So the issue seems to be the current mplcairo release version is not compatible with fedora 35, either python3.10 or some qt (or pythonqt) version issue. -- Those who don't understand recursion are doomed to repeat it