当前位置:网站首页>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 d
Try 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
边栏推荐
- Database dictionary Navicat automatic generation version
- [unity3d] production progress bar - make image have the functions of filled and sliced at the same time
- Excuse me, is it cost-effective to insure love life patron saint 2.0 increased lifelong life insurance? What are the advantages of this product?
- Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
- 《实习报告》Skywalking分布式链路追踪?
- 2021-09-12
- Network communication learning
- Mysql database remote access permission settings
- 01 install virtual machine
- Use WinDbg to statically analyze dump files (summary of practical experience)
猜你喜欢
"Matching" is true love, a new attitude for young people to make friends
Thanos Receiver
Blender model import UE, collision settings
[jetbrain rider] an exception occurred in the construction project: the imported project "d:\visualstudio2017\ide\msbuild\15.0\bin\roslyn\microsoft.csh" was not found
[Fantasy 4] introduction and use of UMG components (under update...)
session-cookie与token
Rapid prototyping
Use WinDbg to statically analyze dump files (summary of practical experience)
STM32 and motor development (upper system)
KS009基于SSH实现宠物管理系统
随机推荐
Nonlinear optimization: establishment of slam model
转换YV12到RGB565图像转换,附YUV转RGB测试
Mysql database remote access permission settings
Post disaster reconstruction -- Floyd thought
[tutorial] how to make the Helpviewer help document of VisualStudio run independently
两数之和,求目标值
MYSQL环境配置
pytest学习--base
Is this code PHP MySQL redundant?
STM32 and motor development (upper system)
"Matching" is true love, a new attitude for young people to make friends
flume 190 INSTALL
Pytest-- test report allure configuration
Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
[pit avoidance guide] pit encountered by unity3d project when accessing Tencent bugly tool
2021-09-12
AttributeError: type object ‘Image‘ has no attribute ‘fromarray‘
简洁、快速、节约内存的Excel处理工具EasyExcel
js setTimeout()与面试题
webUI自动化学习