Closed abiodunwuyi closed 4 years ago
Maybe you need to install pyscard? Why do you ask here for an osmo-sim-auth issue?
pyscard is already installed with "Requirements already satisfied", but the error still persists.
What is the output of
python -c 'import smartcard'
and
python -c 'import smartcard.util'
it confirms that pyscard is NOT installed, or not installed correctly.
So I have to uninstall and reinstall it?
I can do paied consulting if you need. This is NOT an issue with pyscard.
sorry to answer to a thing that is not really an issue but worked for me
sudo apt install -y python3-pip pcscd pcsc-tools libpcsclite-dev python3-pyscard python3-cmd2 libusb-1.0-0-dev
pip3 install contruct jsonpath-ng pytlv cmd2 -U
You only need to install the python3-pyscard
package.
But I guess @abiodunwuyi was not using a Debian (or derivative) system.
Was thinking about pySim-read.py
from osmocom but that's not the place but became here first when googling error... Sorry goodbye
Hello all
issue still there (or new one came)
Best regards t
I think this is an osmocom issue reason for what Ludovic closed this.
Have you installed all PySim dependencies
@tomislavmiksa what is the result of:
cd
python3 -c "import smartcard.util"
I guess you are using Debian stable. Exact?
Please, kindly suggest how to fix below error;
(venv) [root@ibm044 osmo-sim-auth]# ./osmo-sim-auth.py --help Traceback (most recent call last): File "./osmo-sim-auth.py", line 25, in
from card.utils import *
File "/root/work-dir/venv/osmo-sim-auth/card/utils.py", line 26, in
from smartcard.util import toBytes
ImportError: No module named smartcard.util
![smartcard_util error](https://user-images.githubusercontent.com/25392833/73570200-e5f3b480-4439-11ea-802f-180b837d2574.PNG)