Closed divamgupta closed 7 years ago
same error here!
$ python --version
Python 2.7.10
gilani@debris ~ python --version
Python 2.7.6
gilani@debris ~ uname -a
Linux debris 3.16.0-46-generic #62~14.04.1-Ubuntu SMP Tue Aug 11 16:27:16 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
gilani@debris ~ dom exampledomain
Traceback (most recent call last):
File "/usr/local/bin/dom", line 7, in <module>
Domain().main()
File "/usr/local/lib/python2.7/dist-packages/domainr/core.py", line 83, in main
print self.search(args)
File "/usr/local/lib/python2.7/dist-packages/domainr/core.py", line 39, in search
data = self.parse(json_data.content, env)
File "/usr/local/lib/python2.7/dist-packages/domainr/core.py", line 48, in parse
results = data['results']
KeyError: 'results'
+1 same errors
bigtoe:~ steve$ dom example
Traceback (most recent call last):
File "/usr/local/bin/dom", line 5, in <module>
pkg_resources.run_script('dom==0.7', 'dom')
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 492, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 1357, in run_script
exec_(script_code, namespace, namespace)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 47, in exec_
exec("""exec code in globs, locs""")
File "<string>", line 1, in <module>
File "/Library/Python/2.7/site-packages/dom-0.7-py2.7.egg/EGG-INFO/scripts/dom", line 7, in <module>
File "build/bdist.macosx-10.10-intel/egg/domainr/core.py", line 83, in main
File "build/bdist.macosx-10.10-intel/egg/domainr/core.py", line 39, in search
File "build/bdist.macosx-10.10-intel/egg/domainr/core.py", line 48, in parse
KeyError: 'results'
bigtoe:~ steve$ python --version
Python 2.7.10
I installed the package using pip and got the same error. Python 2.7.10 :: Continuum Analytics, Inc.
+1 same issue here with Python 2.7.9
Apparently the cliend_id has been revoked by Domainr (I got this by printing the data
in parse
function):
{'message': 'unauthorized: disabled client ID'}
+1 same error on ubuntu 14.04 lts server py 2.7.9
For anyone interested, I've forked and updated this project. It's been submitted as Pull Request #18, but in the meantime it can be downloaded and installed from here: https://github.com/seanlane/dom
It requires getting a free (but requires a credit card) API key from Mashape or contacting partners@domainr.com
for a client id, as described in this GitHub comment: https://github.com/UltrosBot/Ultros-contrib/issues/29#issuecomment-135285713
Still need an API key as described in the README, but this repo is now updated.
Fixed as part of PR's #18, #21, and #22. Closing.
I installed dom using pip in OS X.
$ dom --tld hello Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.7/bin/dom", line 7, in
Domain().main()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/domainr/core.py", line 83, in main
print self.search(args)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/domainr/core.py", line 39, in search
data = self.parse(json_data.content, env)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/domainr/core.py", line 48, in parse
results = data['results']
KeyError: 'results'