Help on using pysim to flash a SIM card

Chunlin Yang chliny2016 at
Tue Dec 1 01:17:59 UTC 2020

Hi All,I'm following this wiki

I cloned pysim repo, and I cloned this repo also: git clone

*although pcsc_scan works*
But when I run below:

cd <pysim-path>
./ –p 0

*it always gives me this error:*

cd ~/pysim

./ -p0
Traceback (most recent call last):
  File "./", line 36, in <module>
    from import card_detect, Card
  File "/home/support/pysim/pySim/", line 29, in <module>
    from smartcard.util import toBytes
ModuleNotFoundError: No module named 'smartcard'

BTW, I have manually imported smartcard in python, and it's successful.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the OpenBSC mailing list