Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'socket': 0.05; '[],': 0.07; 'subject:help': 0.07; '[])': 0.09; '60,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'oserror:': 0.16; 'socket.': 0.16; 'subject:program': 0.16; 'wrote:': 0.17; 'thu,': 0.17; 'received:209.85.214.174': 0.21; 'friend.': 0.22; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'skip:" 50': 0.27; 'subject:please': 0.27; 'message- id:@mail.gmail.com': 0.27; 'attempted': 0.29; 'function': 0.30; 'code': 0.31; 'file': 0.32; 'print': 0.32; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'nov': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'dang': 0.84; 'subject:chat': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=EjoUO1x1YzbATAq/efjZv1a6GdprLfpq3RSMxt7z44k=; b=i24vzxan++6d52cql02dYmZpzx8zRyaVNUH5HQCXkXmHJR81KYI4dZBzeBaW6nlVq1 5wd42ExG5rK+XH1LN/E6CbXNhCXYcjYCk8DAIvbG1yXBQgSFZAgJOwwnZF9LYuh2t94c jwgxuUmjU+pmXfF6lFuUTt8UONEwoQE1Tm7gABnJyFV1/wse9HkJxnd57VYS7+UsfTwn DV8RBWvRBU+GphQSyXZf4n+VljLpI4AeFPeTfTqyenHiIjAi1ZKOhvDaQ2sMlA5mpq+/ hy9dHdOBUluPAhry0dk2ZUBEG2OMcv2+Ky2GnBHP7Vss6Uz3QT5cFfZjgFfJnIS8cdj/ q+Zw== MIME-Version: 1.0 In-Reply-To: <0a66d722-e46c-4230-a39c-2115d84b626e@googlegroups.com> References: <8edb652f-c48f-4758-a315-3ecc8070267d@googlegroups.com> <3aa89e19-05e9-4593-95c8-e142297339a6@googlegroups.com> <0a66d722-e46c-4230-a39c-2115d84b626e@googlegroups.com> Date: Thu, 29 Nov 2012 01:21:14 +1100 Subject: Re: please help me to debud my local chat network program From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1354112478 news.xs4all.nl 6916 [2001:888:2000:d::a6]:53995 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:34022 On Thu, Nov 29, 2012 at 1:10 AM, Minh Dang wrote: > File "C:\Users\MINH_IT\workspace\project\src\project\client.py", line 60, in main > rQueue, wQueue, xQueue = select.select(inputs, [], []) > OSError: [WinError 10038] An operation was attempted on something that is not a socket Have a look at that line of code - specifically, look at what's in inputs. One of them perhaps isn't a socket. Tip: The print function is your friend. ChrisA