2017-10-21 141 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" 

至少它爲我工作。