No module named bluepy

See original GitHub issue

Hi all, i’m attempting to run bt-mqtt-gateway to detect some NUT beacons but when i execute the command “sudo ./gateway.py” e get this error

22:11:38 Starting
Traceback (most recent call last):
  File "./gateway.py", line 67, in <module>
    manager.register_workers(global_topic_prefix).start(mqtt)
  File "/home/pi/bt-mqtt-gateway/workers_manager.py", line 81, in register_workers
    module_obj = importlib.import_module("workers.%s" % worker_name)
  File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/pi/bt-mqtt-gateway/workers/blescanmulti.py", line 3, in <module>
    from bluepy.btle import Scanner, DefaultDelegate
ModuleNotFoundError: No module named 'bluepy'

what i can do? Thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
bbbenjicommented, Dec 19, 2019

pip3 install bluepy

1reaction
bbbenjicommented, Dec 19, 2019

Are you running it in a Python virtual environment? If so, you might need to install it inside there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ModuleNotFoundError: No module named 'bluepy'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'bluepy' How to remove the ModuleNotFo.
Read more >
Bluepy on Raspbian - Raspberry Pi Forums
from bluepy.btle import Peripheral I get: No module named 'bluepy.btle' On the other hand, if I type: from bluepy import Peripheral
Read more >
bluepy - PyPI
Python module for interfacing with BLE devices through Bluez. Navigation. Project description; Release history; Download files. Project links.
Read more >
Error with bluepy library for scan devices using raspberry pi4
I run this code for scan bluetooth device with bluepy library on my ... bluepy.btle as ble ModuleNotFoundError: No module named 'bluepy'.
Read more >
Discussion - Feed Detail
... File "/home/pi/bluepy/bluepy/Sense_Mic.py", line 1, in <module>; from bluepy.btle import *; ImportError: No module named 'bluepy'.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found