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

pc_ble_driver_py DLL missing

Hello,

I'm having an issue running the examples provided within the pc_ble_driver_py repository.

When I try running an example, say, advertising.py,  I get the following error: ImportError: DLL load failed

I followed the instructions Installing from PyPl specified in https://github.com/NordicSemiconductor/pc-ble-driver-py .

The DLL being loaded is loaded in pc_ble_driver_py/lib/nrf_ble_driver_sd_api_v5.py, line 13: from . import _nrf_ble_driver_sd_api_v5

Here's the whole Traceback:

Traceback (most recent call last):
  File "C:/Users/Gonzalo/Desktop/python/imports/pc_ble_driver_py/examples/serial_port_enum.py", line 83, in <module>
    init(sys.argv[1])
  File "C:/Users/Gonzalo/Desktop/python/imports/pc_ble_driver_py/examples/serial_port_enum.py", line 48, in init
    from pc_ble_driver_py.ble_driver import BLEDriver, Flasher
  File "C:\Users\Gonzalo\Desktop\python\imports\pc_ble_driver_py\ble_driver.py", line 77, in <module>
    import pc_ble_driver_py.lib.nrf_ble_driver_sd_api_v5 as driver
  File "C:\Users\Gonzalo\Desktop\python\imports\pc_ble_driver_py\lib\nrf_ble_driver_sd_api_v5.py", line 13, in <module>
    from . import _nrf_ble_driver_sd_api_v5
ImportError: DLL load failed: Määritettyä osaa ei löydy.

Any ideas what could be causing the issue? I'm new to Python so this is probably a contributing factor as well.

Cheers

Related