
Traceback (most recent call last):

 "/usr/local/lib/python3.5/site-packages/tornado/web.py", line 1450, in _execute
self._handle_request_exception(e)

 "/usr/local/lib/python3.5/site-packages/tornado/web.py", line 1502, in _handle_request_exception
self.send_error(e.status_code, exc_info=sys.exc_info())

 "/usr/local/lib/python3.5/site-packages/tornado/web.py", line 978, in send_error
self.finish()

 "/usr/local/lib/python3.5/site-packages/tornado/web.py", line 934, in finish
self._log()

 "/usr/local/lib/python3.5/site-packages/tornado/web.py", line 1474, in _log
self.application.log_request(self)

 "/usr/local/lib/python3.5/site-packages/tornado/web.py", line 1936, in log_request
self.settings["log_function"](handler)

 "/usr/local/lib/python3.5/site-packages/notebook/log.py", line 46, in log_request
log_method(json.dumps(request.headers, indent=2))

 "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/json/__init__.py", line 237, in dumps
**kw).encode(obj)

 "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/json/encoder.py", line 201, in encode
chunks = list(chunks)

 "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/json/encoder.py", line 436, in _iterencode
o = _default(o)

 "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/json/encoder.py", line 180, in default
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: <tornado.httputil.HTTPHeaders object at 0x103726588> is not JSON serializable
Traceback (most recent call last):


 "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner

self.run()


 "/usr/lib/python3.6/threading.py", line 864, in run

self._target(*self._args, **self._kwargs)


 "/opt/lenovo_fix/lenovo_fix.py", line 113, in power_thread

mchbar_mmio = MMIO(0xfed159a0, 8)


 "/opt/lenovo_fix/venv/lib/python3.6/site-packages/periphery/mmio.py", line 36, in __init__

self._open(physaddr, size)


 "/opt/lenovo_fix/venv/lib/python3.6/site-packages/periphery/mmio.py", line 63, in _open

raise MMIOError(e.errno, "Opening /dev/mem: " + e.strerror)
periphery.mmio.MMIOError: [Errno 1] Opening /dev/mem: Operation not permitted
