Traceback (most recent call last):


 "/Users/jaraco/code/public/cherrypy/cherrypy/cherrypy/_cprequest.py", line 638, in respond

self._do_respond(path_info)


 "/Users/jaraco/code/public/cherrypy/cherrypy/cherrypy/_cprequest.py", line 688, in _do_respond

self.hooks.run('before_request_body')


 "/Users/jaraco/code/public/cherrypy/cherrypy/cherrypy/_cprequest.py", line 95, in run

self.run_hooks(iter(sorted(self[point])))


 "/Users/jaraco/code/public/cherrypy/cherrypy/cherrypy/_cprequest.py", line 117, in run_hooks

hook()


 "/Users/jaraco/code/public/cherrypy/cherrypy/cherrypy/_cprequest.py", line 65, in __call__

return self.callback(**self.kwargs)


 "/Users/jaraco/code/public/cherrypy/cherrypy/cherrypy/lib/sessions.py", line 834, in init

set_response_cookie(path=path, path_header=path_header, name=name,


 "/Users/jaraco/code/public/cherrypy/cherrypy/cherrypy/lib/sessions.py", line 875, in set_response_cookie

cherrypy.serving.request.headers.get(path_header) or


 "/Users/jaraco/code/public/cherrypy/cherrypy/cherrypy/lib/httputil.py", line 425, in get

key = self.transform_key(key)


 "/Users/jaraco/code/public/cherrypy/cherrypy/cherrypy/lib/httputil.py", line 460, in transform_key

return key.title()
AttributeError: 'NoneType' object has no attribute 'title'

Traceback (most recent call last):


 "/usr/lib/python3.5/runpy.py", line 174, in _run_module_as_main

mod_name, mod_spec, code = _get_module_details(mod_name, _Error)


 "/usr/lib/python3.5/runpy.py", line 133, in _get_module_details

return _get_module_details(pkg_main_name, error)


 "/usr/lib/python3.5/runpy.py", line 109, in _get_module_details

__import__(pkg_name)


 "/usr/local/lib/python3.5/dist-packages/ipykernel/__init__.py", line 2, in <module>

from .connect import *


 "/usr/local/lib/python3.5/dist-packages/ipykernel/connect.py", line 10, in <module>

from subprocess import Popen, PIPE


 "/usr/lib/python3.5/subprocess.py", line 441, in <module>

import threading


 "/usr/lib/python3.5/threading.py", line 7, in <module>

from traceback import format_exc as _format_exc


 "/usr/lib/python3.5/traceback.py", line 5, in <module>

import linecache


 "/usr/lib/python3.5/linecache.py", line 11, in <module>

import tokenize


 "/data/corpus/tokenize.py", line 12, in <module>

import jieba


 "/usr/local/lib/python3.5/dist-packages/jieba/__init__.py", line 9, in <module>

import logging


 "/usr/lib/python3.5/logging/__init__.py", line 206, in <module>

_lock = threading.RLock()
AttributeError: module 'threading' has no attribute 'RLock'
