安装环境
ubuntu 20.x +python3.8
错误1
async=True, get_object=False, no_input=False)
解决:
修改
/usr/local/lib/python3.8/dist-packages/pyspider/run.py
/usr/local/lib/python3.8/dist-packages/pyspider/fetcher/tornado_fetcher.py
/usr/local/lib/python3.8/dist-packages/pyspider/webui/app.py
中所有的async都修改该为async1即可
错误2
.ImportError: cannot import name 'DispatcherMiddleware' from 'werkzeug.wsgi' (/usr/local/lib/python3.8/dist-packages/werkzeug/wsgi.py
解决
降级werkzeug 版本
python3 -m pip uninstall werkzeug
python3 -m pip install werkzeug==0.16.1
错误3
ImportError: cannot import name 'ContextVar' from 'werkzeug.local' (/usr/local/lib/python3.8/dist-packages/werkzeug/local.py
降级flask版本
python3 -m pip uninstall flask
python3 -m pip install flask==1.0
错误4
TypeError: Can't instantiate abstract class ScriptProvider with abstract methods get_resource_inst
解决:
降级 wsgidav 版本
python -m pip install wsgidav==2.4.1