Skip to content

Bug: CoordBar uses Fraction(n, d) with non-integers and later assumes a Fraction when it may be a float. #41

Description

@colinb4987

Fix: Cast ratioNum/ratioDen to ints in init, and coerce final_ratio to Fraction before accessing .numerator/.denominator (snippets above).

Runtime mode: On Raspberry Pi OS Bookworm Lite (no desktop), Kivy runs reliably via SDL_VIDEODRIVER=kmsdrm to HDMI from a text console session.

Packaging: Prefer piwheels wheels for kivy==2.3.1 in a venv. System SDL2/Pango/GStreamer from apt work; no need for the Kivy deps bundle unless explicitly selected via KIVY_DEPS_ROOT/LD_LIBRARY_PATH.

Service: A simple systemd unit calling project start.sh with SDL_VIDEODRIVER=kmsdrm provides reliable autostart.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions