推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
Ewig
V2EX  ›  Python

我在用 scrapy 爬虫的时候报错如下

  •  
  •   Ewig · Feb 13, 2019 · 4422 views
    This topic created in 2663 days ago, the information mentioned may be changed or developed.

    scrapy.utils.signal][ERROR] Error caught on signal handler: > Traceback (most recent call last): File "/home/www/.local/lib/python3.4/site-packages/twisted/internet/defer.py", line 151, in maybeDeferred result = f(args, **kw) File "/usr/lib/python3.4/site-packages/pydispatch/robustapply.py", line 55, in robustApply return receiver(arguments, **named) File "/home/www/.local/lib/python3.4/site-packages/scrapy/extensions/telnet.py", line 63, in stop_listening self.port.stopListening() AttributeError: 'TelnetConsole' object has no attribute 'port'

    这个错误如何处理

    3 replies    2019-02-13 16:18:53 +08:00
    niknik
        1
    niknik  
       Feb 13, 2019
    还不如放张截图
    codingAlex
        2
    codingAlex  
       Feb 13, 2019 via Android
    谷歌一下
    daiqiangbudainiu
        3
    daiqiangbudainiu  
       Feb 13, 2019
    你 import 的 TelnetConsole 这个没有 port 方法或者属性
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1644 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 16:24 · PVG 00:24 · LAX 09:24 · JFK 12:24
    ♥ Do have faith in what you're doing.