我正在尝试使用 jupyter_to_medium 包发布我使用 Jupyter Notebook on Medium 编写的文章。我已按照此处提到的所有步骤进行操作,包括将集成令牌保存在提到的文件夹中。但是,在将笔记本部署为中型帖子后,我收到以下错误:
下面返回错误信息
"FileNotFoundError: [Errno 2] No such file or directory: 'xxxxx.ipynb'
Traceback (most recent call last):
File \"C:\\Users\\xxxxx\\Anaconda3\\lib\\site-packages\\nbformat\\__init__.py\", line 138, in read
buf = fp.read()
AttributeError: 'WindowsPath' object has no attribute 'read'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File \"C:\\Users\\xxxxx\\Anaconda3\\lib\\site-packages\\jupyter_to_medium\\_bundler.py\", line 37, in upload
data = publish(**kwargs)
File \"C:\\Users\\xxxxx\\Anaconda3\\lib\\site-packages\\jupyter_to_medium\\_publish_to_medium.py\", line 299, in publish
chrome_path, save_markdown, table_conversion)
File \"C:\\Users\\xxxxx\\Anaconda3\\lib\\site-packages\\jupyter_to_medium\\_publish_to_medium.py\", line 41, in __init__
self.nb = self.get_notebook()
File \"C:\\Users\\xxxxx\\Anaconda3\\lib\\site-packages\\jupyter_to_medium\\_publish_to_medium.py\", line 76, in get_notebook
return nbformat.read(self.filename, as_version=4)
File \"C:\\Users\\xxxxx\\Anaconda3\\lib\\site-packages\\nbformat\\__init__.py\", line 140, in read
with io.open(fp, encoding='utf-8') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'xxxxx.ipynb'
"
谁能帮我解决这个错误?