Post Go back to editing

ADALM Pluto: GNURadio - No module named 'iio.iio_swig'

Category: Software
Software Version: 2021_R2


I have been trying on an off for a couple weeks now to build all components i need for my Pluto.  Initially I simply installed IIO and GNURadio from apt (in Ubuntu 22.04) and had a flowgraph working in minutes.  But i also needed the IIO Oscilloscope for some debugging so i decided to compile everything from scratch, after much frustration i ended up downgrading my OS to Ubuntu 20.04 (because of GTK related compilation errors on the main github branch).  So now running 20.04 i have been able to compile all the repositories (and maybe some i don't need) and i have the IIO oscilloscope working (specifically branches 2021_R2).  Now i would like to go back and get GNU Radio working and i have hit a roadblock i can't figure out.  I have rebuilt "libiio" with -DPYTHON_BINDINGS=ON and i am attempting to rebuild "libad9361-iio" with the same flag but am getting the error below.  If i attempt to run a flowgraph in GNURadio i get the same module not found for iio_swig.  If I search my /usr directory where libiio installs i don't see any swig modules (like they did not get built/installed).  My $PYTHONPATH includes all "dist-packages" locations that contain anything iio related.  Please help if you can!

Running Sphinx v1.8.5

Configuration error:
There is a programmable error in your configuration file:

Traceback (most recent call last):
  File "/usr/local/lib/python3/dist-packages/iio/", line 30, in <module>
    from .iio_swig import *
ModuleNotFoundError: No module named 'iio.iio_swig'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/sphinx/", line 368, in eval_config_file
    execfile_(filename, namespace)
  File "/usr/lib/python3/dist-packages/sphinx/util/", line 150, in execfile_
    exec_(code, _globals)
  File "/home/levi/projects/libad9361-iio/bindings/python/doc/", line 20, in <module>
    import iio
  File "/usr/local/lib/python3/dist-packages/iio/", line 36, in <module>
    from .iio_swig import *
ModuleNotFoundError: No module named 'iio.iio_swig'

Top Replies