Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module 'lightblue' has no attribute 'findservices' #4

Open
Ewwwer opened this issue Oct 29, 2021 · 3 comments
Open

Module 'lightblue' has no attribute 'findservices' #4

Ewwwer opened this issue Oct 29, 2021 · 3 comments

Comments

@Ewwwer
Copy link

Ewwwer commented Oct 29, 2021

Hi, it looks like a very good project and I want to try it but after installing Setup.py I run the script and it returns this error:


Searching for 00:18:09:9D:ED:FC...
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/bin/sony-headphones-control", line 4, in <module>
    __import__('pkg_resources').run_script('SonyHeadphonesControl==0.1', 'sony-headphones-control')
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pkg_resources/__init__.py", line 651, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1448, in run_script
    exec(code, namespace, namespace)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/SonyHeadphonesControl-0.1-py3.10.egg/EGG-INFO/scripts/sony-headphones-control", line 19, in <module>
    service_matches = bluetooth.find_service(uuid=uuid, address=addr)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/bluetooth/macos.py", line 49, in find_service
    dresults = lightblue.findservices(addr=address, name=name)
AttributeError: module 'lightblue' has no attribute 'findservices'

Do you know what it could be?
Thank you very much

@impankratov
Copy link
Owner

Hi!
Maybe python 3.10 is the problem, I'm using 3.9.7 and there's no errors regarding "lightblue" module.

@bitmorse
Copy link

Getting the same in python 3.9.9

@impankratov
Copy link
Owner

impankratov commented Feb 17, 2023

@bitmorse @Ewwwer

After f45807d project uses https://pypi.org/project/pybluez-updated/ which seems to be more up-to-date version.

At least for me that alone made it possible to run the project on python 3.

Can you try it out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants