OpenWonderLabs / python-host

The python code running on Raspberry Pi or other Linux based boards to control SwitchBot.
Apache License 2.0
379 stars 84 forks source link

ImportError: No module named bluepy.btle #15

Closed amccombsahce closed 4 years ago

amccombsahce commented 4 years ago

I am having trouble with this, even though I installed bluepy, the switchbot.py cannot find it

pi@raspberrypi:~/python-host` $ python switchbot.py

Traceback (most recent call last): File "switchbot.py", line 17, in from bluepy.btle import Scanner, DefaultDelegate ImportError: No module named bluepy.btle

but I already did the bluepy install and it shows here:

pi@raspberrypi:~/python-host $ sudo pip3 install bluepy

Requirement already satisfied: bluepy in /usr/local/lib/python3.5/dist-packages

amccombsahce commented 4 years ago

got it to work

uplight-dev commented 4 years ago

How did you got it to work?

sampath97 commented 4 years ago

@amccombsahce I am facing the same issue. How did you got it to work?

amccombsahce commented 4 years ago

I think I uninstalled pip3 and python3, rebooted and reinstalled.