Passerby-D / nonebot_plugin_note

12 stars 3 forks source link

通过nb脚手架安装后 部分功能异常 #2

Closed Ikaros-521 closed 2 years ago

Ikaros-521 commented 2 years ago

图片路径不对,bot路径下notebook文件夹倒是创建了

  File "E:\Anaconda\envs\py3-8-13\lib\site-packages\nonebot_plugin_note\__init__.py", line 448, in _
    await CreateMutiLinesPic(notes,30,r"{}\data\list.png".format(cur_dir))
  File "E:\Anaconda\envs\py3-8-13\lib\site-packages\nonebot_plugin_note\__init__.py", line 746, in CreateMutiLinesPic
    pic.save(pic_path)
  File "E:\Anaconda\envs\py3-8-13\lib\site-packages\PIL\Image.py", line 2350, in save
    fp = builtins.open(filename, "w+b")
FileNotFoundError: [Errno 2] No such file or directory: 'E:\\Anaconda\\envs\\py3-8-13\\lib\\site-packages\\nonebot_plugin_note\\data\\list.png'

image

Ikaros-521 commented 2 years ago

手动创建data 文件夹解决了。需要优化下代码 保存图片前 创建下data文件夹

Ikaros-521 commented 2 years ago

已提交pr