|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
目前python版本3.8。
在进行了多次安装卸载之后的pyspider并且在出现了一下内容:
File “D:\installed\Python\Lib\site-packages\pyspider\run.py”, line 231
async=True, get_object=False, no_input=False):
SyntaxError: invalid syntax
替换了:D:\installed\Python\Lib\site-packages\pyspider\run.py 和 D:\installed\Python\Lib\site-packages\pyspider\fetcher\tornado_fetcher.py
为async 的变量或参数名。未进行“全部替换”
替换保存后再次运行“pyspider all”
这时spider只启动到“scheduler xmlrpc listening on 127.0.0.1:23333”就停止了
继续替换PYTHON_HOME\Lib\site-packages\pyspider\webui\app.py中的async
之后再次运行pyspider all之后系统显示如下信息:
c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\pyspider\libs\utils.py:196: FutureWarning: timeout is not supported on your platform.
warnings.warn("timeout is not supported on your platform.", FutureWarning)
[W 200317 15:37:23 run:413] phantomjs not found, continue running without it.
[I 200317 15:37:25 result_worker:49] result_worker starting...
[I 200317 15:37:25 processor:211] processor starting...
[I 200317 15:37:25 scheduler:647] scheduler starting...
[I 200317 15:37:25 scheduler:586] in 5m: new:0,success:0,retry:0,failed:0
[I 200317 15:37:26 tornado_fetcher:638] fetcher starting...
[I 200317 15:37:26 scheduler:782] scheduler.xmlrpc listening on 127.0.0.1:23333
[I 200317 15:37:26 app:84] webui exiting...
[I 200317 15:37:26 tornado_fetcher:671] fetcher exiting...
[I 200317 15:37:26 scheduler:663] scheduler exiting...
[I 200317 15:37:26 processor:229] processor exiting...
[I 200317 15:37:27 result_worker:66] result_worker exiting...
Traceback (most recent call last):
File "C:\Users\lee\AppData\Local\Programs\Python\Python38\Scripts\pyspider-script.py", line 11, in <module>
load_entry_point('pyspider==0.3.10', 'console_scripts', 'pyspider')()
File "c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\pyspider\run.py", line 754, in main
cli()
File "c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\click\decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\pyspider\run.py", line 497, in all
ctx.invoke(webui, **webui_config)
File "c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\click\decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\pyspider\run.py", line 384, in webui
app.run(host=host, port=port)
File "c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\pyspider\webui\app.py", line 59, in run
from .webdav import dav_app
File "c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\pyspider\webui\webdav.py", line 216, in <module>
dav_app = WsgiDAVApp(config)
File "c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\wsgidav\wsgidav_app.py", line 134, in __init__
_check_config(config)
File "c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\wsgidav\wsgidav_app.py", line 118, in _check_config
raise ValueError("Invalid configuration:\n - " + "\n - ".join(errors))
ValueError: Invalid configuration:
- Deprecated option 'domaincontroller': use 'http_authenticator.domain_controller' instead.
又查询到可能是因为wsgidav的版本问题导致,再次进行python -m pip install wsgidav==2.4.1将wsgidav替换为2.4.1。但是悲剧的事情再次出现。接着出现如下报错信息。pyspider依然无法正常启动。。。。求大神指点pyspider的问题到底出在什么地方。。。。
c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\pyspider\libs\utils.py:196: FutureWarning: timeout is not supported on your platform.
warnings.warn("timeout is not supported on your platform.", FutureWarning)
[W 200317 15:40:54 run:413] phantomjs not found, continue running without it.
[I 200317 15:40:56 result_worker:49] result_worker starting...
[I 200317 15:40:56 processor:211] processor starting...
[I 200317 15:40:56 scheduler:647] scheduler starting...
[I 200317 15:40:56 scheduler:586] in 5m: new:0,success:0,retry:0,failed:0
[I 200317 15:40:57 tornado_fetcher:638] fetcher starting...
[I 200317 15:40:57 scheduler:782] scheduler.xmlrpc listening on 127.0.0.1:23333
[I 200317 15:40:57 app:84] webui exiting...
[I 200317 15:40:57 tornado_fetcher:671] fetcher exiting...
[I 200317 15:40:57 scheduler:663] scheduler exiting...
[I 200317 15:40:57 processor:229] processor exiting...
[I 200317 15:40:58 result_worker:66] result_worker exiting...
Traceback (most recent call last):
File "C:\Users\lee\AppData\Local\Programs\Python\Python38\Scripts\pyspider-script.py", line 11, in <module>
load_entry_point('pyspider==0.3.10', 'console_scripts', 'pyspider')()
File "c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\pyspider\run.py", line 754, in main
cli()
File "c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\click\decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\pyspider\run.py", line 497, in all
ctx.invoke(webui, **webui_config)
File "c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\click\decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\pyspider\run.py", line 384, in webui
app.run(host=host, port=port)
File "c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\pyspider\webui\app.py", line 64, in run
from werkzeug.wsgi import DispatcherMiddleware
ImportError: cannot import name 'DispatcherMiddleware' from 'werkzeug.wsgi' (c:\users\lee\appdata\local\programs\python\python38\lib\site-packages\werkzeug\wsgi.py) |
|