Page 1 of 1

How to import bladerf in python code

Posted: Tue Jul 10, 2018 8:57 am
by wkim

I would like to connect to my python code. ...

However, i don't know how to import the cc file in the python code.
I wrote "import osmosdr". But it doesn't work.

Does anyone know what modules I should import in order to use the bladerf_sink_c file?

Thank you.

Re: How to import bladerf in python code

Posted: Thu Jul 12, 2018 12:41 pm
by rtucker

For a practical example, take a look at: ...

You will need to have a working GNU Radio installation to use gr-osmosdr. Many Linux distributions provide it through their package manager, or you can install it using GNU Radio's PyBOMBS system ( If you're using PyBOMBS, note that you may need to use "pybombs run" to ensure the environment is set up correctly when running your script.