Vinnie3
Posts: 1
Joined: Sat May 04, 2019 6:41 pm

Bluepy on Raspbian

Sat May 04, 2019 6:48 pm

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.

User avatar
MrYsLab
Posts: 331
Joined: Mon Dec 15, 2014 7:14 pm
Location: Noo Joysey, USA

Re: Bluepy on Raspbian

Sat May 04, 2019 10:22 pm

Try this:

Code: Select all

from bluepy.btle import Peripheral

Return to “Python”