ansible-collections / azure

Development area for Azure Collections

Home Page:https://galaxy.ansible.com/azure/azcollection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Python 3.12+ ARM support - Blocked by azure-iot-hub > uamqp requirements

gygitlab opened this issue · comments

SUMMARY

Currently Python 3.12 is not supported for this collection by proxy due to the requirement of azure-iot-hub that in turn requires uamqp.

azure-uamqp-python is no longer in active development and is planned to be deprecated early in 2025. As such it's not currently possible to install this package with Python 3.12 on ARM systems such as Mac either from source or wheel.

This in turn prevents this whole collection from being installed on ARM systems running with Python 3.12+. Looking forward having a solution in place for 3.12+ systems would be prudent, perhaps adjusting or removing azure-iot-hub to be installed by default would be a possible first step.

Hey @Fred-sun any updates on this (and #1511) or any sort of timeline?

As discussed it's not possible to install the Ansible collection's dependencies on both Mac ARM on Python 3.11+ and Linux ARM on Python 3.12.

@gygitlab This issue seems to occur only on python version > 3.11, which is still being worked out. Thank you!

My coin there - for some reasons, I got the same issue with Python 3.10/3.11/3.12.

The problem is not not mac specific, reproduces with linux to as long the arch is aarch64.

Maybe as temporary measure, in order to allow packaging and installation of this collection on all supported platforms, I suggest making this component optional, basically changing to something like:

azure-iot-hub==2.6.1;platform_machine=="x86_64"