Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5511

Python • Re: Getting intermittent errno 16 "resource busy" with USB printer

$
0
0
I suspect that this is an condition being reported from the state of the printer if it is intermittent. I've seen this with a number of attached devices. What I've done in this case is:
  • Wrap the command in a while loop testing for maximum number of retries
  • Put the command in a try/except
  • In the Except test for intermittent errors. Sleep. Increment number of retries

Statistics: Posted by DS256 — Wed Feb 21, 2024 1:00 pm



Viewing all articles
Browse latest Browse all 5511

Trending Articles