pyspider 启动错误,ValueError: Invalid configuration: - Deprecated option ‘domaincontroller‘

pyspider all命令报错:ValueError: Invalid configuration:- Deprecated option ‘domaincontroller’: use ‘http_authenticator.domain_controller’ instead.

在安装包中找到pyspider的资源包,然后找到webui文件里面的webdav.py文件打开,修改第209行即可。
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyspider/webui/

'domaincontroller': NeedAuthController(app),
修改为:
'http_authenticator':{
    
    
        'HTTPAuthenticator':NeedAuthController(app),
    },

然后再执行pyspider all就能够通过http://localhost:5000打开页面了。

猜你喜欢

转载自blog.csdn.net/weixin_44517301/article/details/114916086
今日推荐