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

az iot hub monitor command fials #581

Open
ajanth97 opened this issue Oct 11, 2022 · 3 comments
Open

az iot hub monitor command fials #581

ajanth97 opened this issue Oct 11, 2022 · 3 comments

Comments

@ajanth97
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.17.1.

Errors:

The command failed with an unexpected error. Here is the traceback:
dlopen(/Users/ajanthkumarakuruparan/.azure/cliextensions/azure-iot/uamqp/c_uamqp.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace (_SASToken_CreateString)
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/azure-cli/2.40.0/libexec/lib/python3.10/site-packages/knack/cli.py", line 233, in invoke
    cmd_result = self.invocation.execute(args)
  File "/opt/homebrew/Cellar/azure-cli/2.40.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 663, in execute
    raise ex
  File "/opt/homebrew/Cellar/azure-cli/2.40.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/opt/homebrew/Cellar/azure-cli/2.40.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 697, in _run_job
    result = cmd_copy(params)
  File "/opt/homebrew/Cellar/azure-cli/2.40.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 333, in __call__
    return self.handler(*args, **kwargs)
  File "/opt/homebrew/Cellar/azure-cli/2.40.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
    return op(**command_args)
  File "/Users/ajanthkumarakuruparan/.azure/cliextensions/azure-iot/azext_iot/operations/hub.py", line 2408, in iot_hub_monitor_events
    _iot_hub_monitor_events(
  File "/Users/ajanthkumarakuruparan/.azure/cliextensions/azure-iot/azext_iot/operations/hub.py", line 2520, in _iot_hub_monitor_events
    from azext_iot.monitor.builders import hub_target_builder
  File "/Users/ajanthkumarakuruparan/.azure/cliextensions/azure-iot/azext_iot/monitor/builders/hub_target_builder.py", line 8, in <module>
    import uamqp
  File "/Users/ajanthkumarakuruparan/.azure/cliextensions/azure-iot/uamqp/__init__.py", line 12, in <module>
    from uamqp import c_uamqp  # pylint: disable=import-self
ImportError: dlopen(/Users/ajanthkumarakuruparan/.azure/cliextensions/azure-iot/uamqp/c_uamqp.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace (_SASToken_CreateString)

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 monitor-events --output {} --device-id {} --hub-name {}

Expected Behavior

Environment Summary

macOS-12.5-arm64-arm-64bit, Darwin 21.6.0
Python 3.10.7
Installer: HOMEBREW

azure-cli 2.40.0

Extensions:
azure-iot 0.17.1

Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1

Additional Context

@digimaun
Copy link
Member

@ajanth97, for now you can try the workaround provided here #468 (comment)

@deeTEEcee
Copy link

or... can we just fix a year-long drought?

@ajanth97
Copy link
Author

Thank you will try it out

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

No branches or pull requests

3 participants