Help on using pysim to flash a SIM card

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

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


Hi All,I'm following this wiki
http://osmocom.org/projects/pysim/wiki

I cloned pysim repo, and I cloned this repo also: git clone
https://github.com/LudovicRousseau/pyscard.git

*although pcsc_scan works*
But when I run below:

cd <pysim-path>
./pySim-read.py –p 0

*it always gives me this error:*

cd ~/pysim

./pySim-read.py -p0
Traceback (most recent call last):
  File "./pySim-read.py", line 36, in <module>
    from pySim.cards import card_detect, Card
  File "/home/support/pysim/pySim/cards.py", 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.

Br,
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/openbsc/attachments/20201130/9bc23d63/attachment.htm>


More information about the OpenBSC mailing list