Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python import bladerf problem (windows 11) #989

Open
tarasii opened this issue Nov 6, 2024 · 0 comments
Open

python import bladerf problem (windows 11) #989

tarasii opened this issue Nov 6, 2024 · 0 comments

Comments

@tarasii
Copy link

tarasii commented Nov 6, 2024

Hi,

I clone https://github.com/Nuand/bladeRF.git
and in parallel used windows installer:
https://github.com/Nuand/bladeRF/releases/download/2024.05/bladeRF-win-installer-2024.05.exe

Than I tried to install python module by:
python -m pip install -e c:\bladeRF\host\libraries\libbladeRF_bindings\python
It succesfully installed

The problem:
when I'm doing: "import bladerf" I'm getting:

import bladeRf
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'bladeRf'
import bladerf
Traceback (most recent call last):
File "", line 1, in
File "D:\Proj\tarasii\vc\bladeRF\host\libraries\libbladeRF_bindings\python\bladerf_init_.py", line 35, in
from bladerf import _bladerf
File "D:\Proj\tarasii\vc\bladeRF\host\libraries\libbladeRF_bindings\python\bladerf_bladerf.py", line 36, in
libbladeRF = ffi.dlopen("bladerf.dll")
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\taras\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\cffi\api.py", line 150, in dlopen
lib, function_cache = _make_ffi_library(self, name, flags)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\taras\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\cffi\api.py", line 834, in _make_ffi_library
backendlib = _load_backend_lib(backend, libname, flags)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\taras\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\cffi\api.py", line 830, in _load_backend_lib
return backend.load_library(path, flags)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: cannot load library 'C:\Program Files\bladeRF\x64\bladerf.dll': error 0x7e

C:\Program Files\bladeRF\x64\bladerf.dll exists.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant