当前位置:网站首页>安装pyspider后运行pyspider all后遇到的问题
安装pyspider后运行pyspider all后遇到的问题
2022-08-04 05:30:00 【指剑】
问题1------提示无法找到包 “DispatcherMiddleware”
Traceback (most recent call last):
File "D:\Programs\Python36\Scripts\pyspider-script.py", line 11, in <module>
load_entry_point('pyspider==0.3.10', 'console_scripts', 'pyspider')()
File "d:\programs\python36\lib\site-packages\pyspider\run.py", line 754, in main
cli()
File "d:\programs\python36\lib\site-packages\click\core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "d:\programs\python36\lib\site-packages\click\core.py", line 1053, in main
rv = self.invoke(ctx)
File "d:\programs\python36\lib\site-packages\click\core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "d:\programs\python36\lib\site-packages\click\core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "d:\programs\python36\lib\site-packages\click\core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "d:\programs\python36\lib\site-packages\click\decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "d:\programs\python36\lib\site-packages\pyspider\run.py", line 497, in all
ctx.invoke(webui, **webui_config)
File "d:\programs\python36\lib\site-packages\click\core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "d:\programs\python36\lib\site-packages\click\decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "d:\programs\python36\lib\site-packages\pyspider\run.py", line 384, in webui
app.run(host=host, port=port)
File "d:\programs\python36\lib\site-packages\pyspider\webui\app.py", line 64, in run
from werkzeug.wsgi import DispatcherMiddleware
ImportError: cannot import name 'DispatcherMiddleware'
解决方法
将C:\Python\Lib\site-packages\pyspider\webui.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:\Programs\Python36\Scripts\pyspider-script.py", line 11, in <module>
load_entry_point('pyspider==0.3.10', 'console_scripts', 'pyspider')()
File "d:\programs\python36\lib\site-packages\pyspider\run.py", line 754, in main
cli()
File "d:\programs\python36\lib\site-packages\click\core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "d:\programs\python36\lib\site-packages\click\core.py", line 1053, in main
rv = self.invoke(ctx)
File "d:\programs\python36\lib\site-packages\click\core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "d:\programs\python36\lib\site-packages\click\core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "d:\programs\python36\lib\site-packages\click\core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "d:\programs\python36\lib\site-packages\click\decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "d:\programs\python36\lib\site-packages\pyspider\run.py", line 497, in all
ctx.invoke(webui, **webui_config)
File "d:\programs\python36\lib\site-packages\click\core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "d:\programs\python36\lib\site-packages\click\decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "d:\programs\python36\lib\site-packages\pyspider\run.py", line 384, in webui
app.run(host=host, port=port)
File "d:\programs\python36\lib\site-packages\pyspider\webui\app.py", line 59, in run
from .webdav import dav_app
File "d:\programs\python36\lib\site-packages\pyspider\webui\webdav.py", line 216, in <module>
dav_app = WsgiDAVApp(config)
File "d:\programs\python36\lib\site-packages\wsgidav\wsgidav_app.py", line 133, in __init__
_check_config(config)
File "d:\programs\python36\lib\site-packages\wsgidav\wsgidav_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:\Programs\Python36\Lib\site-packages\pyspider\webui\webdav.py
将第209行进行修改,如下
边栏推荐
猜你喜欢
度量学习(Metric learning)—— 基于分类损失函数(softmax、交叉熵、cosface、arcface)
【Copy攻城狮日志】飞浆学院强化学习7日打卡营-学习笔记
【论文阅读】Exploring Spatial Significance via Hybrid Pyramidal Graph Network for Vehicle Re-identificatio
YOLOV5 V6.1 详细训练方法
The second official example analysis of the MOOSE platform - about creating a Kernel and solving the convection-diffusion equation
Use of double pointers
Pytorch问题总结
TensorFlow2 study notes: 6. Overfitting and underfitting, and their mitigation solutions
【CV-Learning】Convolutional Neural Network
Copy Siege Lions "sticky" to AI couplets
随机推荐
(Navigation page) OpenStack-M version - manual construction of two nodes - with video from station B
计算某像素点法线
光条中心提取方法总结(二)
MFC 打开与保存点云PCD文件
WARNING: sql version 9.2, server version 11.0. Some psql features might not work.
The difference between oracle temporary table and pg temporary table
CSDN大礼包--高校圆桌派大礼包
AWS使用EC2降低DeepRacer的训练成本:DeepRacer-for-cloud的实践操作
【CV-Learning】线性分类器(SVM基础)
动手学深度学习_卷积神经网络CNN
Transformer
ConnectionRefusedError: [Errno 111] Connection refused问题解决
亚马逊云科技Build On-Amazon Neptune基于知识图谱的推荐模型构建心得
动手学深度学习_线性回归
Copy攻城狮的年度之“战”|回顾2020
Linear Regression 02---Boston Housing Price Prediction
[Copy Siege Lion Log] Flying Pulp Academy Intensive Learning 7-Day Punch Camp-Study Notes
Unity ML-agents 参数设置解明
Amazon Cloud Technology Build On 2022 - AIot Season 2 IoT Special Experiment Experience
2020-10-19