mincemeat の実行中にエラーが発生します。コードは octo.py で正常に実行されます。私はコーセラの課題のためのコードをそのまま入れていませんが、本当にひき肉を好むでしょう. エラーは次のとおりです。
C:\Python27>python mincemeat.py -p changeme localhost
C:\Python27>python mincemeat.py -v changeme localhost
Traceback (most recent call last):
File "mincemeat.py", line 376, in <module>
run_client()
File "mincemeat.py", line 372, in run_client
client.conn(args[0], options.port)
File "mincemeat.py", line 149, in conn
self.connect((server, port))
File "C:\Python27\lib\asyncore.py", line 347, in connect
err = self.socket.connect_ex(address)
File "C:\Python27\lib\socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
socket.gaierror: [Errno 11001] getaddrinfo failed
C:\Python27>ping localhost
Pinging anand [::1] with 32 bytes of data:
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Ping statistics for ::1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms