@
weakish 在 dockers 里跑了一下没成功 python:3.6alpine-3.6。
python
fm163.py -D playlist_url
Error encountered to access file /root/.fm163/history
errno 2: No such file or directory.
Traceback (most recent call last):
File "
fm163.py", line 338, in main
download(arguments.playlist_id, arguments.D, arguments.H)
File "
fm163.py", line 198, in download
history: SortedSet = load_history()
File "
fm163.py", line 132, in load_history
with history_db().open(mode="rb") as history_file:
File "/usr/local/lib/python3.6/
pathlib.py", line 1161, in open
opener=self._opener)
File "/usr/local/lib/python3.6/
pathlib.py", line 1015, in _opener
return self._accessor.open(self, flags, mode)
File "/usr/local/lib/python3.6/
pathlib.py", line 387, in wrapped
return strfunc(str(pathobj), *args)
FileNotFoundError: [Errno 2] No such file or directory: '/root/.fm163/history'
然后手动创建目录 mkdir /root/.fm163.history 再次运行 提示
rror encountered to access file /root/.fm163/history
errno 21: Is a directory.
Traceback (most recent call last):
File "
fm163.py", line 338, in main
download(arguments.playlist_id, arguments.D, arguments.H)
File "
fm163.py", line 198, in download
history: SortedSet = load_history()
File "
fm163.py", line 132, in load_history
with history_db().open(mode="rb") as history_file:
File "/usr/local/lib/python3.6/
pathlib.py", line 1161, in open
opener=self._opener)
IsADirectoryError: [Errno 21] Is a directory: '/root/.fm163/history'
于是乎删除 history 目录,但是保留 /root/.fm163/ 再次运行
FileNotFoundError: [Errno 2] No such file or directory: '/root/.fm163/history'
所以 是我的姿势不对么