-
Notifications
You must be signed in to change notification settings - Fork 490
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
no module named bluepy.btle and no attrivbute "DefaultDelegate" #480
Comments
Hi, It looks like python is unable to find the module files. Not much to do with the library itself. Try:
To see the paths where the interpreter is looking for the bluepy library. There should be an entry like this leading to the bluepy module files 'btle.py' (at least on my Pi): If you find your bluepy installation directory and add it to sys.path you will be able to do e.g. ''from bluepy.btle import Scanner". |
the issue is with installations, lke if you install bluepy by sudo and try to find link of the just python then you do not find bluepy. |
On Bookworm, following instructions to install from source:
I installed bluepy with sudo python, run my python script with sudo but still get this error. |
Thanks. I realise now I installed the bluepy in ~ so just moved it where it expects |
Hi everyone,
I try to use bluepy, my code has worked before but now i have an error.
I use "import bluepy.btle as btle"
I have setup a new Raspberry Pi3 , installed bluepy with "pip3 install bluepy", but when i try to launch my python script, I have an error that say "no module named bluepy.btle". I've tried to reinstall bluepy, but it's the same error.
So i have tried ''import bluepy as btle" , it works but now i have an other error which is "bluepy has no attribute 'DefaultDelegate'"
Do someone has the same problem ? It seems that bluepy is not installed correctly, or something like that.
Thanks for your answers, and sorry for my poor english.
The text was updated successfully, but these errors were encountered: