Traceback (most recent call last):


 "/root/.virtualenvs/chineseocrEnv/lib/python3.5/site-packages/web/application.py", line 257, in process

return self.handle()


 "/root/.virtualenvs/chineseocrEnv/lib/python3.5/site-packages/web/application.py", line 248, in handle

return self._delegate(fn, self.fvars, args)


 "/root/.virtualenvs/chineseocrEnv/lib/python3.5/site-packages/web/application.py", line 488, in _delegate

return handle_class(cls)


 "/root/.virtualenvs/chineseocrEnv/lib/python3.5/site-packages/web/application.py", line 466, in handle_class

return tocall(*args)


 "/home/chineseocr/app.py", line 39, in POST

data = json.loads(data)


 "/usr/lib/python3.5/json/__init__.py", line 312, in loads

s.__class__.__name__))
TypeError: the JSON object must be str, not 'bytes'

Traceback (most recent call last):


 "<string>", line 1, in <module>


 "slicing.pyx", line 9, in slicing.run_test

print "example[midpoint:endpoint] ->", example[midpoint:endpoint]
TypeError: 'NoneType' object cannot be interpreted as an index
