当前位置:网站首页>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
边栏推荐
猜你喜欢

Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer

AI技术产业热点分析

Retrofit's callback hell is really vulnerable in kotlin synergy mode!

Redis set password

Pytest framework implements pre post

Allure -- common configuration items

Rapid prototyping

pytest--之测试报告allure配置

MYSQL环境配置

The nanny level tutorial of flutter environment configuration makes the doctor green to the end
随机推荐
14.信号量的代码实现
Flutter——Canvas自定义曲线图
Flink实时计算topN热榜
flink 提交程序
使用Windbg静态分析dump文件(实战经验总结)
07数据导入Sqoop
flume 190 INSTALL
14. Code implementation of semaphore
Operator-1 first acquaintance with operator
拆解美图SaaS:开着飞机换引擎
Importing tables from sqoop
lunix重新分配root 和 home 空间内存
Flink submitter
LeetCode+ 76 - 80 暴搜专题
【JetBrain Rider】构建项目出现异常:未找到导入的项目“D:\VisualStudio2017\IDE\MSBuild\15.0\Bin\Roslyn\Microsoft.CSh
Shutter - canvas custom graph
JS settimeout() and interview questions
Shapiro Wilk normal analysis by SPSS
Test -- Summary of interview questions
02-taildir source