Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!ecngs!feeder2.ecngs.de!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:error': 0.03; '16,': 0.03; 'argument': 0.05; 'error:': 0.07; '22,': 0.09; 'cc:addr:python-list': 0.11; 'jan': 0.12; '0))': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'cc:addr:python.org': 0.22; 'keyboard': 0.24; 'cc:2**0': 0.24; 'skip:" 30': 0.26; 'header:In- Reply-To:1': 0.27; 'host': 0.29; 'skip:g 30': 0.30; 'start,': 0.30; 'message-id:@mail.gmail.com': 0.30; 'file': 0.32; 'could': 0.34; 'skip:s 30': 0.35; 'something': 0.35; 'case,': 0.35; 'received:google.com': 0.35; 'next': 0.36; 'pm,': 0.38; 'name': 0.63; 'invalid': 0.68; 'unusual': 0.74; '2015': 0.84; '7:00': 0.84; 'to:none': 0.92 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:cc :content-type; bh=7kN/ynHCA2corhKSCRrDxXrdn+zpOlRZPTowEPrOW1M=; b=w1S1ImObuQJorap99kSrQyg4Xk/AYcDQmr4Dih6Ktug3IdVQAjqwqwzfqcY1z/ZNxa HVK63r1u61JgfF3Dx7mPgj5Eqv2BrXECiYmRiBoK9oCUGOLMlwLciTYH708TTF2j8aWM qTYlr+HW30iGe6fHqqvJvFMrPs+wC9j+7EMp+n0HmUUPc0/9yCDuR6FRSHMH8Jy372GC tTUa5MYV9nD1Q+Jv9Fh7bFKPclPdB3ZF6dxw65TTkSGDVN9qYGDV3sF90+NfJiQrq6FS wXX3Glr7cItOjvQ4xkV5Bdw1WKzLvHL4MTX8SLEclYtnj00ZclHgauLK5NvQVekYxdKQ lclQ== MIME-Version: 1.0 X-Received: by 10.224.89.2 with SMTP id c2mr848333qam.75.1421921583623; Thu, 22 Jan 2015 02:13:03 -0800 (PST) In-Reply-To: <1421913649039-5083962.post@n6.nabble.com> References: <1421913649039-5083962.post@n6.nabble.com> Date: Thu, 22 Jan 2015 21:13:03 +1100 Subject: Re: Socket ICMP V6 error From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1421921586 news.xs4all.nl 2964 [2001:888:2000:d::a6]:36710 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:84218 On Thu, Jan 22, 2015 at 7:00 PM, ermanolillo wrote: > s = socket.socket(socket.AF_INET6, socket.SOCK_RAW, socket.IPPROTO_ICMPV6) > > However I recive the next error: > > > > File "server.py", line 16, in > s.bind((HOST, 0)) > File "/usr/lib/python2.7/socket.py", line 224, in meth > return getattr(self._sock,name)(*args) > socket.error: [Errno 22] Invalid argument > > Could someone please help me?. > For a start, what HOST are you using? (Point of style: It's unusual to use an all-uppercase name like HOST for something non-constant - in this case, it's coming from keyboard input.) ChrisA