File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/lib/python2.7/cProfile.py", line 199, in
main()
File "/usr/lib/python2.7/cProfile.py", line 192, in main
runctx(code, globs, None, options.outfile, options.sort)
File "/usr/lib/python2.7/cProfile.py", line 49, in runctx
prof = prof.runctx(statement, globals, locals)
File "/usr/lib/python2.7/cProfile.py", line 140, in runctx
exec cmd in globals, locals
File "mongo_test.py", line 15, in
print t.get('example', 'minute')
File "../blah/blah/lib/python2.7/site-packages/kairos/timeseries.py", line 374, in get
rval = self._get( name, interval, config, timestamp )
File "../blah/blah/lib/python2.7/site-packages/kairos/mongo_backend.py", line 115, in _get
data = self._process_row( record['value'] )
File "../blah/blah/lib/python2.7/site-packages/kairos/timeseries.py", line 570, in _process_row
rval[ value ] = int(count)
TypeError: int() argument must be a string or a number, not 'dict'
The mongo example in the README fails.
Error is:
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main "main", fname, loader, pkg_name) File "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/usr/lib/python2.7/cProfile.py", line 199, in
main()
File "/usr/lib/python2.7/cProfile.py", line 192, in main
runctx(code, globs, None, options.outfile, options.sort)
File "/usr/lib/python2.7/cProfile.py", line 49, in runctx
prof = prof.runctx(statement, globals, locals)
File "/usr/lib/python2.7/cProfile.py", line 140, in runctx
exec cmd in globals, locals
File "mongo_test.py", line 15, in
print t.get('example', 'minute')
File "../blah/blah/lib/python2.7/site-packages/kairos/timeseries.py", line 374, in get
rval = self._get( name, interval, config, timestamp )
File "../blah/blah/lib/python2.7/site-packages/kairos/mongo_backend.py", line 115, in _get
data = self._process_row( record['value'] )
File "../blah/blah/lib/python2.7/site-packages/kairos/timeseries.py", line 570, in _process_row
rval[ value ] = int(count)
TypeError: int() argument must be a string or a number, not 'dict'