SystemError: <built-in function SCardListReaders> returned a result with an error set
PiRK opened this issue · 1 comments
PiRK commented
Description
While create a new wallet, after selecting "Hardware wallet" and clicking Next (with the card inserted in the card reader).
Traceback
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe5 in position 0: invalid continuation byte
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/pierre/dev/ElectrumABC/electroncash/util.py", line 878, in run_with_except_hook
run_original(*args2, **kwargs2)
File "/home/pierre/.local/lib/python3.9/site-packages/smartcard/CardMonitoring.py", line 163, in run
currentcards = self.cardrequest.waitforcardevent()
File "/home/pierre/.local/lib/python3.9/site-packages/smartcard/CardRequest.py", line 72, in waitforcardevent
return self.pcsccardrequest.waitforcardevent()
File "/home/pierre/.local/lib/python3.9/site-packages/smartcard/pcsc/PCSCCardRequest.py", line 291, in waitforcardevent
readernames = self.getReaderNames()
File "/home/pierre/.local/lib/python3.9/site-packages/smartcard/pcsc/PCSCCardRequest.py", line 91, in getReaderNames
hresult, pcscreaders = SCardListReaders(self.hcontext, [])
File "/home/pierre/.local/lib/python3.9/site-packages/smartcard/scard/scard.py", line 640, in SCardListReaders
return _scard.SCardListReaders(hcontext, readergroups)
SystemError: <built-in function SCardListReaders> returned a result with an error set
System information
- Electrum ABC version: 5.0.2
- Python version: 3.9.5 (default, May 11 2021, 08:20:37)
[GCC 10.3.0] - Operating system: Linux-5.11.0-38-generic-x86_64-with-glibc2.33
- Wallet type: standard
- Locale: en_US
PiRK commented
This was most likely caused either by the pysatochip version (fixed by #143, related to #149 (comment)), or by the my card not being loaded with an applet.