scard missing CARD_E_NO_READERS_AVAILABLE definition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyscard (Ubuntu) |
Fix Released
|
Undecided
|
Ludovic Rousseau |
Bug Description
Description: Ubuntu 9.04
Release: 9.04
libpcsclite1:
Installed: 1.4.102-1ubuntu2
Candidate: 1.4.102-1ubuntu2
Version table:
*** 1.4.102-1ubuntu2 0
500 http://
100 /var/lib/
I try to use readers in smartcard.System. With no reader connected, I except to be return an empty list.
Instead, I get: NameError: global name 'SCARD_
[kjelle:~/]$ python
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from smartcard.System import readers
>>> readers = readers()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/var/lib/
return smartcard.
File "/var/lib/
for reader in __PCSCreaders__( groups ):
File "/var/lib/
if hresult=
NameError: global name 'SCARD_
>>>
The problem seem to be that smartcard/
This bug is already corrected in the SVN version of pyscard.