Page 1 of 1

Bluepy on Raspbian

Posted: Sat May 04, 2019 6:48 pm
by Vinnie3
Is there a difference between bluepy and bluepy.btle, I see some documents that says to install bluepy, but example codes always import from bluepy.btle. But when I run:
from bluepy.btle import Peripheral
I get:
No module named 'bluepy.btle'

On the other hand, if I type:
from bluepy import Peripheral
I get:
cannot import name 'Peripheral'

Also, I am a beginner at Python (and Raspberry Pi).
Please help.

Re: Bluepy on Raspbian

Posted: Sat May 04, 2019 10:22 pm
by MrYsLab
Try this:

Code: Select all

from bluepy.btle import Peripheral