2017-10-21 197 views
3

我最近升级了我的电脑上的每一个Python库,并且我无法从Jupyter的文件菜单中转换我的笔记本电脑。我得到的消息:nbconvert --to pdf工程,但不是从Jupyter笔记本菜单(Python)

500 : Internal Server Error 
The error was: 
nbconvert failed: '.\cumulative chart (for ANE17 poster).ipynb' exists but is not a directory 

这是为我好,通过命令行转换,而实际上这个工程:

[NbConvertApp] Converting notebook .\cumulative chart (for ANE17 poster).ipynb to pdf 
[NbConvertApp] Support files will be in cumulative chart (for ANE17 poster)_files\ 
[NbConvertApp] Making directory .\cumulative chart (for ANE17 poster)_files 
[NbConvertApp] Making directory .\cumulative chart (for ANE17 poster)_files 
[NbConvertApp] Writing 26403 bytes to .\notebook.tex 
[NbConvertApp] Building PDF 
[NbConvertApp] Running xelatex 3 times: ['xelatex', '.\\notebook.tex'] 
[NbConvertApp] Running bibtex 1 time: ['bibtex', '.\\notebook'] 
[NbConvertApp] WARNING | b had problems, most likely because there were no citations 
[NbConvertApp] PDF successfully created 
[NbConvertApp] Writing 43091 bytes to .\cumulative chart (for ANE17 poster).pdf 

但尽管如此,发生了什么事Jupyter,和/或nbconvert,和/或Pandoc/MiKTex库?感谢您的输入

回答

1

其实,在Jupyter重新安装后,我遇到了同样的问题。根据this page,这是从5.2开始的notebook软件包的最新版本中的一个错误,应该在更高版本中修复它。目前,该解决方案将只是降级notebook包装,如:

pip install -U "notebook<5.2" 

至少它为我工作。