Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Error running mpf monitor

119 views
Skip to first unread message

Owen Underwood

unread,
Jan 20, 2025, 9:00:43 PMJan 20
to MPF Users
Hello,

Just installed mpf 0.80 dev6 and Godot on a new computer for my next game
The install appears to have worked (I can run mpf and Godot) but I am getting the below error when running mpf monitor.

Thanks in advance

Traceback (most recent call last):
  File "/home/dune/mpf/lib/python3.12/site-packages/mpf/core/file_manager.py", line 86, in load
 file = FileManager.locate_file(filename)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dune/mpf/lib/python3.12/site-packages/mpf/core/file_manager.py", line 60, in locate_file
 raise FileNotFoundError("File not found: {}".format(filename))
FileNotFoundError: File not found: /home/dune/dune/monitor/config/config.yaml

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/dune/mpf/bin/mpf", line 8, in <module>
 sys.exit(run_from_command_line())
          ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dune/mpf/lib/python3.12/site-packages/mpf/commands/__init__.py", line 194, in run_from_command_line
 CommandLineUtility(path).execute()
  File "/home/dune/mpf/lib/python3.12/site-packages/mpf/commands/__init__.py", line 181, in execute
 _module.Command(self.mpf_path, machine_path, remaining_args)
  File "/home/dune/mpf/lib/python3.12/site-packages/mpf/commands/game.py", line 220, in __init__
 config = config_loader.load_mpf_config()
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dune/mpf/lib/python3.12/site-packages/mpf/core/config_loader.py", line 164, in load_mpf_config
 machine_config = self._load_mpf_machine_config(config_spec)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dune/mpf/lib/python3.12/site-packages/mpf/core/config_loader.py", line 188, in _load_mpf_machine_config
 return self.config_processor.load_config_files_with_cache(config_files, "machine", config_spec=config_spec)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dune/mpf/lib/python3.12/site-packages/mpf/core/config_processor.py", line 118, in load_config_files_with_cache
 file_config, file_subfiles = self._load_config_file_and_return_loaded_files(configfile, config_type,
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dune/mpf/lib/python3.12/site-packages/mpf/core/config_processor.py", line 187, in _load_config_file_and_return_loaded_files
 config = FileManager.load(filename, expected_version_str, True)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dune/mpf/lib/python3.12/site-packages/mpf/core/file_manager.py", line 89, in load
 raise OSError("Could not find file {}".format(filename))
OSError: Could not find file /home/dune/dune/monitor/config/config.yaml



Alex L

unread,
Jan 21, 2025, 11:03:26 AMJan 21
to MPF Users
Hi Owen!

It looks to me like you are attempting to run the command `mpf monitor` from inside the monitor folder, hence the path "home/dune/dune/monitor/config/config.yaml". Monitor should be run from inside the root game folder, not the monitor folder, because it will look for <current_dir>/config/config.yaml by default. If trying from the machine root doesn't fix it, could you post the path of your main config file, the working directory in which you are running the command, and the text of the command you are running?

Alternatively, `mpf monitor` can be run from nonstandard locations if you include the path to the machine folder as a positional argument. Run the command `mpf monitor --help` for more information on arguments and options.

PS: I saw the recent gameplay test video, it looks super fun and I can't wait to play! :)

Anthony van Winkle

unread,
Jan 21, 2025, 6:05:11 PMJan 21
to MPF Users
It's also possible that mpf monitor is not installed in the environment, in which case mpf is interpreting "monitor" as the machine path instead of a command to run. If nothing from Alex's suggestions work, try verifying with pip list that mpf-monitor is installed.

(Also Alex's text came out in white for some reason, so if you can't see it just highlight the empty area :P )

Owen Underwood

unread,
Jan 21, 2025, 6:12:28 PMJan 21
to mpf-...@googlegroups.com

Yep that was it, didn't have mpf monitor installed :)

Been a while since I set up mpf on a new machine, thanks everyone.


--
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/6d27ba34-6979-43fb-9ce4-63a0b42393d1n%40googlegroups.com.

Alex L

unread,
Jan 24, 2025, 4:24:29 AMJan 24
to MPF Users
Huh! I was on my phone, and writing posts is a nightmare on there. It must have copied the formatting from the dark mode notes app. Wild stuff, sorry about that!
Reply all
Reply to author
Forward
0 new messages