一、报错后先杀掉phantomjs进程
如果报错了,记得先执行
netstat -ap | grep 25555
查找运行中的phantomjs所占的端口并kiil掉,否则下次无法执行命令。
二、ValueError: Invalid configuration: - Deprecated option 'domaincontroller': use 'http_authenticator
在运行pyspider all后报错
搜索了以后,找到解决方案。
- 原因是因为WsgiDAV发布了版本 pre-release 3.x。
- 解决办法
- 在安装包中找到pyspider的资源包,然后找到webui文件里面的webdav.py文件打开,修改第209行即可。
把
'domaincontroller': NeedAuthController(app),
修改为:
'http_authenticator':{
'HTTPAuthenticator':NeedAuthController(app),
},
<