-
Notifications
You must be signed in to change notification settings - Fork 316
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
ModuleNotFoundError: No module named 'azure.mgmt.monitor.version' #715
Comments
The https://github.com/ansible-collections/azure/blob/dev/requirements-azure.txt file seems to be changed in the last 3 days. An other playbook is failing since 3 days ago, with same error. |
I believe the issue is due to installing requirements directly from Github vs the requirements for the collection version being used. As you noticed, the To resolve, please try installing the collection first, and then install requirements from the collection: pip install -r path/to/installed/collection/requirements-azure.txt Unless you're providing a custom collection path, the collection should be installed to your home directory and you can use the following: pip install -r ~/.ansible/collections/ansible_collections/azure/azcollection/requirements-azure.txt The readme/documentation is not very clear on this, so I will also open a PR with a suggested change. Thanks! |
Same here this update broke my pipelines, I was downloading the requirements-azure.txt from 'https://raw.githubusercontent.com/ansible-collections/azure/dev/requirements-azure.txt' will try the sugestion from l3ender |
I've submitted PRs to update the documentation in this repo and on Microsoft's site. If there are any other locations, please let me know and I'd be happy to help update so people are clear on the usage. Thanks! |
using the latest requirements.txt seems to have corrected my issues using default python version with the required modules |
Thanks! |
SUMMARY
Get an error when I do something with any of the Ansible modules, this is since a few days.
ISSUE TYPE
COMPONENT NAME
azure_rm_resourcegroup
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
RedHat/Ubuntu
STEPS TO REPRODUCE
Followed: https://docs.microsoft.com/en-us/azure/developer/ansible/configure-in-docker-container?tabs=azure-cli
EXPECTED RESULTS
Creation of an resource group.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: