无法在Windows cmd中启动scrapyd

时间:2019-03-16 07:52:50

标签: windows cmd scrapyd

我正在尝试使用scrapyd在Windows cmd中开始抓取,但是发生了以下错误。

C:\Users\Zheyuuu>scrapyd
Traceback (most recent call last):
  File "d:\anacaonda\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "d:\anacaonda\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "D:\Anacaonda\Scripts\scrapyd.exe\__main__.py", line 5, in <module>
  File "d:\anacaonda\lib\site-packages\scrapyd\scripts\scrapyd_run.py", line 3, in <module>
    from twisted.scripts.twistd import run
  File "d:\anacaonda\lib\site-packages\twisted\scripts\twistd.py", line 17, in <module>
    from twisted.scripts._twistw import ServerOptions, \
  File "d:\anacaonda\lib\site-packages\twisted\scripts\_twistw.py", line 8, in <module>
    from twisted.application import app, service, internet
  File "d:\anacaonda\lib\site-packages\twisted\application\internet.py", line 54, in <module>
    from automat import MethodicalMachine
  File "d:\anacaonda\lib\site-packages\automat\__init__.py", line 2, in <module>
    from ._methodical import MethodicalMachine
  File "d:\anacaonda\lib\site-packages\automat\_methodical.py", line 34, in <module>
    @attr.s(frozen=True)
TypeError: attributes() got an unexpected keyword argument 'frozen'

我一直在Google中寻找解决方案,但不幸地弄清楚了为什么会发生。而且,我已经重新安装了 scrapyd ,但是没有用。我的包裹在下面。

    Scrapy (1.3.3)
    scrapyd (1.2.0)
    scrapyd-client (1.1.0)
    Twisted (17.5.0) 
    Python: 3.6.1 |Anaconda custom (64-bit)| (default, May 11 2017, 13:25:24) [MSC v.1900 64 bit (AMD64)]

1 个答案:

答案 0 :(得分:0)

好,我已经解决了。错误在于扭曲。我重新安装它,一切运行正常。