You get an import error like this for newer version of Pysim:
ImportError: cannot import name 'card_handler' from 'pySim.card_handler'
You need to update the host/setup_fs.py file to conform to the current version of pySim. Change two of the import statements as follows (note the inconsistent use of camelcase and underscores):
from pySim.card_handler import CardHandler
from pySim.cards import card_detect, SimCard
and change the use of the (old) card_handler class on line 120:
when running
QR_based_applet/host/setup_fs.py
You get an import error like this for newer version of Pysim:
You need to update the
host/setup_fs.py
file to conform to the current version of pySim. Change two of the import statements as follows (note the inconsistent use of camelcase and underscores):and change the use of the (old) card_handler class on line 120: