I'm trying to access a ADRV9002 board through pyadi-iio library and libiio with the current (and hopefully newest) versions:
>>> iio.version(0, 21, 'b23a03b')>>> adi.__version__'0.0.5'
But I get this error when running the script:
Traceback (most recent call last): File "adrv9002.py", line 78, in <module> sdr = adi.adrv9002(uri=target)AttributeError: module 'adi' has no attribute 'adrv9002'
When looking closer at the pyadi-iio package content, I don't see the entry for ADRV9002, that should be supported according to the documentation (https://analogdevicesinc.github.io/pyadi-iio/devices/index.html):
>>> dir(adi)['DAQ2', 'DAQ3', 'Decimal', 'FMComms5', 'Iterable', 'OrderedDict', 'Pluto', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', '__version__', 'ad5627', 'ad5686', 'ad7124', 'ad9094', 'ad9144', 'ad9152', 'ad9361', 'ad9363', 'ad9364', 'ad936x', 'ad9371', 'ad9680', 'adis16460', 'adis16507', 'adrv9009', 'adrv9009_zu11eg', 'adxl345', 'attribute', 'context_manager', 'daq2', 'daq3', 'dds', 'fmclidar1', 'fmcomms5', 'ltc2983', 'name', 'np', 'numbers', 'obs', 'phy', 'rx', 'rx_tx', 'tx']
Does anyone know what is wrong here?
0.0.5 was released a few months
adrv9002 was only added a few weeks ago;
some people are on various vacations;
any idea when the next pyadi-iio release will be?
in the meantime, you could probably add the file to your code until a 0.0.6 release is created;
The next release is probably a week or two. You can directly install master through pip if you want it now:
sudo pip3 install git+https://github.com/analogdevicesinc/pyadi-iio.git
Yes, when running from master, it seems to work.