Page 1 of 1

OSError: [Errno 110] ETIMEDOUT?

Posted: Sun Feb 10, 2019 3:20 am
by kwiley
I occasionally get "OSError: [Errno 110] ETIMEDOUT" when querying a Sparkfun Qwiic keyapad (https://www.sparkfun.com/products/14836). It doesn't correlate with whether a button has actually been pressed. The error is merely associated with querying the line. Any thoughts?

Re: OSError: [Errno 110] ETIMEDOUT?

Posted: Sun Feb 10, 2019 5:26 am
by kwagyeman
What line of code throws this? I2C? If so, wrap the method in a try except. Unlike C python throws exceptions on errors.

Re: OSError: [Errno 110] ETIMEDOUT?

Posted: Sun Feb 10, 2019 5:11 pm
by kwiley
Yeah, I did that, and if it solves the problem, that's fine. I was just curious what causes it and whether it indicates that I'm doing something wrong or can otherwise alleviate it.

Re: OSError: [Errno 110] ETIMEDOUT?

Posted: Sun Feb 10, 2019 8:23 pm
by kwagyeman
Probably an electrical issue.