Scrapy, terminal startproject, display error timeouterror: [Winerror 10060] The connection attempt failed because the connecting party did not respond correctly after a period of time or the connected host did not react.

Source: Internet
Author: User
Tags change settings

F:\python_project\test>scrapy Startproject SPz

Traceback (most recent):
File "d:\python3.6\lib\runpy.py", line 193, in _run_module_as_main
"__main__", Mod_spec)
File "d:\python3.6\lib\runpy.py", line-in _run_code
EXEC (code, run_globals)
File "D:\python3.6\Scripts\scrapy.exe\__main__.py", line 5, <module>
File "d:\python3.6\lib\site-packages\scrapy\cmdline.py", line 9, <module>
From Scrapy.crawler import crawlerprocess
File "d:\python3.6\lib\site-packages\scrapy\crawler.py", line 7, <module>
From twisted.internet import reactor, defer
File "d:\python3.6\lib\site-packages\twisted\internet\reactor.py", line-up, in <module>
Default.install ()
File "d:\python3.6\lib\site-packages\twisted\internet\selectreactor.py", line 196, in install
Reactor = Selectreactor ()
File "d:\python3.6\lib\site-packages\twisted\internet\selectreactor.py", line at __init__
Posixbase. Posixreactorbase.__init__ (self)
File "d:\python3.6\lib\site-packages\twisted\internet\base.py", line 515, in __init__
Self.installwaker ()
File "d:\python3.6\lib\site-packages\twisted\internet\posixbase.py", line 284, in Installwaker
Self.waker = Self._wakerfactory (self)
File "d:\python3.6\lib\site-packages\twisted\internet\posixbase.py", line +, in __init__
Client.connect (Server.getsockname ())
Timeouterror: [Winerror 10060] The connection attempt failed because the connecting party did not respond correctly after a period of time or the connected host was unresponsive.

This error is really bothering me one day, on-line search also program, give up a while, and then surf the internet to find out a lot of other will also by this error what data set Ah, write crawler ah what, including Baidu know the plan I have looked at a bit seems to be not my mouth, but related to firewalls, ports, etc. It was also said that this may be a network problem, because the installation of scrapy, I really am the whole good, Python can import scrapy, just can't create, when I turned off the firewall, and then the good ... Created successfully ...

Worm

Real pit.

But shutting down the firewall is dangerous, and the system hints are dangerous to add that can be applied through the firewall, I use a public network.

Set->windows security, firewall and network protection with system settings right-click Start Menu

Click Allow app to pass firewall

Click Change settings, if there are in the middle list, you can set it directly, or click Allow other apps to add.

You can also control the panel (run->control) to open the firewall

Scrapy, terminal startproject, display error timeouterror: [Winerror 10060] The connection attempt failed because the connecting party did not respond correctly after a period of time or the connected host did not react.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.