question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[twisted] CRITICAL: Unhandled error in Deferred

See original GitHub issue
[root@VM_50_138_centos tutorial]#  scrapy crawl dmoz
2016-11-22 17:08:19 [scrapy] INFO: Scrapy 1.2.1 started (bot: tutorial)
2016-11-22 17:08:19 [scrapy] INFO: Overridden settings: {'NEWSPIDER_MODULE': 'tutorial.spiders', 'SPIDER_MODULES': ['tutorial.spiders'], 'ROBOTSTXT_OBEY': True, 'BOT_NAME': 'tutorial'}
2016-11-22 17:08:19 [scrapy] INFO: Enabled extensions:
['scrapy.extensions.logstats.LogStats',
 'scrapy.extensions.telnet.TelnetConsole',
 'scrapy.extensions.corestats.CoreStats']
2016-11-22 17:08:19 [scrapy] INFO: Enabled downloader middlewares:
['scrapy.downloadermiddlewares.robotstxt.RobotsTxtMiddleware',
 'scrapy.downloadermiddlewares.httpauth.HttpAuthMiddleware',
 'scrapy.downloadermiddlewares.downloadtimeout.DownloadTimeoutMiddleware',
 'scrapy.downloadermiddlewares.defaultheaders.DefaultHeadersMiddleware',
 'scrapy.downloadermiddlewares.useragent.UserAgentMiddleware',
 'scrapy.downloadermiddlewares.retry.RetryMiddleware',
 'scrapy.downloadermiddlewares.redirect.MetaRefreshMiddleware',
 'scrapy.downloadermiddlewares.httpcompression.HttpCompressionMiddleware',
 'scrapy.downloadermiddlewares.redirect.RedirectMiddleware',
 'scrapy.downloadermiddlewares.cookies.CookiesMiddleware',
 'scrapy.downloadermiddlewares.chunked.ChunkedTransferMiddleware',
 'scrapy.downloadermiddlewares.stats.DownloaderStats']
2016-11-22 17:08:19 [scrapy] INFO: Enabled spider middlewares:
['scrapy.spidermiddlewares.httperror.HttpErrorMiddleware',
 'scrapy.spidermiddlewares.offsite.OffsiteMiddleware',
 'scrapy.spidermiddlewares.referer.RefererMiddleware',
 'scrapy.spidermiddlewares.urllength.UrlLengthMiddleware',
 'scrapy.spidermiddlewares.depth.DepthMiddleware']
2016-11-22 17:08:19 [scrapy] INFO: Enabled item pipelines:
[]
2016-11-22 17:08:19 [scrapy] INFO: Spider opened
Unhandled error in Deferred:
2016-11-22 17:08:19 [twisted] CRITICAL: Unhandled error in Deferred:

2016-11-22 17:08:19 [twisted] CRITICAL:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/Twisted-16.6.0rc1-py2.7-linux-x86_64.egg/twisted/internet/defer.py", line 1299, in _inlineCallbacks
    result = g.send(result)
  File "/usr/local/lib/python2.7/site-packages/Scrapy-1.2.1-py2.7.egg/scrapy/crawler.py", line 90, in crawl
    six.reraise(*exc_info)
  File "/usr/local/lib/python2.7/site-packages/Scrapy-1.2.1-py2.7.egg/scrapy/crawler.py", line 74, in crawl
    yield self.engine.open_spider(self.spider, start_requests)
ImportError: No module named _sqlite3

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
Lampere1021commented, Nov 22, 2016

According to your proposal, the problem is solved, SQLite3 module does not exist. Thank you very much, you can leave a WeChat?

0reactions
redapplecommented, Nov 30, 2016

@Lampere1021 , I’m closing the issue. Feel free to re-open it if you still experience the problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scrapy - [twisted] CRITICAL: Unhandled error in Deferred
So I managed to get the Crawler working. No idea what fixed it - just took the orginal spider and copied the def...
Read more >
[twisted] CRITICAL: Unhandled error in Deferred: · Issue #3652
I have written the basic scrapy dmoz_spider from the scrapy example docs. import scrapy class QuotesSpider(scrapy.Spider): name = "quotes" def ...
Read more >
[FIXED] twisted CRITICAL: Unhandled error in Deferred
Issue. I am using scrapy-splash to crawl this website and the spider is giving "[twisted] CRITICAL: Unhandled error in Deferred:".
Read more >
Unhandled error in Deferred: - Deluge Forum
So this happend on a fresh install of Linux Mint - I installed Deluge and deluged as per my normal routine.
Read more >
twisted] CRITICAL: Unhandled error in Deferred - CodeAntenna
解决方法一: 这个问题可能是你的pywin32版本不太对,无论你的电脑是32位还是64位,你要安装的pywin32一定要与你Python的版本相...,CodeAntenna技术文章技术问题代码 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found