Dear support team,
I want to use ADALM-PLUTO in python.
But when I use the provided pyadi-iio, I get an error.
C:\Work\python\sdr>python
Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import adi
>>> sdr = adi.Pluto("ip:192.168.2.1")
Fatal: program compiled against libxml 20 using libxml 2
Fatal: program compiled against libxml 20 using libxml 2
Warning: program compiled against libxml 2090 using older 209
>>>
What's wrong?
I think I run into this some time ago as well.
libiio.dll is being installed into C:\Windows\System32
In case there is a libxml.dll in the same folder I run into this.
What I did was to quarantine libxml.dll (moved it somewhere else where I can restore it in case something else breaks) and only keep libxml2.dll in C:\Windows\System32
-Michael
Thanks for the reply.
But I only have libxml2.dll in C:\Windows\System32,
The problem still exists.
Michael was referring to if one existed in a local folder like C:\Work\python\sdr.
My guess is that you just have an older version of the libxml.dll that was there before libiio was installed. The installer does not overwrite the DLL if one exists.
I would try renaming that DLL to libxml_old.dll and reinstalling libiio through the provided exe.
-Travis
Michael was referring to if one existed in a local folder like C:\Work\python\sdr.
My guess is that you just have an older version of the libxml.dll that was there before libiio was installed. The installer does not overwrite the DLL if one exists.
I would try renaming that DLL to libxml_old.dll and reinstalling libiio through the provided exe.
-Travis