Hello,
I want to create a program for communication and control between the NRF module and the desktop.
I followed the instructions Installing from https://github.com/NordicSemiconductor/pc-ble-driver-py
I'm having an issue running the examples provided within the pc_ble_driver_py repository.
When I try running an example, advertising.py, This problem occurs.
c:\Users\SMBAE\Downloads\pc-ble-driver-py\pc_ble_driver_py\examples>python advertising.py nrf51 com11
Traceback (most recent call last):
File "C:\Python37\lib\site-packages\pc_ble_driver_py\lib\win\x86_64\pc_ble_driver_sd_api_v2.py", line 14, in swig_import_helper
return importlib.import_module(mname)
File "C:\Python37\lib\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 670, in _load_unlocked
File "<frozen importlib._bootstrap>", line 583, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 1043, in create_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "advertising.py", line 106, in <module>
init(sys.argv[1])
File "advertising.py", line 50, in init
from pc_ble_driver_py.ble_driver import (
File "C:\Python37\lib\site-packages\pc_ble_driver_py\ble_driver.py", line 112, in <module>
driver = importlib.import_module(SWIG_MODULE_NAME)
File "C:\Python37\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Python37\lib\site-packages\pc_ble_driver_py\lib\win\x86_64\pc_ble_driver_sd_api_v2.py", line 17, in <module>
_pc_ble_driver_sd_api_v2 = swig_import_helper()
File "C:\Python37\lib\site-packages\pc_ble_driver_py\lib\win\x86_64\pc_ble_driver_sd_api_v2.py", line 16, in swig_import_helper
return importlib.import_module('_pc_ble_driver_sd_api_v2')
File "C:\Python37\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: DLL load failed: The specified module could not be found.
I am using visual studio 2017 and python 3.7.4
How do I resolve this issue?