Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
gygitlab opened this issue Mar 21, 2024 · 5 comments · Fixed by #1609
Closed

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

gygitlab opened this issue Mar 21, 2024 · 5 comments · Fixed by #1609
Labels
medium_priority Medium priority

Comments

@gygitlab
Copy link

gygitlab commented Mar 21, 2024

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.

@gygitlab
Copy link
Author

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.

@Fred-sun Fred-sun removed the has_pr PR fixes have been made label Apr 11, 2024
@Fred-sun
Copy link
Collaborator

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

@g3rhard
Copy link

g3rhard commented Apr 11, 2024

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

@ssbarnea
Copy link
Member

ssbarnea commented Jun 11, 2024

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"

@xuzhang3
Copy link
Collaborator

more details Azure/azure-uamqp-python#386

p3ck added a commit to p3ck/ansible-collections_azure that referenced this issue Jun 24, 2024
As a workaround to Issue ansible-collections#1505 we will limit the dependency of
azure-iot-hub to x86_64 since the sub-dependency uamqp doesn't compile
on arm.
xuzhang3 pushed a commit that referenced this issue Jun 25, 2024
As a workaround to Issue #1505 we will limit the dependency of
azure-iot-hub to x86_64 since the sub-dependency uamqp doesn't compile
on arm.
Justwmz pushed a commit to Justwmz/azure that referenced this issue Nov 4, 2024
As a workaround to Issue ansible-collections#1505 we will limit the dependency of
azure-iot-hub to x86_64 since the sub-dependency uamqp doesn't compile
on arm.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium_priority Medium priority
Projects
None yet
5 participants