Questions tagged [pybluez]

PyBluez is a Python extension module allowing access to system Bluetooth resources on Windows, Linux, and OS X(unstable).

PyBluez is a Python module that works on both Python 2 and 3 on Windows and Linux. It has support for both L2CAP and RFCOMM, however L2CAP is unsupported in Python 2. It also has experimental BLE(Bluetooth Low Energy) functions in Linux versions. Mac OS X versions are currently unstable. https://github.com/karulis/pybluez

162 questions
0
votes
1 answer

Pybluez RFCOMM server on Linux no advertisable service

I am trying to run a very simple bluetooth server on Raspbian Linux. If it makes any difference I am using a Raspberry Pi 3's bluetooth adapter as opposed to a dongle. from bluetooth import * server_sock=BluetoothSocket( RFCOMM…
0
votes
1 answer

How do I execute PyBluez samples using BlueZ5 library as normal user (without sudo)?

System: Ubuntu 15.10 with Bluez 5.38 PyBluez with BlueZ 4 didn't have any problem with this. But since migrating to BlueZ 5 and making necessary adjustments to run the bluetooth code, I cannot run the same programs without sudo. Using sudo…
Sidmeister
  • 856
  • 2
  • 14
  • 27
0
votes
1 answer

PyBluez installation error in linux mint

I downloaded the zip folder from pybluez github account and then extracted it. After going to the directory of pybluex-master, in Terminal, I type python setup.py install then, i get this error Traceback (most recent call last): File "setup.py",…
0
votes
0 answers

How to integrate a CSR bluetooth dongle with pybluez library

I was to connect to a bluetooth device using the pybluez python library. I'm using the CST bluetooth dongle (similar to this) However I get the following: >>> from bluetooth import discover_devices >>> discover_devices() Traceback (most recent…
Richie Close
  • 77
  • 2
  • 11
0
votes
1 answer

Code failing once one device isn't found nearby using PyBluez

I'm currently working on some code for one of my classes which is shown right here (changed names/addresses to hide names). # coding=utf:8 #————————————————————————Attendance Checker Start————————————————————————# import bluetooth import…
Dylan
  • 823
  • 2
  • 9
  • 33
0
votes
1 answer

How Can I Install Python Module For Python 2.7.10

Can anyone help me install the pyBluez module for Python 2.7.10? Whenever I try to install it I get this error: C:\Python27\Scripts>pip install pyBluez Collecting pyBluez Using cached pyBluez-0.22.zip Complete output from…
Mick Hugi
  • 23
  • 4
0
votes
1 answer

PyBluez Bluetooth L2CAP

My problem is that I get: raise ValueError ("invalid protocol") ValueError: invalid protocol from this line of code: sock=bluetooth.BluetoothSocket(bluetooth.RFCOMM) I don't understand why I'm getting this error. The reason I'm using this is…
Overtim3
  • 85
  • 1
  • 2
  • 13
-1
votes
0 answers

Bluetooth keyboard Python Emulator to connect with Android

is it possible to create Bluetooth keyboard emulator in Python that can connect to android and use it like a real bluetooth keyboard? I have tried so many times with PyBluez but I couldn't achieve anything but python program was seeing my phone. I'm…
-1
votes
2 answers

How to install pybluez in a Python virtual environment?

I'm wondering how to install pybluez library in a Python virtual environment (Linux Ubuntu / Pop! OS). The problem is simple: there's no bluetooth.h header in the virtual environment, so it fails during installation. In real environment there's a…
Hammeronthenet
  • 132
  • 2
  • 14
-1
votes
1 answer

After installing PyBluez on Windows8.1 I get DLL %1 not valid win32 app

I have installed PyBluez-0.22.win32.exe on a 64bit machine with Python 2.7 (they didn't have a 64bit version). Then I get the following error: ImportError:DLL load failed:%1 is not valid Win32 application. Any idea how I could fix this? Here is the…
Mona Jalal
  • 34,860
  • 64
  • 239
  • 408
-2
votes
1 answer

Python's Bluetooth library of the Bleak report "bleak.exc.BleakError: Could not get GATT services: Unreachable" , how to solve it?

I'm a rookie, I've been doing nothing for a few days and have to turn to overflow for help (┬┬﹏┬┬) Windows 10 downloads a python third-party library of the bleak package and conda's virtual environment tf-gpu-3.7 local install it. Use bleak's…
-2
votes
2 answers

Issue with Python Script

I'm having an issue with my code where I get the output of: Traceback (most recent call last): File "1stHour.py", line 48, in ws1.cell(column=1, row=i, value="%s" % blue_student_list[i]) IndexError: list index out of range` #…
Dylan
  • 823
  • 2
  • 9
  • 33
1 2 3
10
11