AnsweredAssumed Answered

libiio python bindings crash

Question asked by ahelak on Mar 4, 2015
Latest reply on Mar 13, 2015 by pcercuei

Hi,

 

I have a small update to the iio.py python bindings. I noticed when running them on a remote x86 linux machine that has no iio devices attached, it crashes on startup, even if I'm intending to use it with a network context.

 

The crash happens as soon as the iio module is imported -- since one of the default arguments to the Context class is a mutable parameter it gets evaluated no matter what. http://effbot.org/zone/default-values.htm

 

Not sure if this happens for others, I'm using a libiio about 1.5 months out of date, but I attached a modified iio.py file with a small fix along with the error screenshot.

 

Thanks,

Adam

Attachments

Outcomes