movingheart

Results 8 comments of movingheart

还有个地方有问题,184页的“代码清单9-2”里没有rate=105的记录,在185页怎么可能联结产生rate=105的记录呢。

add ssh remote login by pem file.

Tracing this error,I find that 'msg' is: '2015-07-01 17:17:31 [scrapy] DEBUG: Retrying (failed 1 times): TCP c onnection timed out: 10060: \xd3\xc9\xd3\xda\xc1\xac\xbd\xd3\xb7\xbd\xd4\xda\xd2 \xbb\xb6\xce\xca\xb1\xbc\xe4\xba\xf3\xc3\xbb\xd3\xd0\xd5\xfd\xc8\xb7\xb4\xf0\xb8 \xb4\xbb\xf2\xc1\xac\xbd\xd3\xb5\xc4\xd6\xf7\xbb\xfa\xc3\xbb\xd3\xd0\xb7\xb4\xd3 \xa6\xa3\xac\xc1\xac\xbd\xd3\xb3\xa2\xca\xd4\xca\xa7\xb0\xdc\xa1\xa3.'

\xd3\xc9\xd3\xda\xc1\xac\xbd\xd3\xb7\xbd\xd4\xda\xd2 \xbb\xb6\xce\xca\xb1\xbc\xe4\xba\xf3\xc3\xbb\xd3\xd0\xd5\xfd\xc8\xb7\xb4\xf0\xb8 \xb4\xbb\xf2\xc1\xac\xbd\xd3\xb5\xc4\xd6\xf7\xbb\xfa\xc3\xbb\xd3\xd0\xb7\xb4\xd3 \xa6\xa3\xac\xc1\xac\xbd\xd3\xb3\xa2\xca\xd4\xca\xa7\xb0\xdc\xa1\xa3. when I print this in python IDLE , show: 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。. > > > import sys, locale > > > print(sys.getdefaultencoding(), sys.stdout.encoding, locale.getpreferredencoding()) > > > ('ascii',...

I guess that the error appear because "msg" contain chinese characters , perhaps other place in scrapy remain this conditions.

I am moved by your(@kmike,@curita) help.I will list detailed environment: system os: Windows 旗舰版(Ultimate) 32bit python version: 2.7.9 scrapy: 1.0.1 My tries: 1.Change retry.py source code according your(@kmike) commit can't...

Excellently, when I set LOG_ENCODING to None, it work well.Thanks for you help.

解决了,发现nginx重启后生效。