azure-iot-cli-extension icon indicating copy to clipboard operation
azure-iot-cli-extension copied to clipboard

[bug] dependency `uamqp` needs to be replaced with pure Python AMQP package

Open stefanb2 opened this issue 2 months ago • 1 comments

Describe the bug uamqp is no longer maintained and will be deprecated soon(?). Therefore Azure CLI IoT extension can't be used with Python 3.14+.

To Reproduce Steps to reproduce the behavior:

  1. create a Python virtual environment on a system with Python 3.14+
  2. pip3 install azure-cli
  3. az extension install -n azure-iot --allow-preview True
  4. az iot hub monitor-events --subscription <subscription> --hub-name <hub>
$ az iot hub monitor-events --subscription ...
Dependency update (uamqp 1.6.6) required for IoT extension version: 0.30.0b1. 
Continue? (y/n) -> y
Updating required dependency...
Failure updating uamqp. Aborting...
... long list of error messages boiling down to the fact that uamqp doesn't compile against Python 3.14+ ...

Expected behavior Azure CLI with IoT extension can be used together with Python 3.14+.

Environment (please complete the following information):

  • OS: Fedora 43
  • Shell: bash
  • Az CLI version: 2.80.0
  • IoT extension version: 0.30.0b1
  • Python version (if pip installed): 3.14

Additional context If I understand this PR correctly other Azure Python projects have moved to a pure Python AMQP package.

stefanb2 avatar Nov 21 '25 08:11 stefanb2