Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash with VPE platform #3

Open
arthurkehrwald opened this issue Jan 17, 2025 · 0 comments
Open

Crash with VPE platform #3

arthurkehrwald opened this issue Jan 17, 2025 · 0 comments

Comments

@arthurkehrwald
Copy link

When running the linux binary with a config using the visual pinball engine platform, it will crash with the following output:

Failed to initialize MPF
Traceback (most recent call last):
  File "mpf/core/machine.py", line 675, in initialize_mpf
    raise init.exception()
  File "mpf/core/machine.py", line 247, in initialize
    await self.initialize_core_and_hardware()
  File "mpf/core/machine.py", line 233, in initialize_core_and_hardware
    self._load_hardware_platforms()
  File "mpf/core/machine.py", line 479, in _load_hardware_platforms
    self.add_platform(hardware_platform)
  File "mpf/core/machine.py", line 588, in add_platform
    hardware_platform = Util.string_to_class(self.config['mpf']['platforms'][name])
  File "mpf/core/utility_functions.py", line 641, in string_to_class
    m = importlib.import_module(module)
  File "importlib/__init__.py", line 127, in import_module
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "mpf/platforms/visual_pinball_engine/visual_pinball_engine.py", line 8, in <module>
    from mpf.platforms.visual_pinball_engine.platform_pb2 import SetSegmentDisplayFrameRequest
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "mpf/platforms/visual_pinball_engine/platform_pb2.py", line 5, in <module>
    from google.protobuf import descriptor as _descriptor
ModuleNotFoundError: No module named 'google'

This is probably because the binaries do not include the dependencies specific to VPE specified here: https://github.com/missionpinball/mpf/blob/aa661c07eec3371c31c762fc34570912ccd42578/pyproject.toml#L48C1-L50C28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant