当前位置:网站首页>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
边栏推荐
猜你喜欢
![[visual studio] visual studio 2019 community version cmake development environment installation (download | install relevant components | create compilation execution project | error handling)](/img/9f/4265f1e3927fcf66602f0fc9e7a9d9.jpg)
[visual studio] visual studio 2019 community version cmake development environment installation (download | install relevant components | create compilation execution project | error handling)

01安装虚拟机

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

SPSS做Shapiro-Wilk正态分析

Sus system availability scale

对话吴纲:我为什么笃信“大国品牌”的崛起?

《实习报告》Skywalking分布式链路追踪?

Mock Server基本使用方法

LeetCode+ 76 - 80 暴搜专题

pytest学习--base
随机推荐
Redis set password
Mysql database remote access permission settings
js promise. all
UVM learning - object attribute of UVM phase
Kustomize使用手册
[unity3d] nested use layout group to make scroll view with dynamic sub object height
Merge ordered sequence
Network communication learning
02-taildir source
【教程】如何让VisualStudio的HelpViewer帮助文档独立运行
MPLS experiment
stm32和电机开发(上位系统)
转换YV12到RGB565图像转换,附YUV转RGB测试
面对不确定性,供应链的作用
ERROR 1118 (42000): Row size too large (&gt; 8126)
UVM - usage of common TLM port
Mongodb quickly get started with some simple operations of mongodb command line
JS settimeout() and interview questions
07 data import sqoop
UWA报告使用小技巧,你get了吗?(第四弹)