Home > other >  [the twisted] CRITICAL: Unhandled error in Deferred: (to quote pywintypes. Error)
[the twisted] CRITICAL: Unhandled error in Deferred: (to quote pywintypes. Error)

Time:09-26

Unhandled error in Deferred:

Traceback (the most recent call last) :
The File "G: \ \ python Anaconda3 \ lib \ site - packages \ scrapy \ crawler py", line 172, crawl in
Return the self. _crawl (crawler, * args, * * kwargs)
The File "G: \ \ python Anaconda3 \ lib \ site - packages \ scrapy \ crawler py", line 176, in _crawl
D=crawler. Crawl (* args, * * kwargs)
The File "G: \ \ python Anaconda3 \ lib \ site - packages, twisted, Internet, defer the py", line 1613, in unwindGenerator
Return _cancellableInlineCallbacks (gen)
The File "G: \ \ python Anaconda3 \ lib \ site - packages, twisted, Internet, defer the py", line 1529, in _cancellableInlineCallbacks
_inlineCallbacks (None, g, status)
- & lt; The exception caught here> -- -- --
The File "G: \ \ python Anaconda3 \ lib \ site - packages, twisted, Internet, defer the py", line 1418, in _inlineCallbacks
Result=g.s end (result)
The File "G: \ \ python Anaconda3 \ lib \ site - packages \ scrapy \ crawler py", line 79, crawl in
The self. The spiders=self. _create_spider (* args, * * kwargs)
The File "G: \ \ python Anaconda3 \ lib \ site - packages \ scrapy \ crawler py", line 102, in _create_spider
Return the self. Spidercls. From_crawler (self, * args, * * kwargs)
The File "G: \ \ python Anaconda3 \ lib \ site - packages, scrapy, spiders, set p y", 51, the line in from_crawler
Spiders=CLS (* args, * * kwargs)
The File "G: \ MyScrapy \ qidian_login \ qidian_login \ spiders \ qidian_login_spider py", line 8, in __init__
Cookiejar=browsercookie. Chrome () # for chrome cookies
The File "G: \ \ python Anaconda3 \ lib \ site - packages \ browsercookie \ set py", line 397, in chrome
Return the Chrome (cookie_file.) the load ()
The File "G: \ \ python Anaconda3 \ lib \ site - packages \ browsercookie \ set py", line 87, the load in
For cookie in the self. Get_cookies () :
The File "G: \ \ python Anaconda3 \ lib \ site - packages \ browsercookie \ set py", line 149, in get_cookies
Value=https://bbs.csdn.net/topics/self._decrypt (item [5], item [6], the key=key)
The File "G: \ \ python Anaconda3 \ lib \ site - packages \ browsercookie \ set py", line 183, in _decrypt
Return win32crypt. CryptUnprotectData (encrypted_value, None, None, None, 0) [1]. The decode (" utf-8 ")
Pywintypes. Error: (87, 'CryptProtectData', 'parameter errors,')

The 2020-03-10 13:54:41 [twisted] CRITICAL:
Traceback (the most recent call last) :
The File "G: \ \ python Anaconda3 \ lib \ site - packages, twisted, Internet, defer the py", line 1418, in _inlineCallbacks
Result=g.s end (result)
The File "G: \ \ python Anaconda3 \ lib \ site - packages \ scrapy \ crawler py", line 79, crawl in
The self. The spiders=self. _create_spider (* args, * * kwargs)
The File "G: \ \ python Anaconda3 \ lib \ site - packages \ scrapy \ crawler py", line 102, in _create_spider
Return the self. Spidercls. From_crawler (self, * args, * * kwargs)
The File "G: \ \ python Anaconda3 \ lib \ site - packages, scrapy, spiders, set p y", 51, the line in from_crawler
Spiders=CLS (* args, * * kwargs)
The File "G: \ MyScrapy \ qidian_login \ qidian_login \ spiders \ qidian_login_spider py", line 8, in __init__
Cookiejar=browsercookie. Chrome () # for chrome cookies
The File "G: \ \ python Anaconda3 \ lib \ site - packages \ browsercookie \ set py", line 397, in chrome
Return the Chrome (cookie_file.) the load ()
The File "G: \ \ python Anaconda3 \ lib \ site - packages \ browsercookie \ set py", line 87, the load in
For cookie in the self. Get_cookies () :
The File "G: \ \ python Anaconda3 \ lib \ site - packages \ browsercookie \ set py", line 149, in get_cookies
Value=https://bbs.csdn.net/topics/self._decrypt (item [5], item [6], the key=key)
The File "G: \ \ python Anaconda3 \ lib \ site - packages \ browsercookie \ set py", line 183, in _decrypt
Return win32crypt. CryptUnprotectData (encrypted_value, None, None, None, 0) [1]. The decode (" utf-8 ")
Pywintypes. Error: (87, 'CryptProtectData', 'parameter errors,)

CodePudding user response:

I am a written according to the practice the demo
  • Related