Skip to content

Update minimum Python version to 3.10 for mavgen and pymavlink - #799

Merged
hamishwillee merged 1 commit into
mavlink:masterfrom
hamishwillee:pymavlink-python-3.10
Nov 7, 2026
Merged

hamishwillee merged 1 commit into
mavlink:masterfrom
hamishwillee:pymavlink-python-3.10

Conversation

@hamishwillee

Copy link
Copy Markdown
Collaborator

The MAVLink repo's pymavlink submodule is moving to a pymavlink version that requires Python 3.10 or newer: mavlink/mavlink#2667

That pymavlink (from ArduPilot/pymavlink#1326) sets python_requires='>=3.10' in setup.py, and mavgen calls int.bit_count() for every bitmask enum entry. On Python 3.9 or older, generating any dialect fails with AttributeError: 'int' object has no attribute 'bit_count'.

This PR updates the three places that state an older minimum:

  • en/getting_started/installation.md: "Install Python 3.7+" → "3.10+"
  • en/mavgen_python/index.md: "Python 3.5+" → "3.10+"
  • en/guide/scripts.md: "Python 2.7+ and 3.3+" → "Python 3.10+"

Merge this after mavlink/mavlink#2667.

🤖 Generated with Claude Code

pymavlink now requires Python 3.10 or newer (setup.py python_requires,
and mavgen uses int.bit_count()). mavlink/mavlink#2667 moves the
mavlink repo's pymavlink submodule to that version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@peterbarker peterbarker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hamishwillee
hamishwillee merged commit 337a501 into mavlink:master Nov 7, 2026
3 checks passed
@hamishwillee
hamishwillee deleted the pymavlink-python-3.10 branch November 7, 2026 22:19
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

Successfully merging this pull request may close these issues.

2 participants