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

cannot import name 'EnrichmentProperties'

Open navidarry opened this issue 6 years ago • 5 comments

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az iot hub list

Errors:

cannot import name 'EnrichmentProperties'
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 215, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 553, in execute
    self.commands_loader.load_arguments(command)
azure/cli/core/__init__.py, ln 470, in load_arguments
    self.command_table[command].load_arguments()  # this loads the arguments via reflection
cli/core/commands/__init__.py, ln 310, in load_arguments
    super(AzCliCommand, self).load_arguments()
...
<frozen importlib._bootstrap_external>, ln 678, in exec_module
<frozen importlib._bootstrap>, ln 219, in _call_with_frames_removed
cli/command_modules/iot/custom.py, ln 13, in <module>
    from azure.mgmt.iothub.models import (IotHubSku,
ImportError: cannot import name 'EnrichmentProperties'

To Reproduce:

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

  • Put any pre-requisite steps here...
  • az iot hub list

Expected Behavior

Environment Summary

Linux-5.3.18-lp152.33-default-x86_64-with-glibc2.3.4
Python 3.6.10
Installer: RPM

azure-cli 2.9.1

Extensions:
azure-iot 0.9.1

Additional Context

navidarry avatar Aug 03 '20 13:08 navidarry

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @rkmanda, @chieftn.

ghost avatar Aug 03 '20 13:08 ghost

routing to appropriate team

yungezz avatar Aug 03 '20 13:08 yungezz

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azure-iot-cli-triage.

ghost avatar Aug 26 '20 00:08 ghost

@Azure/azure-iot-cli-triage

yiyiguo avatar Sep 15 '20 21:09 yiyiguo

Hey @navidarry - I couldn't manage to repro this in a fresh local redhat distro (granted, running under WSL) with the following versions:

azure-cli                          2.9.1 *

command-modules-nspkg              2.0.3
core                               2.9.1 *
nspkg                              3.0.4
telemetry                          1.0.4 *

Extensions:
azure-iot                          0.9.1

Python location '/usr/bin/python3'
Extensions directory '/root/.azure/cliextensions'

Python (Linux) 3.6.8 (default, Dec  5 2019, 15:45:45)
[GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]

There are - however - newer versions of both the core CLI [2.11.1] and the azure-iot extension [0.9.9]. Can you please try updating these and trying the az iot hub list command again?

If the issue persists, please re-open this issue - and if you don't mind, please provide more detailed environment info and I'll try again to reproduce it on my end.

c-ryan-k avatar Sep 15 '20 23:09 c-ryan-k