Post Go back to editing

Running pyadi-iio on Raspberry Pi OS Lite Error

Thread Summary

The user encountered an AttributeError when trying to import the iio module in a Python application using the CN0566 module on Raspberry Pi 4 with Raspberry Pi OS Lite. The issue was resolved by installing the libiio-dev and libiio-utils packages. A similar problem was addressed in a related EngineerZone thread.
AI Generated Content
Category: Hardware
Product Number: CN0566

Good day.

For our application we try to run CN0566 module on the RPI4 and we have to use Raspberry Pi OS Lite.

We installed pyadi-iio and pylibiio, and when we try to run the code we have an error:

File "/home/admin/app/app.py", line 21, in <module>
import adi
File "/home/admin/pyadi-iio/lib/python3.11/site-packages/adi/__init__.py", line 5, in <module>
from adi.ad2s1210 import ad2s1210
File "/home/admin/pyadi-iio/lib/python3.11/site-packages/adi/ad2s1210.py", line 6, in <module>
from adi.context_manager import context_manager
File "/home/admin/pyadi-iio/lib/python3.11/site-packages/adi/context_manager.py", line 5, in <module>
import iio
File "/home/admin/pyadi-iio/lib/python3.11/site-packages/iio.py", line 229, in <module>
_get_backends_count = _lib.iio_get_backends_count
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/ctypes/__init__.py", line 389, in __getattr__
func = self.__getitem__(name)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/ctypes/__init__.py", line 394, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: python3: undefined symbol: iio_get_backends_count

Could you please suggest some solution?

Thank you!

Parents Reply Children
No Data