Issues in running ansible playbook for adding virtual machine information #679
-
HI, I'm using ansible version:
pynetbox version is below```Package Version certifi 2021.10.8
and the error im facing is below
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
The Ansible that you have installed uses In general, we do not support Python 2 when using this collection. I would suggest investigating something like |
Beta Was this translation helpful? Give feedback.
The Ansible that you have installed uses
Python 2.7.18
- see your output fromansible --version
- settingansible_python_interpreter
does not fix this issue, since you can see in the stack trace that you are still loading code from the Python 2.7 installation.In general, we do not support Python 2 when using this collection. I would suggest investigating something like
pyenv
or if your Linux distribution has Python 3 available, and an Ansible package that uses Python 3 as its dependency.