问题一

安装好pyspider之后,在启动的时候,报出上图错误。

原因

asyncawaitpython3.7 开始已经加入保留关键字中. 参考: What’s New In Python 3.7, 所以async不能作为函数的参数名.

解决办法

1.打开安装Python的位置:python位置\Lib\site-packages\pyspider

参照地址:D:\Anaconda\Lib\site-packages\pyspider

2.修改下列python文件中的asyncshark(全部替换)

  1. run.py
  2. fetcher\tornado_fetcher.py
  3. webui\app.py

问题二

管理权限打开命令窗口,运行pyspider命令,报下列错

d:\anaconda\lib\site-packages\pyspider\libs\utils.py:: FutureWarning: timeout is not supported on your platform.
warnings.warn("timeout is not supported on your platform.", FutureWarning)
[I :: result_worker:] result_worker starting...
phantomjs fetcher running on port
[I :: processor:] processor starting...
[I :: scheduler:] scheduler starting...
[I :: scheduler:] in 5m: new:,success:,retry:,failed:
[I :: tornado_fetcher:] fetcher starting...
[I :: scheduler:] scheduler.xmlrpc listening on 127.0.0.1:
[I :: run:] phantomjs exited.
[I :: app:] webui exiting...
[I :: tornado_fetcher:] fetcher exiting...
[I :: scheduler:] scheduler exiting...
[I :: result_worker:] result_worker exiting...
[I :: processor:] processor exiting...
Traceback (most recent call last):
File "d:\anaconda\lib\runpy.py", line , in _run_module_as_main
"__main__", mod_spec)
File "d:\anaconda\lib\runpy.py", line , in _run_code
exec(code, run_globals)
File "D:\Anaconda\Scripts\pyspider.exe\__main__.py", line , in <module>
File "d:\anaconda\lib\site-packages\pyspider\run.py", line , in main
cli()
File "d:\anaconda\lib\site-packages\click\core.py", line , in __call__
return self.main(*args, **kwargs)
File "d:\anaconda\lib\site-packages\click\core.py", line , in main
rv = self.invoke(ctx)
File "d:\anaconda\lib\site-packages\click\core.py", line , in invoke
return Command.invoke(self, ctx)
File "d:\anaconda\lib\site-packages\click\core.py", line , in invoke
return ctx.invoke(self.callback, **ctx.params)
File "d:\anaconda\lib\site-packages\click\core.py", line , in invoke
return callback(*args, **kwargs)
File "d:\anaconda\lib\site-packages\click\decorators.py", line , in new_func
return f(get_current_context(), *args, **kwargs)
File "d:\anaconda\lib\site-packages\pyspider\run.py", line , in cli
ctx.invoke(all)
File "d:\anaconda\lib\site-packages\click\core.py", line , in invoke
return callback(*args, **kwargs)
File "d:\anaconda\lib\site-packages\click\decorators.py", line , in new_func
return f(get_current_context(), *args, **kwargs)
File "d:\anaconda\lib\site-packages\pyspider\run.py", line , in all
ctx.invoke(webui, **webui_config)
File "d:\anaconda\lib\site-packages\click\core.py", line , in invoke
return callback(*args, **kwargs)
File "d:\anaconda\lib\site-packages\click\decorators.py", line , in new_func
return f(get_current_context(), *args, **kwargs)
File "d:\anaconda\lib\site-packages\pyspider\run.py", line , in webui
app.run(host=host, port=port)
File "d:\anaconda\lib\site-packages\pyspider\webui\app.py", line , in run
from .webdav import dav_app
File "d:\anaconda\lib\site-packages\pyspider\webui\webdav.py", line , in <module>
dav_app = WsgiDAVApp(config)
File "d:\anaconda\lib\site-packages\wsgidav\wsgidav_app.py", line , in __init__
_check_config(config)
File "d:\anaconda\lib\site-packages\wsgidav\wsgidav_app.py", line , in _check_config
raise ValueError("Invalid configuration:\n - " + "\n - ".join(errors))
ValueError: Invalid configuration:
- Deprecated option 'domaincontroller': use 'http_authenticator.domain_controller' instead.

原因

WsgiDAV发布了版本 pre-release 3.x导致

解决办法

降低WsgiDAV版本,命令窗口运行

python -m pip install wsgidav==2.4.

管理权限打开命令窗口,运行pyspider命令,成功!

pyspider启动错误解决(Python 3.7)的更多相关文章

  1. haproxy admin_stats端口启动错误解决

    /var/log/message里的错误消息大概如下: Feb 13 09:32:50 cluster-node2 haproxy-systemd-wrapper: [ALERT] 043/09325 ...

  2. pyspider 启动错误遇到的一些坑

    https://blog.csdn.net/SiHann/article/details/88239892 突然接到一个项目是关于pyspider,遇到了一些小坑,百度一下发现并没有很好的解决所以研究 ...

  3. Apache启动错误解决方法

    xampp启动时显示的错误为: 10:40:18 [Apache] Error: Apache shutdown unexpectedly.10:40:18 [Apache] This may be ...

  4. win7 重装 docker 启动后无法启动错误解决

    描述 win7 重新安装Docker 后启动  Docker Quickstart Terminal 出现如下错误 Starting "default"... (default) ...

  5. pyspider 启动错误

    [root@localhost python]# pyspider all [W 180629 07:08:26 run:413] phantomjs not found, continue runn ...

  6. 【转载】Apache shutdown unexpectedly启动错误解决方法

    http://blog.csdn.net/dong123dddd/article/details/21372179 xampp启动时显示的错误为: 9:52:41  [Apache] Attempti ...

  7. Redhat中网络启动错误解决办法( Failed to start LSB: Bring up/down networking RTNETLINK answers: File exists)

    关于Redhat系列中网络启动失败的解决办法 报错: Failed to start LSB: Bring up/down networking.             RTNETLINK answ ...

  8. Ubuntu-18.04.2-几个启动错误解决办法

    问题如图: 这里三个问题: 1. piix4_smbus: SMBus Host controller not enabled.(i2c_piix4模块所致,因为系统找不到这个模块,所以报错) 解决办 ...

  9. mysql启动错误解决

    mysql 启动时,报错一般都不明显,因此我们需要配置错误日志 #vim /etc/my.cnf xxxxxxxxxx 1   1 #vim /etc/my.cnf 在[mysqld]下添加 log_ ...

随机推荐

  1. c# tcp 服务客户端

    session connection protobuf-net

  2. JAVA 关于File的使用

    File中常用方法 创建 createNewFile() 在指定位置创建一个空文件,成功就返回true,如果已存在就不创建然后返回false mkdir() 在指定位置创建目录,这只会创建最后一级目录 ...

  3. Linux 部署或升级openssh7.5p1

    运维Linux系统,部署或升级openssh是经常面临的事,以下已redhat6和redhat7为例. 在redhat6中部署openssh会有什么坑,在编辑openssh源码包时会报一些类似的错误, ...

  4. JAVA四种引用方式

    JAVA四种引用方式: java.lang.ref: 强引用(直接变量赋值) 软引用(SoftReference): 只有在要发生OOM错误之前才会回收掉老的软引用对象,应用场景主要防止内存溢出.(缓 ...

  5. jsp基础模板

    jsp页面基础模板 base.jsp <%@ page language="java" contentType="text/html; charset=UTF-8& ...

  6. ATM机取款过程

    假设一个简单的ATM机的取款过程是这样的:首先提示用户输入密码,最多只能输入三次,超过3次则提示用户“密码错误,请取卡”结束交易.如果用户密码正确,再提示用户输入取款金额,ATM机只能输出100元的纸 ...

  7. Windows里服务中没有 MySQL

    1.以管理员身份启动命令提示符 2.安装并启动MySQL服务 C:\Windows\system32>mysqld.exe -installService successfully instal ...

  8. hdu 6143: Killer Names (2017 多校第八场 1011)

    题目链接 题意,有m种颜色,给2n个位置染色,使左边n个和右边n个没有共同的颜色. 可以先递推求出恰用i种颜色染n个位置的方案数,然后枚举两边的染色数就可以了,代码很简单. #include<b ...

  9. How To Create/Extend Swap Partition In Linux Using LVM

    https://www.2daygeek.com/how-to-create-extend-swap-partition-in-linux-using-lvm/ BY RAMYA NUVVULA ·  ...

  10. ECG 项目预研

    1. 数据的采集 智能安全帽,流数据,鉴于数据量大,应该是采集到云平台上,然后在云平台上对数据处理,是一种典型的物联网+大数据应用场景,考虑使用AWS或者阿里云,然后搭建Hadoop/Spark 环境 ...