- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
infoblox-client, AWX and python3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2020 11:56 AM
Hi all, I'm having an issue getting the infoblox-client module to work inside AWX. I have it installed in the ansible virtual environment and can even run a playbook utilizing nios inside that venv, but when I try to run the same play in AWX I get this error:
"msg": "An unhandled exception occurred while running the lookup plugin 'nios'. Error was a <class 'Exception'>, original message: infoblox-client is required but does not appear to be installed. It can be installed using the command `pip install infoblox-client`"
I see inside the ansible venv that it appears to be installed properly:
(ansible) bash-4.4# pip3 show infoblox-client
Name: infoblox-client
Version: 0.5.0
Summary: Client for interacting with Infoblox NIOS over WAPI
Home-page: https://github.com/infobloxopen/infoblox-client
Author: John Belamaric
Author-email: jbelamaric@infoblox.com
License: Apache
Location: /var/lib/awx/venv/ansible/lib/python3.6/site-packages
Requires: oslo.serialization, six, setuptools, requests, oslo.log, urllib3
Required-by:
I have also even tried adding a task at the top of the play to install the infoblox-client prior to the other tasks. The task confirms that infblox-client is installed, yet I still get the same error. Is this a possible bug in python3? Any help would be much appreciated!
Solved! Go to Solution.
Re: infoblox-client, AWX and python3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2020 08:57 AM
Hi,
Can you verify the python version that awx is using?
Re: infoblox-client, AWX and python3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2020 05:36 AM
I'm using python version 3.6.8, however I was able to find a solution. There was a mismatch of installed modules between the virtual environment awx_web and awx_task containers. Once I installed the missing modules for the venv on the awx_task container everything started working. Might be something worth checking if anyone else comes across the issue.
Re: infoblox-client, AWX and python3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2020 07:00 AM
Hello,
What were your missing modules ?
In my containers (awx_task / awx_web) there are same modules... and I have installed infoblox-client with this command : "pip install infoblox-client"
Note : with "pip3 install infoblox-client" I have the same issue
"msg": "An unhandled exception occurred while running the lookup plugin 'nios'. Error was a <class 'Exception'>, original message: infoblox-client is required but does not appear to be installed. It can be installed using the command `pip install infoblox-client`"
I have no issue with my custom virtualenv and I have installed infoblox-client with the same command
Is there an issue with python 3.6.8 ? (custom virtualenv works with python 3.8.5)