无法在 windows cmd 中启动 scrapyd

unable to start scrapyd in windows cmd

我正在尝试使用 scrapyd 在 windows cmd 中启动 scrapyd,但是出现以下错误。

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)]

嗯,我已经解决了。错误在于 Twisted。我重新安装了它,一切运行良好。