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

uamqp cannot be pre-installed #213

Open
sputnik13 opened this issue Jul 9, 2020 · 0 comments
Open

uamqp cannot be pre-installed #213

sputnik13 opened this issue Jul 9, 2020 · 0 comments

Comments

@sputnik13
Copy link

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az iot hub monitor-events Extension Name: azure-iot. Version: 0.9.6.

Errors:
Dependency update (uamqp 1.2) required for IoT extension version: 0.9.6.

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • /opt/az/bin/python3 -m pip install uamqp --target ~/.azure/cliextensions/azure-iot
  • az extension add -n azure-cli-iot-ext
  • az iot hub monitor-events -n {} -t {}

Expected Behavior

Environment Summary

Linux-4.19.76-linuxkit-x86_64-with-debian-buster-sid
Python 3.6.10
Installer: DEB

azure-cli 2.8.0
azure-cli-ml 1.9.0

Extensions:
aks-preview 0.4.55
azure-cli-ml 1.9.0
azure-iot 0.9.6

Additional Context

az cli with associated extensions are being packaged in a docker image for use in restricted environments. This make it essential that we be able to install all dependencies before they're needed. The only supported means of installing uamqp in a manner that the iot extension will accept being when communication is attempted with iot hub means that this cannot be used in environments with restricted access.

Previously raised issue around this was closed #141. If not via python dependency management, some other explicit manner of installing required dependencies is required to make the iot extension usable in restricted environments.

We have added a step to manually enter the requisite config value in ~/.azure/config to get around this limitation, however a supported method of installing dependencies would be preferred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant