Hi,
I have been struggling to get libm2k installed in python on my Mac computer.
I get the following error when importing libm2k in python:
I followed the install process that I could find online starting at https://wiki.analog.com/university/tools/m2k/libm2k/libm2k
-
Download the libiio-darwin.pkg for your system (from the nightly builds) and install it by running sudo installer -pkg /path/to/package.pkg -target /. ⇒ did that (first by clicking the package and doing the install through the GUI and then later through the command line `sudo installer` -- not sure if that would make a difference. Did both methods for all packages installed.
-
Download the libm2k-darwin.pkg for your system and install it by running sudo installer -pkg /path/to/package.pkg -target /. ⇒ did thatnow, that package also included a libiio and I installed that as well. It is not clear how libiio should be installed correctly ...
-
The m2kcli command line tool is also installed with the package.
- ⇒ got that to work after installing libserial with `brew install libserial`
Created a virtual environment starting from python3.10
- pip install -i https://test.pypi.org/simple/ libm2k
- seemed to be installing OK
However, I get the error pasted above when trying to import libm2k.
I did try to download the wheels directly from the libm2k python bindings GitHub but none of the wheels seemed to be compatible with my system/python version.
I am working on an iMAC with Monterey
I am familiar with linux, command line, ... willing to move some files manually in the right folders, but I cannot figure out where _libm2k.cpython-310-darwin.so wants the libiio files and how.
Thanks,
-- Peter Kinget