From: SourceForge.net <no...@so...> - 2011-10-25 04:52:37
|
Bugs item #3427826, was opened at 2011-10-24 13:39 Message generated for change (Comment added) made by pbourgault You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=957072&aid=3427826&group_id=196342 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: PCSC wrapper Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Philippe BOURGAULT (pbourgault) Assigned to: jean-daniel aussel (jdaussel) Summary: SCardControl issue with python 2.7 Initial Comment: Hello, I am using pyscard 2.6.12 and python 2.7.2 and I have a issue with ScardControl. When calling SCardControl to send proprietary command to reader, the ScardControl returns 0x0000001F error code. Only SCardControl calls sending data to reader, are having this behavior. SCardControl, used for getting attributes for example, still runs fine. Please find attached a sample code. This code works fine using python 2.5 and 2.6 but fails on python 2.7. Unfortunately, as these commands are proprietary to our CL1356A+ reader , you will not been able to run this code. If you cannot adapt this code on another reader, I can eventually lend you a CL1356A+ reader for debugging purposes. Thanks, regards, Philippe BOURGAULT ---------------------------------------------------------------------- >Comment By: Philippe BOURGAULT (pbourgault) Date: 2011-10-25 04:52 Message: Hi Ludovic, I am using Windows and I have the problem with all SCardControl that are exchanging data with the reader; not the other one like getting or setting attributes. However, the issue (with exactly same code) doesn't happen on Windows using same pyscard version (1.6.12) on python 2.5 and 2.6; only 2.7 has the problem. Moreover, there is no issue when calling SCardControl from C language with the same data. I'm not a specialist about wrappers but It is likely that there is something inconsistent between the wrapper and python 2.7. Regards, ---------------------------------------------------------------------- Comment By: Ludovic Rousseau (ludov) Date: 2011-10-24 18:49 Message: Hello Philippe, I guess you are using Windows. Exact? Do you have the problem with all the SCardControl() or just some of them? Do you have the same problem under GNU/Linux or Mac OS X? I am using Python 2.7.1 on Mac OS X Lion and do not have a problem with SCardControl(). So maybe the problem is Windows specific. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=957072&aid=3427826&group_id=196342 |