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

[bug] monitor-events sys.excepthook issue when using keyboard interrupt (ctrl-c) on a Python 3.10 runtime #475

Closed
digimaun opened this issue Dec 13, 2021 · 2 comments

Comments

@digimaun
Copy link
Member

Describe the bug
At least on a Python 3.10 runtime using az iot hub monitor-events, sys.excepthook errors are shown on keyboard interrupt. This was observed on a homebrew based install.

To Reproduce
Steps to reproduce the behavior:

  • Install the azure-iot extension (0.12.0, 0.12.1) on a Py 3.10.x based Azure CLI install. Run monitor-events and input keyboard interrupt. Observe errors.

Expected behavior

  • Gracefully closing and deallocating resources.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: MacOS
  • Shell: bash
  • Az CLI version: 2.31.0
  • IoT extension version: 0.12.0, 0.12.1
  • Python version (if pip installed): Python 3.10.x
@lucadruda
Copy link
Contributor

confirming for 3.9 as well on WSL2

digimaun pushed a commit that referenced this issue Mar 11, 2022
* Automate resource generation for central tests. If the resource values are provided in the configuration file, they will be used. Otherwise, new resources will be created to run the tests. Within a given testing resource group,

  * a storage account will be created to be used for all the central tests
  * a separate central app will be created for each test and retrieving all possible central app values
  * the resources will be deleted once the tests are done.

* Specifically, these configuration variables can be safely removed:

  * azext_iot_central_app_id
  * azext_iot_central_primarykey
  *  azext_iot_central_scope_id
  *  azext_iot_central_token
  *  azext_iot_central_dns_suffix
  * azext_iot_central_storage_cstring
  * azext_iot_central_storage_container

* In addition, fixing sys.excepthook error in issue #475 by specifying which loop is to be closed.
@vilit1
Copy link
Contributor

vilit1 commented Mar 15, 2022

Closing since this was resolved.

@vilit1 vilit1 closed this as completed Mar 15, 2022
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

3 participants