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
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.