Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I activate socket.AF_BLUETOOTH in Python3.6?

I'm using Python3.6 standard installation in Windows and I try to do

>>>import socket
>>>socket.AF_BLUETOOTH

The system responds with

AttributeError: module 'socket' has no attribute 'AF_BLUETOOTH'

me and a colleague spend already some time reading forums. I scanned through socket.py in PythonPath\Lib\ but there is as well no mentioning of AF_BLUETOOTH. There is a stackoverflow thread Missing socket.AF_BLUETOOTH in Anaconda Python? which talks about recompiling Python with some changes in some .header files.

Can anyone give a bit more details how to get to a running Python/socket/bluetooth?

like image 727
WolfiG Avatar asked Oct 17 '22 08:10

WolfiG


1 Answers

It seems that it's not available on windows port:

OK with 3.6.7 on linux

KO with 3.6.7 on w10

It would be nice to have a warning in the doc, I've found it...

like image 166
user11475362 Avatar answered Oct 21 '22 07:10

user11475362