Upgraded to v0.56 and now mpf monitor won't launch.

230 views
Skip to first unread message

Bowman9

unread,
Oct 31, 2023, 12:39:29 AM10/31/23
to MPF Users
I was stupid and upgraded to v0.56 and now things are not working correctly, mpf monitor won't launch.

Is there a fix?
Do I need to downgrade to a stable version? If so how and which version.

MPF v0.56.2
Python 3.9.13
Windows 10 Home version 22H2

Here is the error message when closing mpf both

(python.exe:12980): GStreamer-WARNING **: 00:20:52.806: Failed to load plugin 'C:\Python\share\gstreamer\bin\gioopenssl.dll': 'C:\Python\share\gstreamer\bin\gioopenssl.dll': The specified module could not be found.

(python.exe:12980): GStreamer-WARNING **: 00:21:00.724: Failed to load plugin 'C:\Python\share\gstreamer\bin\gstrtmp.dll': 'C:\Python\share\gstreamer\bin\gstrtmp.dll': The specified module could not be found.

(python.exe:12980): GStreamer-WARNING **: 00:21:03.831: Failed to load plugin 'C:\Python\share\gstreamer\bin\librtmp-1.dll': 'C:\Python\share\gstreamer\bin\librtmp-1.dll': The specified module could not be found.
libpng warning: iCCP: known incorrect sRGB profile
Shutdown reason: BCP client local_display disconnected and exit_on_close is set

And here is the error message I receive when trying to launch mpf monitor.

C:\Pinball\your_machine>mpf monitor
Traceback (most recent call last):
  File "C:\Python\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Python\Scripts\mpf.exe\__main__.py", line 7, in <module>
  File "C:\Python\lib\site-packages\mpf\commands\__init__.py", line 194, in run_from_command_line
    CommandLineUtility(path).execute()
  File "C:\Python\lib\site-packages\mpf\commands\__init__.py", line 168, in execute
    self.external_commands[command](self.mpf_path,
  File "C:\Python\lib\site-packages\mpfmonitor\commands\monitor.py", line 100, in __init__
    from mpfmonitor.core.mpfmon import run
  File "C:\Python\lib\site-packages\mpfmonitor\core\mpfmon.py", line 10, in <module>
    from PyQt6.QtCore import *
ImportError: DLL load failed while importing QtCore: The specified procedure could not be found.

Bowman9

unread,
Oct 31, 2023, 1:48:51 AM10/31/23
to MPF Users
I just double checked and the dll files are located in the folders that the error message is pointing to.

Avery Tummons

unread,
Oct 31, 2023, 9:12:39 AM10/31/23
to mpf-...@googlegroups.com
Can you run pip list from command prompt and post it?
Sent from my iPhone

On Oct 31, 2023, at 12:48 AM, Bowman9 <grumpy...@gmail.com> wrote:

I just double checked and the dll files are located in the folders that the error message is pointing to.
--
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 on the web visit https://groups.google.com/d/msgid/mpf-users/a1013f6e-e00b-4353-bafe-74a14c88db52n%40googlegroups.com.

Bowman9

unread,
Oct 31, 2023, 1:09:13 PM10/31/23
to MPF Users
Here ya go

Package             Version
------------------- ---------
asciimatics         1.12.0
certifi             2023.7.22
charset-normalizer  3.3.1
docutils            0.20.1
ffpyplayer          4.3.5
future              0.18.3
idna                3.4
Kivy                2.1.0
kivy-deps.angle     0.3.3
kivy-deps.glew      0.3.1
kivy-deps.gstreamer 0.3.3
kivy-deps.sdl2      0.4.5
Kivy-Garden         0.1.5
mpf                 0.56.2
mpf-mc              0.56.1
mpf-monitor         0.56.1
packaging           23.2
Pillow              10.1.0
pip                 22.0.4
prompt-toolkit      3.0.33
psutil              5.9.4
pyfiglet            1.0.2
Pygments            2.14.0
pypiwin32           223
PyQt6               6.4.2
PyQt6-Qt6           6.6.0
PyQt6-sip           13.6.0
pyserial            3.5
pyserial-asyncio    0.4
pywin32             306
requests            2.31.0
ruamel.yaml         0.15.42
setuptools          58.1.0
sortedcontainers    2.3.0
terminaltables      3.1.0
urllib3             2.0.7
wcwidth             0.2.9
WARNING: You are using pip version 22.0.4; however, version 23.3.1 is available.
You should consider upgrading via the 'C:\Python\python.exe -m pip install --upgrade pip' command.

Avery Tummons

unread,
Oct 31, 2023, 2:32:55 PM10/31/23
to mpf-...@googlegroups.com
Not a helpful answer, but that looks correct. Did you setup a virtual environment you aren’t in before running? Are you in the right folder when starting your game?

If all else fails uninstall and reinstall?


Sent from my iPhone

On Oct 31, 2023, at 12:09 PM, Bowman9 <grumpy...@gmail.com> wrote:



Bowman9

unread,
Oct 31, 2023, 10:38:14 PM10/31/23
to MPF Users
I have uninstalled and reinstalled python and mpf multiply times with no luck.
I even tried installing older versions of mpf (0.53, 0.54, 0.55) along with an older version of python (3.6) and can't any of them to work :(

So, I reinstalled MPF v0.56.2 and Python 3.9.13 and can only get the attract mode to work in MC.
Monitor crashes upon launch and if I try and start a game everything crashes.

error message when trying to start a game.

(python.exe:2356): GStreamer-WARNING **: 22:32:33.420: Failed to load plugin 'C:\Users\bowma\AppData\Local\Programs\Python\Python39\share\gstreamer\bin\gioopenssl.dll': 'C:\Users\bowma\AppData\Local\Programs\Python\Python39\share\gstreamer\bin\gioopenssl.dll': The specified module could not be found.

(python.exe:2356): GStreamer-WARNING **: 22:32:33.624: Failed to load plugin 'C:\Users\bowma\AppData\Local\Programs\Python\Python39\share\gstreamer\bin\gstrtmp.dll': 'C:\Users\bowma\AppData\Local\Programs\Python\Python39\share\gstreamer\bin\gstrtmp.dll': The specified module could not be found.

(python.exe:2356): GStreamer-WARNING **: 22:32:33.919: Failed to load plugin 'C:\Users\bowma\AppData\Local\Programs\Python\Python39\share\gstreamer\bin\librtmp-1.dll': 'C:\Users\bowma\AppData\Local\Programs\Python\Python39\share\gstreamer\bin\librtmp-1.dll': The specified module could not be found.

libpng warning: iCCP: known incorrect sRGB profile
Shutdown reason: BCP client local_display disconnected and exit_on_close is set

error message when launching monitor

Traceback (most recent call last):
  File "C:\Users\bowma\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\bowma\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\bowma\AppData\Local\Programs\Python\Python39\Scripts\mpf.exe\__main__.py", line 7, in <module>
  File "C:\Users\bowma\AppData\Local\Programs\Python\Python39\lib\site-packages\mpf\commands\__init__.py", line 194, in run_from_command_line
    CommandLineUtility(path).execute()
  File "C:\Users\bowma\AppData\Local\Programs\Python\Python39\lib\site-packages\mpf\commands\__init__.py", line 168, in execute
    self.external_commands[command](self.mpf_path,
  File "C:\Users\bowma\AppData\Local\Programs\Python\Python39\lib\site-packages\mpfmonitor\commands\monitor.py", line 100, in __init__
    from mpfmonitor.core.mpfmon import run
  File "C:\Users\bowma\AppData\Local\Programs\Python\Python39\lib\site-packages\mpfmonitor\core\mpfmon.py", line 10, in <module>

    from PyQt6.QtCore import *
ImportError: DLL load failed while importing QtCore: The specified procedure could not be found.

pip list
Any thoughts or ideas???

Bowman9

unread,
Nov 1, 2023, 12:29:16 AM11/1/23
to MPF Users
I was just thinking, seeing that MPF can be touchy at times. Like seeing an unused image or sound file it does not like sitting in the same folder as the rest, which can cause issues. Is there a simple sample (virtual) game available that uses both MC and Monitor and is know to work with MPF 0.56 and python 3.9 that can be used for testing? That way I and others would know that the issue may be that our game code needs to be updated/modified/fixed to work with the newest version and that issue is not necessarily a software or install problem.

Just an idea.

Avery Tummons

unread,
Nov 1, 2023, 12:53:35 AM11/1/23
to mpf-...@googlegroups.com
I think the demo man game should work for that version.

Your error about MPF crashing isn’t telling the story. The Gstreamer is nothing related to that. The BCP message means likely MC crashed, this MPF ends.

Go to your logs folder and find two one for mpf and one for mpfmc.  Look at both (bottom up) and you’ll find the crash and a real error. If you need help feel free to post the logs here.

Sent from my iPhone

On Oct 31, 2023, at 11:29 PM, Bowman9 <grumpy...@gmail.com> wrote:

I was just thinking, seeing that MPF can be touchy at times. Like seeing an unused image or sound file it does not like sitting in the same folder as the rest, which can cause issues. Is there a simple sample (virtual) game available that uses both MC and Monitor and is know to work with MPF 0.56 and python 3.9 that can be used for testing? That way I and others would know that the issue may be that our game code needs to be updated/modified/fixed to work with the newest version and that issue is not necessarily a software or install problem.

Bowman9

unread,
Nov 1, 2023, 3:44:50 PM11/1/23
to MPF Users
Here is a portion of the mpf log I think may be causing the issue. 
To me it looks like the ball won't eject into the shooter lane and then causes the crash, remember this is all virtual there is no physical game.
Ideas, thoughts?

2023-11-01 15:35:09,933 : INFO : Mode.base : Started. Priority: 100
2023-11-01 15:35:09,933 : INFO : EventManager : Event: ======'modes_active_modes_changed'====== Args={}
2023-11-01 15:35:09,933 : INFO : EventManager : Event: ======'mode_base_started'====== Args={'queue': <QueuedEvent>, 'player': 1, 'ball': 1, 'balls_remaining': 2, 'is_extra_ball': False}
2023-11-01 15:35:09,937 : INFO : EventManager : Event: ======'balls_in_play'====== Args={'balls': 1}
2023-11-01 15:35:09,938 : INFO : EventManager : Event: ======'ball_started'====== Args={'player': 1, 'ball': 1, 'balls_remaining': 2, 'is_extra_ball': False}
2023-11-01 15:35:09,962 : INFO : EventManager : Event: ======'single_player_ball_started'====== Args={}
2023-11-01 15:35:09,962 : INFO : EventManager : Event: ======'ball_start_target'====== Args={'target': 'playfield'}
2023-11-01 15:35:09,963 : INFO : ball_device.bd_plunger_lane : Setting up player-controlled eject. Balls: 1, Target: <playfield.playfield>, player_controlled_eject_event: None
2023-11-01 15:35:09,963 : INFO : EventManager : Event: ======'balldevice_balls_available'====== Args={}
2023-11-01 15:35:09,964 : INFO : ball_device.bd_drain : State: waiting_for_target_ready
2023-11-01 15:35:09,965 : INFO : EventManager : Event: ======'balldevice_bd_drain_ball_eject_attempt'====== Args={'balls': 1, 'target': <ball_device.bd_plunger_lane>, 'source': <ball_device.bd_drain>, 'mechanical_eject': True, 'num_attempts': 0}
2023-11-01 15:35:09,965 : INFO : ball_device.bd_plunger_lane : State: waiting_for_ball
2023-11-01 15:35:09,965 : INFO : ball_device.bd_drain : State: ejecting
2023-11-01 15:35:09,966 : INFO : ball_device.bd_drain : Ejecting ball to <ball_device.bd_plunger_lane>
2023-11-01 15:35:09,966 : INFO : EventManager : Event: ======'balldevice_bd_drain_ejecting_ball'====== Args={'balls': 1, 'target': <ball_device.bd_plunger_lane>, 'source': <ball_device.bd_drain>, 'mechanical_eject': True, 'num_attempts': 0}
2023-11-01 15:35:09,967 : INFO : ball_device.bd_drain : Wait for ball to leave device
2023-11-01 15:35:09,967 : INFO : coil.c_drain_eject : Pulsing Driver for 20ms (1.0 pulse_power)
2023-11-01 15:35:09,987 : INFO : EventManager : Event: ======'slide_base.slide_player-mode_base_started_created'====== Args={'_from_bcp': True}
2023-11-01 15:35:13,015 : INFO : Machine : Shutting down...
2023-11-01 15:35:13,015 : INFO : EventManager : Event: ======'shutdown'====== Args={}
2023-11-01 15:35:13,026 : INFO : EventManager : Event: ======'mode_game_will_stop'====== Args={}
2023-11-01 15:35:13,026 : INFO : EventManager : Event: ======'mode_game_stopping'====== Args={}
2023-11-01 15:35:13,026 : INFO : EventManager : Event: ======'mode_base_will_stop'====== Args={}
2023-11-01 15:35:13,026 : INFO : EventManager : Event: ======'mode_base_stopping'====== Args={}
2023-11-01 15:35:13,026 : INFO : Mode.base : Stopped.
2023-11-01 15:35:13,026 : INFO : EventManager : Event: ======'modes_active_modes_changed'====== Args={}
2023-11-01 15:35:13,026 : INFO : EventManager : Event: ======'mode_base_stopped'====== Args={}
2023-11-01 15:35:13,026 : INFO : EventManager : Event: ======'clear'====== Args={'key': 'base'}
2023-11-01 15:35:13,026 : INFO : Mode.game : Stopped.
2023-11-01 15:35:13,026 : INFO : EventManager : Event: ======'modes_active_modes_changed'====== Args={}
2023-11-01 15:35:13,026 : INFO : EventManager : Event: ======'mode_game_stopped'====== Args={}
2023-11-01 15:35:13,026 : INFO : EventManager : Event: ======'clear'====== Args={'key': 'game'}
2023-11-01 15:35:13,036 : INFO : root : MPF run loop ended.

Bowman9

unread,
Nov 1, 2023, 6:52:51 PM11/1/23
to MPF Users
I made a little progress.
I went through and cleaned up the spacing in my yaml files and got a game to start in MPF 0.56.
The thing I found odd about this is that these files worked in MPF 0.53. ¯\_(ツ)_/¯

Now a new issue has popped up, any switch/hit I had associated with a sound will cause MPF to crash.
Was there a change made to the sound file requirements? I did not run into this issue with 0.53.
I am using .wav and .ogg sound files.

And unfortunately MPF Monitor still crashes when trying to launch it, any clue to what might be causing it?

Bowman9

unread,
Nov 2, 2023, 12:56:26 AM11/2/23
to MPF Users
Okay, I went through and re-saved all my sound files as 16-bit wav. This stopped the MPF 0.56 from crashing when a sound was played.

However, MPF Monitor still crashes when I try to launch it, any clue to what might be causing it?
The MPF Monitor log is blank.

Here is the only info I can offer.

C:\Pinball\your_machine>mpf monitor
Traceback (most recent call last):
  File "C:\Users\bowma\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\bowma\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\bowma\AppData\Local\Programs\Python\Python39\Scripts\mpf.exe\__main__.py", line 7, in <module>
  File "C:\Users\bowma\AppData\Local\Programs\Python\Python39\lib\site-packages\mpf\commands\__init__.py", line 194, in run_from_command_line
    CommandLineUtility(path).execute()
  File "C:\Users\bowma\AppData\Local\Programs\Python\Python39\lib\site-packages\mpf\commands\__init__.py", line 168, in execute
    self.external_commands[command](self.mpf_path,
  File "C:\Users\bowma\AppData\Local\Programs\Python\Python39\lib\site-packages\mpfmonitor\commands\monitor.py", line 100, in __init__
    from mpfmonitor.core.mpfmon import run
  File "C:\Users\bowma\AppData\Local\Programs\Python\Python39\lib\site-packages\mpfmonitor\core\mpfmon.py", line 10, in <module>
    from PyQt6.QtCore import *
ImportError: DLL load failed while importing QtCore: The specified procedure could not be found.

PIP List
You should consider upgrading via the 'C:\Users\bowma\AppData\Local\Programs\Python\Python39\python.exe -m pip install --upgrade pip' command.

Bowman9

unread,
Nov 6, 2023, 10:02:12 PM11/6/23
to MPF Users
I tried reinstalling MPF Monitor with no luck.

Out of curiosity I looked at a couple of the python files in C:\Users\bowma\AppData\Local\Programs\Python\Python39\Lib\site-packages\mpfmonitor\core and there are a large number of "Problems / Warnings" listed in each of them. 

Is there a fix or updated files available?

leeoneil

unread,
Nov 7, 2023, 3:22:41 AM11/7/23
to MPF Users
I had the same kind of problem a while ago.µ
It was probably different version of mpf and mpf monitor in cnflict.
The only "easy" solution I found was to clean completly my install (format) and re-install everything.

You can do it by creating a new user if you are using windows....
If your computer if for MPF use only, it's super fast to re-install everything.

Bowman9

unread,
Nov 19, 2023, 1:56:39 PM11/19/23
to MPF Users
I finally got a chance to created a new user profile on my laptop with admin rights and installed python and MPF, and unfortunately monitor still will not run :(
In fact Media controller crashes as well, which is odd because if I run the game under the old user profile it works fine.But running it under the new user profile it has issues reading zipped image files. I'm using zipped numbered images to create animations.

Any other thoughts before I have to wipe the machine?

Bowman9

unread,
Dec 9, 2023, 9:50:35 PM12/9/23
to MPF Users
Ugh... okay, I reinstalled Windows 10 using the built in Windows utility.
I had it delete all apps and files, as well as clean data.
Disabled S mode, then reinstalled:

python 3.9.13
mpf         0.56.2
mpf-mc      0.56.1
mpf-monitor 0.56.1

MPF and MPF-MC seem to work, but MPF-Monitor is still crashing.

Here's what it spits out.

D:\Pinball\your_machine>mpf monitor

Traceback (most recent call last):
  File "C:\Users\bowma\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\bowma\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\bowma\AppData\Local\Programs\Python\Python39\Scripts\mpf.exe\__main__.py", line 7, in <module>
  File "C:\Users\bowma\AppData\Local\Programs\Python\Python39\lib\site-packages\mpf\commands\__init__.py", line 194, in run_from_command_line
    CommandLineUtility(path).execute()
  File "C:\Users\bowma\AppData\Local\Programs\Python\Python39\lib\site-packages\mpf\commands\__init__.py", line 168, in execute
    self.external_commands[command](self.mpf_path,
  File "C:\Users\bowma\AppData\Local\Programs\Python\Python39\lib\site-packages\mpfmonitor\commands\monitor.py", line 100, in __init__
    from mpfmonitor.core.mpfmon import run
  File "C:\Users\bowma\AppData\Local\Programs\Python\Python39\lib\site-packages\mpfmonitor\core\mpfmon.py", line 10, in <module>
    from PyQt6.QtCore import *
ImportError: DLL load failed while importing QtCore: The specified procedure could not be found.


C:\Users\bowma>pip list
Package             Version
------------------- ----------
asciimatics         1.12.0
certifi             2023.11.17
charset-normalizer  3.3.2

docutils            0.20.1
ffpyplayer          4.3.5
future              0.18.3
idna                3.6

Kivy                2.1.0
kivy-deps.angle     0.3.3
kivy-deps.glew      0.3.1
kivy-deps.gstreamer 0.3.3
kivy-deps.sdl2      0.4.5
Kivy-Garden         0.1.5
mpf                 0.56.2
mpf-mc              0.56.1
mpf-monitor         0.56.1
packaging           23.2
Pillow              10.1.0
pip                 22.0.4
prompt-toolkit      3.0.33
psutil              5.9.4
pyfiglet            1.0.2
Pygments            2.14.0
pypiwin32           223
PyQt6               6.4.2
PyQt6-Qt6           6.6.1

PyQt6-sip           13.6.0
pyserial            3.5
pyserial-asyncio    0.4
pywin32             306
requests            2.31.0
ruamel.yaml         0.15.42
setuptools          58.1.0
sortedcontainers    2.3.0
terminaltables      3.1.0
urllib3             2.1.0
wcwidth             0.2.12

Avery Tummons

unread,
Dec 10, 2023, 2:31:36 PM12/10/23
to mpf-...@googlegroups.com
We now know this issue. PyQt6 and PyQt6-Qt6 must be the same version of you get the error below because they won’t talk to each other. 

Run this: pip install PyQt6-Qt6==6.4.2

That should align versions and fix your issue.

Sent from my iPhone

On Dec 9, 2023, at 8:50 PM, Bowman9 <grumpy...@gmail.com> wrote:

Ugh... okay, I reinstalled Windows 10 using the built in Windows utility.

Bowman9

unread,
Dec 17, 2023, 3:51:28 PM12/17/23
to MPF Users
Finally got a chance to update to 6.4.2 and everything seems to be working fine now.
Thanks for the help it is greatly appreciated.
Reply all
Reply to author
Forward
0 new messages