pybluez / pybluez

Bluetooth Python extension module
https://pybluez.readthedocs.io/
GNU General Public License v2.0
2.26k stars 669 forks source link

pybluez support for python3.8.X version #348

Closed charlamenan closed 4 years ago

charlamenan commented 4 years ago

PyBluez is not under active development but we are seeking new contributors to investigate bugs and submit patches.

System

Issue

pip install pybluez gives the following error Collecting pybluez Using cached PyBluez-0.23.tar.gz (97 kB) Using legacy setup.py install for pybluez, since package 'wheel' is not installed. Installing collected packages: pybluez Running setup.py install for pybluez ... error ERROR: Command errored out with exit status 1:

charlamenan commented 4 years ago

pybluez installation works with python3.7.4 version ,but i wanted it on python3.8.X versions . could somebody help me please ?

rgov commented 4 years ago

Try pip install wheel and then try again.

charlamenan commented 4 years ago

After installing ,different issue is seen.can i get a .whl file for python3.8.X version .

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000213813AA160>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))': /simple/pybluez/ ERROR: Could not find a version that satisfies the requirement pybluez (from versions: none) ERROR: No matching distribution found for pybluez****

charlamenan commented 4 years ago

@rgov ,Wheel is given for download that supports 3.7 version https://pypi.org/project/PyBluez/#files Can i get wheel for download that supports python 3.8 version

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. PyBluez is not under active development, but we still accept pull requests! If you've resolved your issue, please post your solution and close this issue. Future users will benefit from the knowledge you share. Thank you.

ricardoV94 commented 4 years ago

Reopening to mirror request from @charlamenan

sanjayv2002 commented 1 year ago

pybluez seems to be simple when it comes to implementation. Is there any alternatives for interfacing bluetooth devices using python?

rgov commented 1 year ago

Qt for Python (formerly? alternatively? known as PyQt) does: https://doc.qt.io/qtforpython/examples/example_bluetooth__heartrate_game.html

dogtopus commented 1 year ago

pybluez seems to be simple when it comes to implementation

Actually there are quite a lot of things that makes it unnecessarily complicated to maintain in the long term (Bluetooth stack being highly OS-dependent without a clear common-ground interface being one)

If one system is the only thing you target then write something just for that OS should be easy enough, pure Python (possibly with FFI/pyobjus/pyjnius) or not.

sanjayv2002 commented 1 year ago

Qt for Python (formerly? alternatively? known as PyQt) does: https://doc.qt.io/qtforpython/examples/example_bluetooth__heartrate_game.html

This seems like the thing I was looking for. I was looking for a way to read data from a Bluetooth device using python. (cuz I need to do lots of processing on the said data). Feel free to put suggestions guys for this task, Thanks in advance

And I will try both of your suggestions as well. @dogtopus and @rgov