ValueError: Invalid configuration: - Deprecated option 'domaincontroller': use 'http_aut

Posted yangyangblog

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ValueError: Invalid configuration: - Deprecated option 'domaincontroller': use 'http_aut相关的知识,希望对你有一定的参考价值。

安装完爬虫框架pyspider之后,使用pyspider all 命令,输入http://localhost:5000运行就出现上述错误

原因是因为WsgiDAV发布了版本 pre-release 3.x。

解决方法如下:

在安装包中找到pyspider的资源包,然后找到webui文件里面的webdav.py文件打开,修改第209行即可。

domaincontroller: NeedAuthController(app),

修改为:

http_authenticator:{
        HTTPAuthenticator:NeedAuthController(app),
    },

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

如下图所示:

技术图片

以上是关于ValueError: Invalid configuration: - Deprecated option 'domaincontroller': use 'http_aut的主要内容,如果未能解决你的问题,请参考以下文章