V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2019-02-13 11:54:34 +08:00 · 3838 次点击
    这是一个创建于 1870 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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 条回复    2019-02-13 16:18:53 +08:00
    niknik
        1
    niknik  
       2019-02-13 14:32:17 +08:00
    还不如放张截图
    codingAlex
        2
    codingAlex  
       2019-02-13 14:49:20 +08:00 via Android
    谷歌一下
    warcraft1236
        3
    warcraft1236  
       2019-02-13 16:18:53 +08:00
    你 import 的 TelnetConsole 这个没有 port 方法或者属性
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5743 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 01:53 · PVG 09:53 · LAX 18:53 · JFK 21:53
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.