I just tried installing on a Pi5 with the 64bit Bookworm Full Version of RPi OS (with python 3.11.2) using the following commands. I am looking for any assistance regarding the error I get after an apparently successful installation:
python -m venv mpf
source mpf/bin/activate
sudo apt-get update
sudo apt-get install libssl-dev libncurses-dev libffi-dev libreadline-dev libbz2-dev libsqlite3-dev liblzma-dev tk-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libsdl2-mixer-dev libavfilter-dev libsdl2-dev libsdl2-image-dev libavcodec-dev libavformat-dev libswscale-dev libavdevice-dev
pip install mpf
pip install mpf-mc
Everything appears to install correctly without any errors and the pip list shows everything is installed in the virtual environment. But when I try to check the mpf command with a simple "mpf --version" I get the following error:
(mpf) pi@:~ $ mpf --version
Traceback (most recent call last):
File "/home/pi/mpf/bin/mpf", line 8, in <module>
sys.exit(run_from_command_line())
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/mpf/lib/python3.11/site-packages/mpf/commands/__init__.py", line 194, in run_from_command_line
CommandLineUtility(path).execute()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/mpf/lib/python3.11/site-packages/mpf/commands/__init__.py", line 133, in __init__
self.get_external_commands()
File "/home/pi/mpf/lib/python3.11/site-packages/mpf/commands/__init__.py", line 141, in get_external_commands
command, function_ref = entry_point.load()()
^^^^^^^^^^^^^^^^^^
File "/home/pi/mpf/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2770, in load
self.require(*args, **kwargs) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/mpf/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2798, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/mpf/lib/python3.11/site-packages/pkg_resources/__init__.py", line 896, in resolve
dist = self._resolve_dist(
^^^^^^^^^^^^^^^^^^^
File "/home/pi/mpf/lib/python3.11/site-packages/pkg_resources/__init__.py", line 937, in _resolve_dist
raise DistributionNotFound(req, requirers)
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
I do not get this error before the installation of mpf-mc. So something in the installation of mpf-mc is corrupting something for mpf. Any ideas? Here is my pip list for reference:
(mpf) pi@:~ $ pip list
Package Version
------------------ -----------
apigpio-mpf 0.0.4
asciimatics 1.15.0
autocommand 2.2.2
backports.tarfile 1.2.0
certifi 2026.1.4
charset-normalizer 3.4.4
docutils 0.22.4
ffpyplayer 4.5.1
future 1.0.0
idna 3.11
jaraco.context 6.1.0
jaraco.functools 4.4.0
jaraco.stream 3.0.4
Kivy 2.2.1
Kivy-Garden 0.1.5
more-itertools 10.8.0
mpf 0.57.4
mpf-mc 0.57.1
packaging 23.2
Pillow 9.5.0
pip 23.0.1
prompt-toolkit 3.0.43
protobuf 3.14.0
psutil 5.9.8
pyfiglet 1.0.4
Pygments 2.16.1
pyserial 3.5
pyserial-asyncio 0.6
python-dateutil 2.9.0.post0
python-osc 1.7.4
pytz 2025.2
pyusb 1.1.0
requests 2.28.2
ruamel.yaml 0.18.6
ruamel.yaml.clib 0.2.15
setuptools 72.2.0
six 1.17.0
smbus2 0.6.0
smbus2-asyncio 0.0.5
sortedcontainers 2.4.0
terminaltables 3.1.10
urllib3 1.26.20
wcwidth 0.5.3