MFP 0.80 on Mac

47 views
Skip to first unread message

Alex Ballingall

unread,
Dec 4, 2025, 4:56:04 PM (13 days ago) Dec 4
to MPF Users
Trying to get back into this after and still can't make MPF work. Current error message:

pkg_resources.DistributionNotFound: The 'ruamel.yaml.clib>=0.2.7; platform_python_implementation == "CPython" and python_version < "3.13"' distribution was not found and is required by ruamel.yaml


Despite this I get told:

Requirement already satisfied: ruamel.yaml.clib in /mpfenv/lib/python3.9/site-packages (0.2.15)

Scott Miles

unread,
Dec 6, 2025, 3:49:26 AM (11 days ago) Dec 6
to MPF Users
I had this problem and traced it to `pip` using one version of python (3.9 in your case), while `mpf` was using a different version (see if you can find a version marker in the error log). 

IIRC, I resolved it by removing a line in my `.zshrc` that was adding a specific (wrong) Python version to my $PATH.

HTH,
Scott

Anthony van Winkle

unread,
Dec 7, 2025, 6:51:05 PM (10 days ago) Dec 7
to MPF Users
I see from the error that you've got a virtual environment (hurray!) so conflicting python installations and paths shouldn't be an issue.

It looks like you have a version of ruamel installed already in your environment, but it's not compatible with the version of python you're using (or rather, it's trying to install a version of ruamel to match your python version and it can't find a compatible one).

One option may be to manually remove the ruamel and ruamel clib packages with pip uninstall, and then explicitly install ruamel.yaml.clib==0.2.12 and ruamel.yaml==0.18.6. These are what I have on my 0.80 installation (via pip list) and it works. On my 0.57 installation I have ruamel.yaml.clib==0.2.7.

Scott Miles

unread,
Dec 12, 2025, 1:52:38 AM (6 days ago) Dec 12
to MPF Users
Obviously AvW is the boss on all of this, so I could be wrong, but I believe it's possible to defeat the virtual environment with a bad PATH. 

The runtime version of Python MPF is using (3.9) is shown on the error line "/mpfenv/lib/python3.9/site-packages". Is a good idea to check it against the version of Python "pip" is using just to make sure.

S
Reply all
Reply to author
Forward
0 new messages