Closed knedlsepp closed 5 years ago
What operating system are you using?
What version of macOS?
I'm running 10.11.6.
I'm also experiencing the same problem on a Raspberry pi 3B+ running NixOS-18.03 and using pcsclite and the CCID driver. The card reader is a ACR122U.
Good to know the problem is not related to macOS but is also present on GNU/Linux + pcsclite. Do you also have the problem with contact cards? or only with contactless cards?
Sadly the ACR122U is the only reader I own.
I can reproduce the problem. Sorry for the delay. I am working on a fix.
Great to hear!
I've been using the sample_TransmitCardObserver.py example for reading mifare-tags. I do want to run this script as a daemon, but I'm getting random
CardRequestTimeoutException: Time-out during card request
errors. Those keep mostly popping up, when quickly interacting with the reader and the tag - putting it to the reader only for a short time and pulling it away. The full trace is as follows:After this happens the program just hangs indefinitely. I tracked the issue down to: https://github.com/LudovicRousseau/pyscard/pull/22 Without this PR, the Monitor just keeps on going, printing the occasional stack-trace, but otherwise seeming to work fine. I'm now using
pyscard
exclusively with this patch locally undone. I would however love to see this fixed here. I guess for now I'd prefer for #22 to be un-merged. If the only downside of that is "duplicate error message printouts" not being prevented, I would prefer the monitoring-thread not being stopped on aCardRequestTimeoutException
and mostly working flawlessly otherwise.