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

Handling new SDK version import #750

Closed
Lunik opened this issue Feb 2, 2022 · 0 comments · Fixed by #751
Closed

Handling new SDK version import #750

Lunik opened this issue Feb 2, 2022 · 0 comments · Fixed by #751

Comments

@Lunik
Copy link
Contributor

Lunik commented Feb 2, 2022

SUMMARY

All of the Azure python SDK libraries have a breaking change on importing version. For example :

from azure.mgmt.network.version import VERSION as network_client_version

They all have the same breaking change :

You can't import a version module anymore, use __version__ instead

https://github.com/Azure/azure-sdk-for-python/search?q=You+can%27t+import+a+version+module+anymore%2C+use+__version__+instead

We should addresse this new behaviour in azure_rm_common.py

ISSUE TYPE
  • Bug Report
COMPONENT NAME
ANSIBLE VERSION
ansible [core 2.12.2]
  config file = /etc/ansible/ansible.cfg 
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] 
  ansible python module location = /usr/local/lib/python3.10/site-packages/ansible 
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.10.2 (main, Jan 29 2022, 03:40:37) [GCC 10.3.1 20211027]
  jinja version = 3.0.3
  libyaml = False
COLLECTION VERSION
azure.azcollection 1.11.0
CONFIGURATION
N/A
OS / ENVIRONMENT
STEPS TO REPRODUCE

Use any module of the collection

N/A
EXPECTED RESULTS

The module should work

ACTUAL RESULTS
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to import the required Python library (ansible[azure] (azure >= 2.0.0)) on my-target's Python /usr/local/bin/python3.10. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"}
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

Successfully merging a pull request may close this issue.

1 participant