Azure / azure-iot-cli-extension

Azure IoT extension for Azure CLI
Other
82 stars 65 forks source link

Unable to run az extension for azure-iot in centos 7 #577

Closed sandyvanam closed 1 year ago

sandyvanam commented 1 year ago

az extension add --name azure-iot An error occurred. Pip failed with status code 1. Use --debug for more information.

az --version azure-cli 2.38.0 core 2.38.0 telemetry 1.0.6 * Dependencies: msal 1.18.0b1 azure-mgmt-resource 21.1.0b1

Python location '/usr/bin/python3.6' Extensions directory '/home/centos/.azure/cliextensions' Python (Linux) 3.6.8 (default, Nov 16 2020, 16:55:22) You have 3 updates available. Consider updating your CLI installation with 'az upgrade' python --version Python 2.7.5 python3 -V Python 3.6.8 whereis python python: /usr/bin/python /usr/bin/python2.7 /usr/bin/python3.4 /usr/bin/python3.4m /usr/bin/python3.6 /usr/bin/python3.6m /usr/lib/python2.7 /usr/lib/python3.6 /usr/lib/python3.4 /usr/lib64/python2.7 /usr/lib64/python3.6 /usr/lib64/python3.4 /etc/python /usr/include/python2.7 /usr/include/python3.6m /usr/include/python3.4m /usr/share/man/man1/python.1.gz cat /etc/os-release NAME="CentOS Linux" VERSION="7 (Core)" ID="centos"

sandyvanam commented 1 year ago

Issue resolved.

Latest azure-iot version is 0.17.1 which is compatible with python 3.7 Azure cli latest version come with python 3.7. But for centos 7 we can not upgrade to azure cli latest version. So, Instead of using azure-iot latest version, Need to install azure-iot which is compatible with python 3.6. az extension add --name azure-iot --version 0.14.1