安装pyspider后运行pyspider all后遇到的问题

安装pyspider后运行pyspider all后遇到的问题,第1张

安装pyspider后运行pyspider all后遇到的问题 问题1------提示无法找到包 “DispatcherMiddleware”
Traceback (most recent call last):
  File "D:ProgramsPython36scriptspyspider-script.py", line 11, in 
    load_entry_point('pyspider==0.3.10', 'console_scripts', 'pyspider')()
  File "d:programspython36libsite-packagespyspiderrun.py", line 754, in main
    cli()
  File "d:programspython36libsite-packagesclickcore.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "d:programspython36libsite-packagesclickcore.py", line 1053, in main
    rv = self.invoke(ctx)
  File "d:programspython36libsite-packagesclickcore.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "d:programspython36libsite-packagesclickcore.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "d:programspython36libsite-packagesclickcore.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "d:programspython36libsite-packagesclickdecorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "d:programspython36libsite-packagespyspiderrun.py", line 497, in all
    ctx.invoke(webui, **webui_config)
  File "d:programspython36libsite-packagesclickcore.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "d:programspython36libsite-packagesclickdecorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "d:programspython36libsite-packagespyspiderrun.py", line 384, in webui
    app.run(host=host, port=port)
  File "d:programspython36libsite-packagespyspiderwebuiapp.py", line 64, in run
    from werkzeug.wsgi import DispatcherMiddleware
importError: cannot import name 'DispatcherMiddleware'
解决方法

将C:PythonLibsite-packagespyspiderwebui.app.py中64行的代码进行修改

将
from werkzeug.wsgi import DispatcherMiddleware
修改为
from werkzeug.middleware.dispatcher import DispatcherMiddleware

问题2-----提示"Deprecated option ‘domaincontroller’: use ‘http_authenticator.domain_controller’ instead."
Traceback (most recent call last):
  File "D:ProgramsPython36scriptspyspider-script.py", line 11, in 
    load_entry_point('pyspider==0.3.10', 'console_scripts', 'pyspider')()
  File "d:programspython36libsite-packagespyspiderrun.py", line 754, in main
    cli()
  File "d:programspython36libsite-packagesclickcore.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "d:programspython36libsite-packagesclickcore.py", line 1053, in main
    rv = self.invoke(ctx)
  File "d:programspython36libsite-packagesclickcore.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "d:programspython36libsite-packagesclickcore.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "d:programspython36libsite-packagesclickcore.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "d:programspython36libsite-packagesclickdecorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "d:programspython36libsite-packagespyspiderrun.py", line 497, in all
    ctx.invoke(webui, **webui_config)
  File "d:programspython36libsite-packagesclickcore.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "d:programspython36libsite-packagesclickdecorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "d:programspython36libsite-packagespyspiderrun.py", line 384, in webui
    app.run(host=host, port=port)
  File "d:programspython36libsite-packagespyspiderwebuiapp.py", line 59, in run
    from .webdav import dav_app
  File "d:programspython36libsite-packagespyspiderwebuiwebdav.py", line 216, in 
    dav_app = WsgiDAVApp(config)
  File "d:programspython36libsite-packageswsgidavwsgidav_app.py", line 133, in __init__
    _check_config(config)
  File "d:programspython36libsite-packageswsgidavwsgidav_app.py", line 117, in _check_config
    raise ValueError("Invalid configuration:n  - " + "n  - ".join(errors))
ValueError: Invalid configuration:
  - Deprecated option 'domaincontroller': use 'http_authenticator.domain_controller' instead.
解决方法 修改对应的配置文件
C:ProgramsPython36Libsite-packagespyspiderwebuiwebdav.py
将第209行进行修改,如下

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5443489.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-11
下一篇 2022-12-11

发表评论

登录后才能评论

评论列表(0条)

保存