cling Jupyter TypeError:readlink:不能为path参数指定None

时间:2016-12-19 23:04:09

标签: jupyter-notebook cling

我想我需要一些支持来解决以下问题:

[I 01:32:06.539 NotebookApp] KernelRestarter: restarting kernel (4/5)
WARNING:root:kernel 81762983-2e89-47dc-a6f6-5f36d4f25865 restarted
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.5/bin/jupyter-cling-kernel", line 6, in <module>
exec(compile(open(__file__).read(), __file__, 'exec'))
File "/Users/Alexey/cling/share/cling/Jupyter/kernel/scripts/jupyter-cling-kernel", line 4, in <module>
main()
File "/Users/Alexey/cling/share/cling/Jupyter/kernel/clingkernel.py", line 317, in main
ClingKernelApp.launch_instance()
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/traitlets/config/application.py", line 595, in launch_instance
app.initialize(argv)
File "<decorator-gen-122>", line 2, in initialize
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/traitlets/config/application.py", line 74, in catch_config_error
return method(app, *args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/ipykernel/kernelapp.py", line 421, in initialize
self.init_kernel()
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/ipykernel/kernelapp.py", line 360, in init_kernel
user_ns=self.user_ns,
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/traitlets/config/configurable.py", line 405, in instance
inst = cls(*args, **kwargs)
File "/Users/Alexey/cling/share/cling/Jupyter/kernel/clingkernel.py", line 80, in __init__
whichCling = os.readlink(shutil.which('cling'))
TypeError: readlink: can't specify None for path argument

[W 01:32:09.546 NotebookApp] KernelRestarter:restart failed`

在.bash_profile中:

PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}"
export PATH
export CUDA_HOME="/usr/local/cuda"
export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:$CUDA_HOME/lib"
export PATH="$CUDA_HOME/bin:$PATH"
export PATH="/Developer/cling/bin:$PATH"

到处检查 - 没什么相似的。提前谢谢。

1 个答案:

答案 0 :(得分:0)

尝试在.bashrc中添加路径而不是.bash_profile。或者,如果您正在使用任何虚拟环境,请在根环境中启动笔记本