dvarrazzo/pgxnclient — Issue #8: specify dependency on simplejson >= 2.1
Author: dvarrazzo
Created: 2011-11-28 17:52:35+00:00
State: open

Hi,

I've only just installed your PGXN client, but I'm getting the
following problem:

thom@bison:~/Development/pgxnclient-1.0/pgxnclient$ pgxn search barter
ERROR: unexpected error: TypeError - __init__() got an unexpected
keyword argument 'object_pairs_hook'
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/pgxnclient-1.0-py2.6.egg/pgxnclient/cli.py",
line 59, in script
main(args)
File "/usr/local/lib/python2.6/dist-packages/pgxnclient-1.0-py2.6.egg/pgxnclient/cli.py",
line 31, in main
run_command(opt, parser)
File "/usr/local/lib/python2.6/dist-packages/pgxnclient-1.0-py2.6.egg/pgxnclient/commands/__init__.py",
line 92, in run_command
return opts.cmd(opts, parser=parser).run()
File "/usr/local/lib/python2.6/dist-packages/pgxnclient-1.0-py2.6.egg/pgxnclient/commands/info.py",
line 87, in run
data = self.api.search(self.opts.where, self.opts.query)
File "/usr/local/lib/python2.6/dist-packages/pgxnclient-1.0-py2.6.egg/pgxnclient/api.py",
line 64, in search
query={'q': q}))
File "/usr/local/lib/python2.6/dist-packages/pgxnclient-1.0-py2.6.egg/pgxnclient/api.py",
line 73, in call
url = self.get_url(meth, args, query)
File "/usr/local/lib/python2.6/dist-packages/pgxnclient-1.0-py2.6.egg/pgxnclient/api.py",
line 77, in get_url
tmpl = self.get_template(meth)
File "/usr/local/lib/python2.6/dist-packages/pgxnclient-1.0-py2.6.egg/pgxnclient/api.py",
line 86, in get_template
return self.get_index()[meth]
File "/usr/local/lib/python2.6/dist-packages/pgxnclient-1.0-py2.6.egg/pgxnclient/api.py",
line 94, in get_index
self._api_index = load_json(get_file(url))
File "/usr/local/lib/python2.6/dist-packages/pgxnclient-1.0-py2.6.egg/pgxnclient/utils/__init__.py",
line 31, in load_json
return load_jsons(f.read().decode('utf-8'))
File "/usr/local/lib/python2.6/dist-packages/pgxnclient-1.0-py2.6.egg/pgxnclient/utils/__init__.py",
line 38, in load_jsons
return json.loads(data, object_pairs_hook=OrderedDict)
File "/usr/lib/python2.6/json/__init__.py", line 318, in loads
return cls(encoding=encoding, **kw).decode(s)
TypeError: __init__() got an unexpected keyword argument 'object_pairs_hook'

Am I missing something?

Thanks

Thom