当前位置:网站首页>Record attributeerror: 'nonetype' object has no attribute 'nextcall‘
Record attributeerror: 'nonetype' object has no attribute 'nextcall‘
2022-07-02 10:45:00 【Wang guantian】
Record an error
scrapy test scrapy bench
appear
AttributeError: 'NoneType' object has no attribute 'nextcall'Wrong idea : An object doesn't have nextcall attribute
According to error analysis
Traceback (most recent call last):
File "D:\pythoninstalllive\lib\site-packages\twisted\internet\defer.py", line 857, in _runCallbacks
current.result = callback( # type: ignore[misc]
File "D:\pythoninstalllive\lib\site-packages\scrapy\core\engine.py", line 187, in <lambda>
d.addBoth(lambda _: self.slot.nextcall.schedule())Find the specific location where the error occurred
def _next_request_from_scheduler(self) -> Optional[Deferred]:
assert self.slot is not None # typing
assert self.spider is not None # typing
request = self.slot.scheduler.next_request()
if request is None:
return None
d = self._download(request, self.spider)
d.addBoth(self._handle_downloader_output, request)
d.addErrback(lambda f: logger.info('Error while handling downloader output',
exc_info=failure_to_exc_info(f),
extra={'spider': self.spider}))
d.addBoth(lambda _: self.slot.remove_request(request))
d.addErrback(lambda f: logger.info('Error while removing request from slot',
exc_info=failure_to_exc_info(f),
extra={'spider': self.spider}))
# d.addBoth(lambda _: self.slot.nextcall.schedule())
d.addErrback(lambda f: logger.info('Error while scheduling new request',
exc_info=failure_to_exc_info(f),
extra={'spider': self.spider}))
return dTry commenting the error line , Run again scrap bench
result : normal
analysis : Should be scrapy A dependent Library of has changed , Delete an object attribute , Simply, the wrong line has little effect on the program , Just annotate it
边栏推荐
- KS009基于SSH实现宠物管理系统
- webUI自动化学习
- 长投学堂上面的账户安全吗?
- Internet News: Tencent conference application market was officially launched; Soul went to Hong Kong to submit the listing application
- js setTimeout()与面试题
- shell编程01_Shell基础
- 互联网快讯:腾讯会议应用市场正式上线;Soul赴港递交上市申请书
- Pytest framework implements pre post
- 13.信号量临界区保护
- 2021-10-04
猜你喜欢

使用sqlcipher打开加密的sqlite方法

UVM learning - build a simple UVM verification platform

简洁、快速、节约内存的Excel处理工具EasyExcel

Sus system availability scale

Internet News: Tencent conference application market was officially launched; Soul went to Hong Kong to submit the listing application

Postman--使用

Webui automated learning

JS reduce accumulator

Solutions to a series of problems in sqoop job creation

Mongodb quickly get started with some simple operations of mongodb command line
随机推荐
Ks009 implement pet management system based on SSH
MYSQL关键字
【教程】如何让VisualStudio的HelpViewer帮助文档独立运行
使用sqlcipher打开加密的sqlite方法
[Lua] summary of common knowledge points (including common interview sites)
01安装虚拟机
shell编程01_Shell基础
Flink submitter
UVM learning - build a simple UVM verification platform
SQOOP 1.4.6 INSTALL
UVM - configuration mechanism
Thanos Receiver
Postman -- use
简洁、快速、节约内存的Excel处理工具EasyExcel
ERROR 1118 (42000): Row size too large (&gt; 8126)
13.信号量临界区保护
Considerations for Apache deploying static web page projects
Post disaster reconstruction -- Floyd thought
allure--常用配置项
js setTimeout()与面试题