在我的Jupyter-notebook
中,IMongo-kernel
又死了。
我已经尝试过了:
-- kernel reinstall, jupyter-notebook restart
这是Jupyter笔记本终端(错误消息)...
[I 22:25:42.082 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports
Traceback (most recent call last):
File "/opt/conda/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/opt/conda/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/opt/conda/lib/python3.6/site-packages/imongo/__main__.py", line 2, in <module>
from .kernel import MongoKernel
File "/opt/conda/lib/python3.6/site-packages/imongo/kernel.py", line 18, in <module>
logger = utils.make_logger('IMongo', fname=log_file)
File "/opt/conda/lib/python3.6/site-packages/imongo/utils.py", line 20, in make_logger
file_handler = logging.FileHandler(filename=fname, mode='a')
File "/opt/conda/lib/python3.6/logging/__init__.py", line 1032, in __init__
StreamHandler.__init__(self, self._open())
File "/opt/conda/lib/python3.6/logging/__init__.py", line 1061, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
PermissionError: [Errno 13] Permission denied: '/opt/conda/lib/python3.6/site-packages/imongo/imongo_kernel.log'