Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Bluetooth Sockets

237 views
Skip to first unread message

Simfake Fake

unread,
Jul 16, 2013, 1:52:27 AM7/16/13
to pytho...@python.org
Just bumping this, but has anybody have any personal experience with bluetooth in python 3? Perhaps my issue is that the windows version doesn't include it?


On Sat, Jul 13, 2013 at 6:23 PM, Simfake Fake <simfake...@gmail.com> wrote:
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.

Regards
Jak_o_Shadows

Chris Angelico

unread,
Jul 16, 2013, 4:00:14 AM7/16/13
to pytho...@python.org
On Tue, Jul 16, 2013 at 3:52 PM, Simfake Fake <simfake...@gmail.com> wrote:
> Just bumping this, but has anybody have any personal experience with
> bluetooth in python 3? Perhaps my issue is that the windows version doesn't
> include it?

I haven't worked with Bluetooth in Python, but my reading of the
socket module docs is that AF_BLUETOOTH doesn't imply strong support
anyway. I'd recommend looking for a dedicated bluetooth module; there
seem to be some around.

ChrisA

Christian Heimes

unread,
Jul 16, 2013, 6:08:59 AM7/16/13
to pytho...@python.org
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.

Message has been deleted
0 new messages