What does the following gnuradio error message mean?

Traceback (most recent call last):
  File "/home/bill/gr-iio/iio-examples/top_block.py", line 15, in <module>
    from gnuradio import iio
ImportError: cannot import name iio

>>> Done (return code 1)

If you are running Ubuntu 18.04 LTS then you can install gr-iio package:

sudo apt-get install gr-iio

then test it

$ python
Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34) 
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from gnuradio import iio

For previous versions according to this issue on GitHub we need to compile gr-iio first.

The guide is presented on AnalogDevices Wiki. You can try to follow it.

| improve this answer | |
  • That got everything rolling. For some reason I must have had a mis spell on the gr-iio package name. – Bill Hurlock Sep 1 '18 at 4:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.