jupyterhub용 nbgrader 확장을 설치하는 동안 이 오류가 발생합니다. 이 오류는 아마도 사소한 오류일 수 있지만 수정할 수는 없습니다.
nbgrader extension install
Unrecognized JSON config file version, assuming version 1
Installing create_assignment extension
Making directory: /usr/local/share/jupyter/nbextensions/create_assignment/
Traceback (most recent call last):
File "/home/mark/.local/bin/nbgrader", line 11, in <module>
sys.exit(main())
File "/home/mark/.local/lib/python3.5/site-packages/nbgrader/apps/nbgraderapp.py", line 249, in main
NbGraderApp.launch_instance()
File "/home/mark/.local/lib/python3.5/site-packages/jupyter_core/application.py", line 267, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/home/mark/.local/lib/python3.5/site-packages/traitlets/config/application.py", line 596, in launch_instance
app.start()
File "/home/mark/.local/lib/python3.5/site-packages/nbgrader/apps/nbgraderapp.py", line 242, in start
super(NbGraderApp, self).start()
File "/home/mark/.local/lib/python3.5/site-packages/jupyter_core/application.py", line 256, in start
self.subapp.start()
File "/home/mark/.local/lib/python3.5/site-packages/nbgrader/apps/extensionapp.py", line 249, in start
super(ExtensionApp, self).start()
File "/home/mark/.local/lib/python3.5/site-packages/jupyter_core/application.py", line 256, in start
self.subapp.start()
File "/home/mark/.local/lib/python3.5/site-packages/nbgrader/apps/extensionapp.py", line 56, in start
self.install_extensions()
File "/home/mark/.local/lib/python3.5/site-packages/nbgrader/apps/extensionapp.py", line 46, in install_extensions
logger=self.log)
File "/home/mark/.local/lib/python3.5/site-packages/notebook/nbextensions.py", line 206, in install_nbextension
os.makedirs(dest_dir)
File "/usr/lib/python3.5/os.py", line 241, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/usr/local/share/jupyter/nbextensions/create_assignment/'
이 문제를 해결하기 위한 제안을 보내주셔서 감사합니다.
답변1
이 특별한 경우에는 다음과 같이 명령에 --user를 추가했습니다.
nbgrader extension install --user
어떻게 해결해야 할지 모르겠지만 문제가 해결되었습니다.
답변2
nbgrader
다음을 사용하여 설치 하면 문제가 되지 않습니다 conda
.
$ conda install nbgrader -c conda-forge