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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'context': 0.05; 'everybody,': 0.05; 'skip:" 60': 0.05; 'subject:help': 0.07; 'python': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'terry': 0.09; 'bug': 0.10; '42,': 0.16; 'elsewhere,': 0.16; 'elsewhere.': 0.16; 'oserror:': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject:program': 0.16; 'wrote:': 0.17; 'jan': 0.18; 'defined': 0.22; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; '(most': 0.27; 'necessary.': 0.27; 'subject:please': 0.27; 'header:X-Complaints-To:1': 0.28; 'project:': 0.29; 'usually': 0.30; 'file': 0.32; 'traceback': 0.33; 'to:addr:python-list': 0.33; 'whatever': 0.35; 'open': 0.35; 'doing': 0.35; 'pm,': 0.35; 'there': 0.35; 'received:org': 0.36; 'skip:u 20': 0.36; 'should': 0.36; 'subject:: ': 0.38; 'files': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'address': 0.60; 'here': 0.65; 'broadcast': 0.65; 'dang': 0.84; 'received:fios.verizon.net': 0.84; 'subject:chat': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: please help me to debud my local chat network program Date: Tue, 27 Nov 2012 22:48:16 -0500 References: <8edb652f-c48f-4758-a315-3ecc8070267d@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-75-251-66.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 In-Reply-To: <8edb652f-c48f-4758-a315-3ecc8070267d@googlegroups.com> 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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1354074525 news.xs4all.nl 6861 [2001:888:2000:d::a6]:43945 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:33993 On 11/27/2012 9:50 PM, Minh Dang wrote: > Hello everybody, i am doing my project: local network chat using python > here is my file > http://www.mediafire.com/?cc2g9tmsju0ba2m I am not familiar with .rar files and whether I can open them. Better to upload a standard .zip. > when i compile client.py, there is some bug > Traceback (most recent call last): > File "C:\Users\MINH_IT\workspace\project\src\project\pclient.py", line 303, in > sys.exit(main()) sys.exit is not usually necessary. Just 'main()' should be sufficient. > File "C:\Users\MINH_IT\workspace\project\src\project\pclient.py", line 42, in main > servIP = broadcast() > File "C:\Users\MINH_IT\workspace\project\src\project\pclient.py", line 79, in broadcast > udpSock.bind((broadcastIP, broadcastPort)) > OSError: [WinError 10049] The requested address is not valid in its context The broadcastIP, which you defined elsewhere, whatever it is, is not valid for udpSock, also defined elsewhere. -- Terry Jan Reedy