Struggling to get mpf-mc installed on my mac. Initially caused my having
Python 3.7 installed, I was able to get around that part by installing 3.6
and then running the install using:
python3.6 -m pip install mpf-mc
This results in having an issue finding the include SDL.h.
/private/var/folders/tp/2tf55xqx1nz_c64bcwyj0y080000gn/T/pip-install-85odolj3/mpf-mc/mpfmc/core/audio/sound_file.c:524:10: fatal error: 'SDL.h' file not found
#include "SDL.h"
^~~~~~~
1 error generated.
error: command 'gcc' failed with exit status 1
Other things I've tried:
brew install sdl
brew install sdl sdl_image sdl_mixer sdl_ttf portmidibrew install sdl2
brew link sdl
brew link sdl2
pip3 install setuptools --upgrade
Any help would be much appreciated!
SDL2 is implemented in both /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/kivy/.dylibs/SDL2 and /Library/Frameworks/SDL2.framework/Versions/A/SDL2. One of the two will be used. Which one is undefined.
Jan
kivy: Factory: 194 symbols loaded
kivy: Image: Providers: img_tex, img_imageio, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
kivy: VideoGstplayer: Using Gstreamer 1.10.4.0
kivy: Video: Provider: gstplayer
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/bin/mpf", line 11, in <module>
sys.exit(run_from_command_line())
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/mpf/commands/__init__.py", line 176, in run_from_command_line
CommandLineUtility(path).execute()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/mpf/commands/__init__.py", line 152, in execute
*self.parse_args())
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/mpfmc/commands/mc.py", line 200, in __init__
from mpfmc.core.mc import MpfMc
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/mpfmc/core/mc.py", line 41, in <module>
from mpfmc.assets.bitmap_font import BitmapFontAsset
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/mpfmc/assets/bitmap_font.py", line 3, in <module>
from mpfmc.uix.bitmap_font.bitmap_font import BitmapFont
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/mpfmc/uix/bitmap_font/bitmap_font.cpython-36m-darwin.so, 2): Library not loaded: /Library/Frameworks/GStreamer.framework/Versions/1.0/lib/GStreamer
Referenced from: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/mpfmc/uix/bitmap_font/bitmap_font.cpython-36m-darwin.so
Reason: image not found
F:\PinballMachines\mpf-examples-dev_0.51\mpf-examples-dev\demo_man>mpf both -X
(python.exe:6964): GStreamer-WARNING **: Failed to load plugin 'c:\python36\shar
e\gstreamer\bin\libass-9.dll': 'c:\python36\share\gstreamer\bin\libass-9.dll': D
ie angegebene Prozedur wurde nicht gefunden.
(python.exe:6964): GStreamer-WARNING **: Failed to load plugin 'c:\python36\shar
e\gstreamer\bin\libgstassrender.dll': 'c:\python36\share\gstreamer\bin\libgstass
render.dll': Die angegebene Prozedur wurde nicht gefunden.
(python.exe:6964): GStreamer-WARNING **: Failed to load plugin 'c:\python36\shar
e\gstreamer\bin\libgstpango.dll': 'c:\python36\share\gstreamer\bin\libgstpango.d
ll': Die angegebene Prozedur wurde nicht gefunden.
(python.exe:6964): GStreamer-WARNING **: Failed to load plugin 'c:\python36\shar
e\gstreamer\bin\libgstrsvg.dll': 'c:\python36\share\gstreamer\bin\libgstrsvg.dll
': Die angegebene Prozedur wurde nicht gefunden.
WARNING: no real random source present!
(python.exe:6964): GStreamer-WARNING **: Failed to load plugin 'c:\python36\shar
e\gstreamer\bin\libharfbuzz-0.dll': 'c:\python36\share\gstreamer\bin\libharfbuzz
-0.dll': Die angegebene Prozedur wurde nicht gefunden.
(python.exe:6964): GStreamer-WARNING **: Failed to load plugin 'c:\python36\shar
e\gstreamer\bin\libpangocairo-1.0-0.dll': 'c:\python36\share\gstreamer\bin\libpa
ngocairo-1.0-0.dll': Die angegebene Prozedur wurde nicht gefunden.
(python.exe:6964): GStreamer-WARNING **: Failed to load plugin 'c:\python36\shar
e\gstreamer\bin\libpangoft2-1.0-0.dll': 'c:\python36\share\gstreamer\bin\libpang
oft2-1.0-0.dll': Die angegebene Prozedur wurde nicht gefunden.
(python.exe:6964): GStreamer-WARNING **: Failed to load plugin 'c:\python36\shar
e\gstreamer\bin\librsvg-2-2.dll': 'c:\python36\share\gstreamer\bin\librsvg-2-2.d
ll': Die angegebene Prozedur wurde nicht gefunden.
Stopped.
Event: ======'mode_service_stopped'====== Args={}
Event: ======'clear'====== Args={'key': 'service'}
MPF run loop ended.
F:\PinballMachines\mpf-examples-dev_0.51\mpf-examples-dev\demo_man>
kivy: VideoGstplayer: Using Gstreamer 1.10.4.0
kivy: Video: Provider: gstplayer
objc[18501]: Class SDLApplication is implemented in both /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/kivy/.dylibs/SDL2 and /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib. One of the two will be used. Which one is undefined.
objc[18501]: Class SDLAppDelegate is implemented in both /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/kivy/.dylibs/SDL2 and /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib. One of the two will be used. Which one is undefined.
objc[18501]: Class SDLTranslatorResponder is implemented in both /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/kivy/.dylibs/SDL2 and /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib. One of the two will be used. Which one is undefined.
objc[18501]: Class SDLMessageBoxPresenter is implemented in both /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/kivy/.dylibs/SDL2 and /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib. One of the two will be used. Which one is undefined.
objc[18501]: Class SDLOpenGLContext is implemented in both /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/kivy/.dylibs/SDL2 and /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib. One of the two will be used. Which one is undefined.
objc[18501]: Class SDLWindow is implemented in both /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/kivy/.dylibs/SDL2 and /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib. One of the two will be used. Which one is undefined.
objc[18501]: Class Cocoa_WindowListener is implemented in both /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/kivy/.dylibs/SDL2 and /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib. One of the two will be used. Which one is undefined.
objc[18501]: Class SDLView is implemented in both /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/kivy/.dylibs/SDL2 and /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib. One of the two will be used. Which one is undefined.
kivy: Loading MPF-MC controller
1. sudo installer -pkg python-3.6.7-macosx10.6.pkg -target /
2. curl -sS https://bootstrap.pypa.io/get-pip.py > get-pip.py
3. sudo python3 get-pip.py
4. pip3 install setuptools Cython==0.26.1 --upgrade
5. brew install pkg-config sdl2 sdl2_image sdl2_ttf sdl2_mixer gstreamer
6. git clone --recursive --branch dev https://github.com/missionpinball/mpf.git _mpf
7. pip3 install -e _mpf/
8. git clone --depth=50 --branch=update_mac_python_version https://github.com/missionpinball/mpf-mc.git missionpinball/mpf-mc
9. cd missionpinball/mpf-mc
10. git checkout -qf 734ad3d4bb8d1204dbd5f643275ed2985e79ad00
11. pip3 install .kivy: Factory: 194 symbols loaded
kivy: Image: Providers: img_tex, img_imageio, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
kivy: VideoGstplayer: Using Gstreamer 1.10.4.0
kivy: Video: Provider: gstplayer
objc[1702]: Class SDLApplication is implemented in both /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/kivy/.dylibs/SDL2 and /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib. One of the two will be used. Which one is undefined.
objc[1702]: Class SDLAppDelegate is implemented in both /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/kivy/.dylibs/SDL2 and /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib. One of the two will be used. Which one is undefined.
objc[1702]: Class SDLTranslatorResponder is implemented in both /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/kivy/.dylibs/SDL2 and /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib. One of the two will be used. Which one is undefined.
objc[1702]: Class SDLMessageBoxPresenter is implemented in both /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/kivy/.dylibs/SDL2 and /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib. One of the two will be used. Which one is undefined.
objc[1702]: Class SDLOpenGLContext is implemented in both /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/kivy/.dylibs/SDL2 and /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib. One of the two will be used. Which one is undefined.
objc[1702]: Class SDLWindow is implemented in both /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/kivy/.dylibs/SDL2 and /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib. One of the two will be used. Which one is undefined.
objc[1702]: Class Cocoa_WindowListener is implemented in both /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/kivy/.dylibs/SDL2 and /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib. One of the two will be used. Which one is undefined.
objc[1702]: Class SDLView is implemented in both /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/kivy/.dylibs/SDL2 and /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib. One of the two will be used. Which one is undefined.
kivy: Loading MPF-MC controller
mpfmc: Mission Pinball Framework Media Controller v0.51.0-dev.3
mpfmc: Mission Pinball Framework Game Engine v0.51.0-dev.16
Jan