New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
address "'http:" not found: [Errno 11001] getaddrinfo failed. #2325
Comments
Well,it may be related to the quotation, I tried to use |
That's interesting. If |
In unix shells |
so what's your suggestion @kmike ? |
@redapple it seems quoting rules are different in cmd.exe (http://stackoverflow.com/questions/24173825/what-does-single-quote-do-in-windows-batch-files) - only double quotes are supported. It means that on Linux and OS X the right way is to use single quotes, and on Windows the right way is to use double quotes. My vote is to add a note about Windows and keep single quotes in examples. |
Well, I found that on Windows(10) cmd, it also works without quotation like
which got a same result as
|
@LancelotHolmes it works because there is nothing to escape in these URLs; these URLs work without quotes in linux as well. But in linux the example start to fail as soon as user changes URL to another URL, with GET arguments, because It seems escaping in windows shell is more tricky; there is no equivalent for unix single quotes. According to http://ss64.com/nt/syntax-esc.html percent character still needs to be escaped, even if it is inside quotes. On the other hand, unlike bash, |
You can get the same error message if the email server (Mailhog) isn't properly set up.
Simply changing the backend in your settings file can solve this issue (only for local).
|
When I try the sample code of scrapy tutorial in Creating a project,
Extracting data
,after typeI got a exception like
and my operating system is windows with python 2.7
The text was updated successfully, but these errors were encountered: