From 952d5ecef578d52bfef08155afb8f1c76540124e Mon Sep 17 00:00:00 2001 From: Vishwa GW <136871744+vishwagw@users.noreply.github.com> Date: Wed, 25 Nov 2026 07:07:55 +0530 Subject: [PATCH 1/4] Update Python version requirements in setup.py --- setup.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 347bfd3f..a80ee9c3 100644 --- a/setup.py +++ b/setup.py @@ -288,14 +288,20 @@ def version(): url="https://github.com/mavlink/MAVSDK-Python", maintainer="Jonas Vautherin, Julian Oes", maintainer_email="dev@jonas.vautherin.ch, julian@oes.ch", - python_requires=">=3.7", + python_requires=">=3.9", include_package_data=True, cmdclass={"build": custom_build}, classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", - "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", ], packages=remapped_packages(), package_dir={IMPORT_NAME: SOURCE_PACKAGE}, From 70e32f8aaad6b54856172065df3ee3a1a6eb9d90 Mon Sep 17 00:00:00 2001 From: Vishwa GW <136871744+vishwagw@users.noreply.github.com> Date: Wed, 25 Nov 2026 07:08:55 +0530 Subject: [PATCH 2/4] Update Python environment list in tox.ini --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 7be7668c..a2a7c59d 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{37, 36} +envlist = py{39, 310, 311, 312, 313} [testenv] deps = From e749e1ee0d9eb558ef25394b4cd402f52329e77f Mon Sep 17 00:00:00 2001 From: Vishwa GW <136871744+vishwagw@users.noreply.github.com> Date: Wed, 25 Nov 2026 07:09:49 +0530 Subject: [PATCH 3/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 124efa3a..178a3fde 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ The Python wrapper is based on a gRPC client communicating with the gRPC server ## Important Notes -- Python 3.7+ is required (because the wrapper is based on [asyncio](https://docs.python.org/3.7/library/asyncio.html)). +- Python 3.9+ is required (the wrapper is based on [asyncio](https://docs.python.org/3/library/asyncio.html), and its `grpcio`/`protobuf` dependencies need 3.9+). - You may need to run `pip3` instead of `pip` and `python3` instead of `python`, depending of your system defaults. - Auterion used to have a [Getting started with MAVSDK-Python (web.archive.org)](https://web.archive.org/web/20201211155626/https://auterion.com/getting-started-with-mavsdk-python/) guide if you're a beginner and not sure where to start. From cb5aa3ef67cdb916f9abbcbad945aa64a2862016 Mon Sep 17 00:00:00 2001 From: Vishwa GW <136871744+vishwagw@users.noreply.github.com> Date: Wed, 25 Nov 2026 07:11:59 +0530 Subject: [PATCH 4/4] Update system.py --- mavsdk/system.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mavsdk/system.py b/mavsdk/system.py index c2ab5e91..04e745f4 100644 --- a/mavsdk/system.py +++ b/mavsdk/system.py @@ -491,11 +491,7 @@ def _start_mavsdk_server(system_address, port, sysid, compid): import os import subprocess import sys - - if sys.version_info >= (3, 7): - from importlib.resources import path - else: - from importlib_resources import path + from importlib.resources import path try: if sys.platform.startswith("win"):