$ ./xmlyfetcher https://www.ximalaya.com/ertong/12891461/211393643
[INFO] Fetch track 1/1 ...
Traceback (most recent call last):
File "<string>", line 2, in <module>
NameError: name 'reload' is not defined
Traceback (most recent call last):
File "<string>", line 2, in <module>
NameError: name 'reload' is not defined
Traceback (most recent call last):
File "<string>", line 2, in <module>
NameError: name 'reload' is not defined
[ERROR] Failed to fetch the track, may be a paid resource.
在一个vagrant里的Ubuntu系统下载单音轨或者专辑都碰到了以下错误:
换用vps后一切正常。
PS: 在msys2环境下有以下错误,可能跟调用的python版本有关系,我从shell直接输入python打开的是python2.7.12,但这个脚本调用的似乎却是另一位置的python3,以下错误我通过删除
reload(sys) sys.setdefaultencoding("utf8")
两行解决了: