0

我对python比较陌生,我不知道如何调试。我有一个.ipynb我正在尝试转换为 pdf 文件的文件。当我在命令行中运行它时,我收到以下错误。

[NbConvertApp] Converting notebook HW1_notebook.ipynb to pdf
Traceback (most recent call last):
  File "C:\Users\Owner\Anaconda3\lib\site-packages\traitlets\traitlets.py", line 528, in get
value = obj._trait_values[self.name]
KeyError: 'command'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Owner\Anaconda3\lib\site-packages\traitlets\traitlets.py", line 528, in get
value = obj._trait_values[self.name]
KeyError: 'inkscape'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Owner\Anaconda3\lib\site-packages\nbconvert\preprocessors\svg2pdf.py", line 67, in _inkscape_default
rkey = winreg.OpenKey(wr_handle, "SOFTWARE\\Classes\\inkscape.svg\\DefaultIcon")
FileNotFoundError: [WinError 2] The system cannot find the file specified

我发现在github上报告了这个问题,我知道这不是同一个错误,但是我遵循了对其他人有用的东西,但没有解决我的问题。我尝试重新安装 Inkscape。我真的不知道从这里去哪里。任何帮助表示赞赏。

4

0 回答 0