Help on using pysim to flash a SIM card

Vadim Yanitskiy vyanitskiy at sysmocom.de
Tue Dec 1 08:45:21 UTC 2020


On 12/1/20 2:17 AM, Chunlin Yang wrote:
> ModuleNotFoundError: No module named 'smartcard'
> 
> BTW, I have manually imported smartcard in python, and it's successful.

I guess you have two Python versions (2.7 and 3.x), so it could be that 
you've installed smartcard for 3.x and in works in the shell. 
Unfortunately, pySim has not been completely migrated to 3.x yet, so it 
starts under 2.7 by default.  You can try to run it under 3.x:

   python3 ./pySim-read.py -p0

or install the 'smartcard' module for Python 2.7.

Best regards,
Vadim.

-- 
- Vadim Yanitskiy <vyanitskiy at sysmocom.de>    http://www.sysmocom.de/
=======================================================================
* sysmocom - systems for mobile communications GmbH
* Alt-Moabit 93
* 10559 Berlin, Germany
* Sitz / Registered office: Berlin, HRB 134158 B
* Geschaeftsfuehrer / Managing Director: Harald Welte


More information about the OpenBSC mailing list