问题描述
我正在尝试使用 jupyter_to_medium 包在 Medium 上发布我使用 Jupyter Notebook 编写的文章。我已按照 here 中提到的所有步骤进行操作,包括将集成令牌保存在提到的文件夹中。但是,在将笔记本部署为中等帖子后,出现以下错误:
返回以下错误信息
"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'
"
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)