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

安装完爬虫框架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_authenticator_第1张图片

你可能感兴趣的:(ValueError: Invalid configuration: - Deprecated option 'domaincontroller': use 'http_authenticator)