一开始是正常往数据库添加数据字段
来源:6-20 保存数据到mysql中 -2
PandaMin
2018-03-13
过了一会就不行了。
错误日志如下:
[Failure instance: Traceback: <class 'AttributeError'>: get_insert_sql
C:\Users\MIN\Anaconda3\lib\threading.py:916:_bootstrap_inner
C:\Users\MIN\Anaconda3\lib\threading.py:864:run
C:\Users\MIN\Anaconda3\lib\site-packages\twisted\_threads\_threadworker.py:46:work
C:\Users\MIN\Anaconda3\lib\site-packages\twisted\_threads\_team.py:190:doWork
--- <exception caught here> ---
C:\Users\MIN\Anaconda3\lib\site-packages\twisted\python\threadpool.py:250:inContext
C:\Users\MIN\Anaconda3\lib\site-packages\twisted\python\threadpool.py:266:<lambda>
C:\Users\MIN\Anaconda3\lib\site-packages\twisted\python\context.py:122:callWithContext
C:\Users\MIN\Anaconda3\lib\site-packages\twisted\python\context.py:85:callWithContext
C:\Users\MIN\Anaconda3\lib\site-packages\twisted\enterprise\adbapi.py:477:_runInteraction
C:\Users\MIN\Anaconda3\lib\site-packages\twisted\python\compat.py:477:reraise
C:\Users\MIN\Anaconda3\lib\site-packages\twisted\enterprise\adbapi.py:467:_runInteraction
E:/PYscrapy/AriticleSpider\AriticleSpider\pipelines.py:56:do_insert
C:\Users\MIN\Anaconda3\lib\site-packages\scrapy\item.py:74:__getattr__
]
1回答
-
PandaMin
提问者
2018-03-13
我可能知道原因了,是不是没有写answer的插入数据库原因?
012018-03-15
相似问题