infobloxopen/infoblox-client

nios_next_ip is broken on python 3.6.8

Closed this issue · 8 comments

I've been successfully using infoblox-client with python 2.7.5 on CentOS7. However, when using the same infoblox-client 0.4.23 with python 3.6.8 on CentOS8, I get a failure when using nios_next_ip. My ansible code will work with python 3.6.8+infoblox-client with nios_host_record if I hard-code the 'ipaddress' value. However, when I use nios_next_ip with 3.6.8, I consistently get this error:

An unhandled exception occurred while running the lookup plugin 'nios_next_ip'. Error was a <class 'Exception'>, original message: infoblox-client is required but does not appear to be installed.

Please post entire stack trace, not just the last part.

I can confirm it works on 3.6, 3.7 and 3.8. There has to be something else.

I used '-vvvv' to ansible-playbook and below is all I got from that, if there is another command I should use to get debug info, let me know! Thanks.

TASK [Find next available IP] *********************************************************************************************************
task path: /home/foo/git/ansible-playbooks/create_infoblox_host.yml:32
fatal: [localhost]: FAILED! => {
    "msg": "An unhandled exception occurred while running the lookup plugin 'nios_next_ip'. 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`"
}

To be honest it looks like you haven’t installed infoblox-client in your Python 3.x environment. Do a python3.6 -m pip install Infoblox-client.

@ryebread157 could you answer to this issue ?

@getsomebread, have you tried installing the infoblox-client and then reproducing the issue?

python3.6 -m pip install infoblox-client

Hi @getsomebread, can you confirm if the solution provided above resolves your problem?

Hi @getsomebread Can you please confirm if we can close this issue or you need help?

Closing the issue as no response from the user.