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

Whois module ipaddr exceptions #28

Open
deadbits opened this issue Aug 29, 2018 · 4 comments
Open

Whois module ipaddr exceptions #28

deadbits opened this issue Aug 29, 2018 · 4 comments

Comments

@deadbits
Copy link
Contributor

IPWhois module apparently requires ipaddr but doesn't install it in some cases and this exception was reported by a user. Need to investigate, potentially switch to different package version or method of getting whois info

omnibus >> whois 1.1.1.1

[!] Failed to load module (whois)
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/cmd2.py", line 1653, in onecmd_plus_hooks
stop = self.onecmd(statement)
File "/usr/local/lib/python2.7/dist-packages/cmd2.py", line 1848, in onecmd
stop = func(statement)
File "omnibus-cli.py", line 634, in do_whois
result = self.dispatch.submit(self.session, 'whois', arg)
File "/root/omnibus/lib/dispatch.py", line 131, in submit
result = self.run(module, artifact)
File "/root/omnibus/lib/dispatch.py", line 167, in run
raise err
ImportError: No module named ipaddr
EXCEPTION of type 'ImportError' occurred with message: 'No module named ipaddr'

after running pip install ipaddr it gives the following:

omnibus >> whois 115.23.21.1
/usr/local/lib/python2.7/dist-packages/ipwhois/nir.py:443: UserWarning: NIRWhois._get_nets_krnic() has been deprecated and will be removed. You should now use NIRWhois.get_nets_krnic().
warn('NIRWhois._get_nets_krnic() has been deprecated and will be '
[!] Caught unhandled exception: 'str' object does not support item assignment
{
"asn": "4766"
}

@deadbits
Copy link
Contributor Author

Above issue brought to light by @grispan56

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

No branches or pull requests

2 participants
@deadbits and others