You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The file init.py checks for compatibility. However, if you are using python version 3.10 or higher it makes it incompatible.
The line if float(".".join(platform.python_version_tuple()[0:-1])) < 3.6
is checking float values. So 3.10 and 3.11 are less than 3.60, which is the value the code is checking.
I made the following adjustments to correct for this and this seems to be working.
# Accounting for version 3.10.x and 3.11.x
python_p1 = float(platform.python_version_tuple()[0])
python_p2 = float(platform.python_version_tuple()[1])
if (python_p1 == 2 or (python_p1 == 3 and python_p2 < 6)):
print("[!] MAVSDK-Python is only available on Python >= 3.6")
sys.exit(1)
Just in case others were running into this issue.
The text was updated successfully, but these errors were encountered:
On ARM based Macs the latest available version from pip is 0.12.0 (see mavlink/MAVSDK#1989 ), which has this problem. So this fix was useful on those platforms where this bug is present and would prevent import
The file init.py checks for compatibility. However, if you are using python version 3.10 or higher it makes it incompatible.
The line
if float(".".join(platform.python_version_tuple()[0:-1])) < 3.6
is checking float values. So 3.10 and 3.11 are less than 3.60, which is the value the code is checking.
I made the following adjustments to correct for this and this seems to be working.
Just in case others were running into this issue.
The text was updated successfully, but these errors were encountered: