Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=python.org; s=200901; t=1373969350; bh=6y2MHxSPDNRB2svhrigx4Aeq7l4VJYJk46E8VuGdEb4=; h=To:From:Subject:Date:Message-ID:References:Mime-Version: Content-Type:Content-Transfer-Encoding:In-Reply-To; b=ES0XjEHFSbVTyX2utezaF6ADl0lHTQsJna7pGRmltkbOlFohJzeD2q6F367IKLi0b JsCA4ewzBR9wXuXJ5P2UZkVML7CUyMC8AmmwxGKdfcihOJZqBf0xhFhMMyZRcjqcIV JOe8V4K+7+OZHn7/wrKNMjCLuu5pjVHPN1+/iCk8= X-Spam-Status: OK 0.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'url:au': 0.05; 'attribute': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'windows': 0.15; 'arm.': 0.16; 'bsd': 0.16; 'from:name:christian heimes': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'from:addr:python.org': 0.16; 'module': 0.19; 'trying': 0.19; 'header:User-Agent:1': 0.23; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; "i'm": 0.30; 'code': 0.31; 'stuff': 0.32; 'run': 0.32; 'linux': 0.33; 'url:python': 0.33; 'similar': 0.36; 'url:org': 0.36; 'url:library': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'eventually': 0.60; 'solve': 0.60; 'url:3': 0.61; 'different': 0.65; 'url:blogspot': 0.65; 'within': 0.65; 'serial': 0.72; 'url:2013': 0.84; 'bluetooth': 0.91; 'robot': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Christian Heimes Subject: Re: Bluetooth Sockets Date: Tue, 16 Jul 2013 12:08:59 +0200 References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: smtp.semantics.de User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 In-Reply-To: X-Enigmail-Version: 1.4.6 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1373969351 news.xs4all.nl 15892 [2001:888:2000:d::a6]:54477 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50737 Am 13.07.2013 10:53, schrieb Simfake Fake: > Hi. I'm trying to connect to a bluetooth serial adaptor using python > 3.x. However, in python 3.3.2 win x32, I get "AttributeError: module has > no attribute AF_..." when trying to use socket.AF_BLUETOOTH, despite the > docs http://docs.python.org/3.3/library/socket.html . The code I have is > very similar to that > found http://kevindoran1.blogspot.com.au/2013/04/bluetooth-programming-with-python-3.html > I need to use python 3.x, as this is eventually going to run within > Blender.. It's going to run within blender so I can use blender to > visualize and solve inverse-kinematic stuff for a robot arm. AF_BLUETOOTH is only available on Linux and some BSD variants. Windows has different bluetooth stacks.