Skip to content

[Bug] Simulator do not start on macos #783

Description

@qlrd

Describe the bug

  • System: Apple M2 15.6 (Sequoia)

The latest develop branch raise some exceptions when running the simulator on mac:

parser.add_argument(
    ~~~~~~~~~~~~~~~~~~~^
        "--screenshot-scale",
        ^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
        action=argparse.BooleanOptionalAction,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
TypeError: BooleanOptionalAction.__init__() got an unexpected keyword argument 'type'

This was easy to fix with:

parser.add_argument(
    "--printer",
    action="store_true",
    default=False,
    required=False,
)

But when running again the simulator, another exception was raised:

Poe => python simulator/simulator.py --device maixpy_amigo --sd
pygame 2.6.1 (SDL 2.32.10, Python 3.14.0)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "/Users/qlrd/github/krux/simulator/simulator.py", line 77, in <module>
    pg.freetype.init()
    ^^^^^^^^^^^
AttributeError: module 'pygame' has no attribute 'freetype'

Reproduce

Run poetry run poe simulator --sd

Device(s) affected

  • Amigo
  • M5stickV
  • Cube
  • Dock
  • Bit
  • Yahboom
  • WonderMV

Version affected

  • Official release (selfcustody/krux): vXX.YY.Z
  • Beta release (odudex/krux_binaries): v25.11.0-beta1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions