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

Parents
  • I found the same problem today.

    I used Dependency Walker to examine the DLL provided with the pc-ble-driver-py package for 0.12.0, I think the supplied DLLs have missing dependencies that may be included with Visual Studio (Debug build?)

    The change notes for pc-ble-driver-py 0.12.0 mention use of the latest driver 4.1.1, if you go there pc-ble-driver 4.1.1 you can download it and those DLL files do not have the same dependencies, at least on my machine.

    I replaced pc_ble_driver_py.lib.nrf-ble-driver-sd_api_v5-mt-gd-4_1_1.dll with a copy of nrf-ble-driver-sd_api_v5-mt-4_1_1.dll and now my installation works.

  • I am still running into issues with this error. I downloaded the zip from the link provided above (pc-ble-driver 4.1.1 for Windows x64), and placed the files in the pc-ble-driver-py/lib folder. I then changed the name to v5 lib to nrf_ble_driver_sd_api_v5. I still get the following error:


    Traceback (most recent call last):
      File "C:/Users/elainechesoni/WindowsDev/pc-ble-driver-py/pc_ble_driver_py/examples/heart_rate_collector.py", line 208, in <module>
        init(sys.argv[1])
      File "C:/Users/elainechesoni/WindowsDev/pc-ble-driver-py/pc_ble_driver_py/examples/heart_rate_collector.py", line 56, in init
        from pc_ble_driver_py.ble_driver import (
      File "C:\Users\elainechesoni\WindowsDev\pc-ble-driver-py\pc_ble_driver_py\ble_driver.py", line 80, in <module>
        import pc_ble_driver_py.lib.nrf_ble_driver_sd_api_v5 as driver
    ModuleNotFoundError: No module named 'pc_ble_driver_py.lib.nrf_ble_driver_sd_api_v5'

    Can anyone offer any advice? I'm losing my mind over this one.

    Apologies for the noob question. I am really stuck.

Reply
  • I am still running into issues with this error. I downloaded the zip from the link provided above (pc-ble-driver 4.1.1 for Windows x64), and placed the files in the pc-ble-driver-py/lib folder. I then changed the name to v5 lib to nrf_ble_driver_sd_api_v5. I still get the following error:


    Traceback (most recent call last):
      File "C:/Users/elainechesoni/WindowsDev/pc-ble-driver-py/pc_ble_driver_py/examples/heart_rate_collector.py", line 208, in <module>
        init(sys.argv[1])
      File "C:/Users/elainechesoni/WindowsDev/pc-ble-driver-py/pc_ble_driver_py/examples/heart_rate_collector.py", line 56, in init
        from pc_ble_driver_py.ble_driver import (
      File "C:\Users\elainechesoni\WindowsDev\pc-ble-driver-py\pc_ble_driver_py\ble_driver.py", line 80, in <module>
        import pc_ble_driver_py.lib.nrf_ble_driver_sd_api_v5 as driver
    ModuleNotFoundError: No module named 'pc_ble_driver_py.lib.nrf_ble_driver_sd_api_v5'

    Can anyone offer any advice? I'm losing my mind over this one.

    Apologies for the noob question. I am really stuck.

Children
No Data
Related