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

Failed to locate the pc_ble_driver shared library

Hi, We are facing issue related to pc_ble_driver shared library at the time of run script.

Traceback (most recent call last):

File "SDFTest.py", line 414, in init(sys.argv[1])

File "SDFTest.py", line 70, in init from pc_ble_driver_py.ble_driver import BLEDriver, BLEAdvData, BLEEvtID,

BLEGapScanParams, BLEEnableParams, BLEGapTimeoutSrc, BLEUUID, BLEUUIDBase File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site- packages/pc_ble_driver_py-0.11.3-py2.7.egg/pc_ble_driver_py/ble_driver.py", line 100, in

raise RuntimeError('Failed to locate the pc_ble_driver shared library: {}.'.format(shlib_path))

RuntimeError: Failed to locate the pc_ble_driver shared library:

/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pc_ble_driver_py-0.11.3-py2.7.egg/pc_ble_driver_py/lib/macos_osx/libpc_ble_driver_shared_sd_api_v3.dylib.

we are using this command to run script SDFTest.py NRF52 tty.usbmodem1A161

Parents
  • What file did you download? The PyPi libs are not available on github, but located here. If one file is missing, there is likely other files missing or causing errors. You should try removing the library from PyPi using the uninstall command, then make sure there is no pc_ble_driver_py directories located in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/, before you install again using PyPi.

Reply
  • What file did you download? The PyPi libs are not available on github, but located here. If one file is missing, there is likely other files missing or causing errors. You should try removing the library from PyPi using the uninstall command, then make sure there is no pc_ble_driver_py directories located in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/, before you install again using PyPi.

Children
No Data
Related