This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Receiving ModuleNotFoundError: No module named 'pc_ble_driver_py' when trying to run pc-ble-driver-py example heart rate collector on MacOS.

Environment setup:

  • OS: Mac OS Big Sur 11.1
  • Hardware: nRF52DK
  • Python version: Python 3.8.3 (downgrading from 3.9 using pyenv)

The end goal for me is to create a program in which my nRF52DK scans for connectable BLE devices in the vicinity before connecting and reading all of the aforementioned devices' services and characteristics.

To meet this goal, I am trying to build off of the heart rate collector example, however, whenever I run the follwing command:

python3 /path_to_directory/pc_ble_driver_py/examples/heart_rate_collector.py NRF52

I consistently am met with the following error:

Traceback (most recent call last):
  File "/path_to_directory/pc_ble_driver_py/examples/heart_rate_collector.py", line 42, in <module>
    from pc_ble_driver_py.observers import *
ModuleNotFoundError: No module named 'pc_ble_driver_py'

I installed using pip as described in the corresponding Github page here. Likewise I pulled the example from the github page by cloning the directory to my local machine.

Any assistance would be greatly appreciated. On the other hand, if what I am currently trying to make already exists, I would really appreciate being pointed to where I might find it as well as how I could run the program on my nRF52DK.

Parents Reply Children
No Data
Related