Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

problem installing MPF

75 views
Skip to first unread message

Charlie Rose

unread,
Jan 16, 2025, 5:57:26 PMJan 16
to MPF Users
Hello everyone, after about 7 years I'm finally getting back to my pinball project converting a Jungle Lord to run on a p-Roc, hardware was built years ago just never had help getting the software installed, now I do,
    I've activated my virtual env and getting stuck on the "mpf/Scripts/Activate.ps1 it seems to install but has errors.

***
 "Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
(mpf) PS C:\Users\Import Medic>
***

doesn't seem to be completing the MPF install process, thoughts?
I'm running win10 and using the current python version. 
thanks for the help.

nick taseris

unread,
Jan 16, 2025, 6:28:47 PMJan 16
to MPF Users
Not sure if this is your issue but I could not get MPF to install and had no clue why but was following all directions. I checked my python version and it was most current 3.13.??. I went back to Python 3.12 and then everything installed just fine.

Something to try, not saying that actually did anything for me but it worked after that lol.

Max Power

unread,
Jan 17, 2025, 12:10:26 PMJan 17
to mpf-...@googlegroups.com

I just went through setup yesterday and fought that error.

Mpf-mc would not build and install, I needed to download Microsoft Build Tools and install the C++ Desktop Development tools.  Maybe there's a way to install the specific components required but I couldnt figure that out.

This requirement is missing from the installation instructions.


--
You received this message because you are subscribed to the Google Groups "MPF Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mpf-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mpf-users/cba517ab-a068-4b87-a63d-8ac25eae97d9n%40googlegroups.com.

Charlie Rose

unread,
Jan 17, 2025, 10:26:26 PMJan 17
to MPF Users
I did install Visual Studio and went back to python 3.12.0 and it did seem the change the error , now I'm getting

***
(mpf) PS C:\Users\impor> mpf --version
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\impor\mpf\scripts\mpf.exe\__main__.py", line 4, in <module>
  File "C:\Users\impor\mpf\Lib\site-packages\mpf\commands\__init__.py", line 6, in <module>
    from pkg_resources import iter_entry_points
ModuleNotFoundError: No module named 'pkg_resources'

****
any ideas?

nick taseris

unread,
Jan 17, 2025, 10:41:00 PMJan 17
to MPF Users
I put that chunk or error into chatgpt and this was the suggestion.  Hope it helps you.Screen Shot 2025-01-17 at 7.39.38 PM.png

Alex L

unread,
Jan 18, 2025, 12:59:07 AMJan 18
to MPF Users

ChatGPT has it exactly right. I wrote the following up for the other thread before I saw the answer in this one. It would still be interesting to know if you’re on 0.80.0.dev6 and ran into this problem.

——————

The quick fix is to run: ‘pip install setuptools’


Anthony fixed the underlying issue causing this a little while ago, and I do see 0.80.0.dev6 (which has the fix) on pypi, so I would have expected ‘pip install mpf —pre’ to have gotten you past this issue. Hmmm. If my suggested fix works for you, would you mind running ‘mpf —version’ in the same window that you installed setuptools, and letting us know what version you’re seeing?

Charlie Rose

unread,
Jan 18, 2025, 10:05:10 AMJan 18
to MPF Users
(mpf) PS C:\Users\impor> mpf --version
Mission Pinball Framework v0.57.3
(mpf) PS C:\Users\impor> pip install mpf --pre
Requirement already satisfied: mpf in c:\users\impor\mpf\lib\site-packages (0.57.3)
Requirement already satisfied: asciimatics==1.15.0 in c:\users\impor\mpf\lib\site-packages (from mpf) (1.15.0)
Requirement already satisfied: packaging==23.2 in c:\users\impor\mpf\lib\site-packages (from mpf) (23.2)
Requirement already satisfied: prompt-toolkit==3.0.43 in c:\users\impor\mpf\lib\site-packages (from mpf) (3.0.43)
Requirement already satisfied: psutil==5.9.8 in c:\users\impor\mpf\lib\site-packages (from mpf) (5.9.8)
Requirement already satisfied: pyserial==3.5 in c:\users\impor\mpf\lib\site-packages (from mpf) (3.5)
Requirement already satisfied: pyserial-asyncio==0.6 in c:\users\impor\mpf\lib\site-packages (from mpf) (0.6)
Requirement already satisfied: ruamel.yaml==0.18.6 in c:\users\impor\mpf\lib\site-packages (from mpf) (0.18.6)
Requirement already satisfied: sortedcontainers==2.4.0 in c:\users\impor\mpf\lib\site-packages (from mpf) (2.4.0)
Requirement already satisfied: terminaltables==3.1.10 in c:\users\impor\mpf\lib\site-packages (from mpf) (3.1.10)
Requirement already satisfied: Pillow==9.5.0 in c:\users\impor\mpf\lib\site-packages (from mpf) (9.5.0)
Requirement already satisfied: pyfiglet>=0.7.2 in c:\users\impor\mpf\lib\site-packages (from asciimatics==1.15.0->mpf) (1.0.2)
Requirement already satisfied: wcwidth in c:\users\impor\mpf\lib\site-packages (from asciimatics==1.15.0->mpf) (0.2.13)
Requirement already satisfied: pywin32 in c:\users\impor\mpf\lib\site-packages (from asciimatics==1.15.0->mpf) (308)
Requirement already satisfied: ruamel.yaml.clib>=0.2.7 in c:\users\impor\mpf\lib\site-packages (from ruamel.yaml==0.18.6->mpf) (0.2.12)

Charlie Rose

unread,
Jan 18, 2025, 10:09:07 AMJan 18
to MPF Users
The install setuptools worked! but now i don't have 0.80 dev6 for some reason

Alex L

unread,
Jan 18, 2025, 10:51:21 AMJan 18
to MPF Users

Progress! I’m not an expert at python package management, but my guess is that is that you had the old version installed some time ago and the new install commands saw that and ended up deciding not to upgrade.


I think ‘pip install mpf —pre —upgrade’ (double dashes, sorry, my editor really wants to combine them lol) should upgrade to 80 dev6.


If that doesn’t work, you can ‘pip uninstall mpf’ and then try the —pre install again.


It’s also possible that you have multiple python versions installed or a python virtual env with the right stuff that just needs to be activated. Hopefully not, because that’s a good bit deeper to get into here, but if you’re still stuck I would suggest some pretty thorough readings of https://missionpinball.org/latest/install/virtual-environments/ and the docs pages from the same section. If you do have some yaml project code from before .80, there is also an upgrade guide page in the same section to help move forward. 

Charlie Rose

unread,
Jan 18, 2025, 2:54:36 PMJan 18
to MPF Users
that did it!! freakn' aye, It was the mpf --pre --upgrade that was the ticket, thanks a mil!
Reply all
Reply to author
Forward
0 new messages