[srslte-users] Having difficulties on SIMcard configuration using pySim

David Rupprecht david.rupprecht at rub.de
Fri Jun 7 08:16:25 UTC 2019


Hi,

the latest commit of pySIM requires pytlv. You need to install pip first:

sudo apt install python-pip

pip install pytlv

Best regards,
David

On 07.06.19 05:43, Nehemiah Chan wrote:
> Hi everyone,
>  
> I am currently facing some difficulty on configuring using the
> pySim-prog.py command although it does display  . I am using sysmocom
> USIM SJS1.
> 
> However, after configuring the updated parameters like ICCID, IMSI (of
> my own choice) etc. It does not display Done! instead it display the
> error below.
> 
> If anyone who has encountered this issue, can you advise me to deal with
> this error?
> Thanks in advance.
> 
> Programming ...
> Traceback (most recent call last):
>   File "./pySim-prog.py", line 644, in <module>
>     card.program(cp)
>   File "/home/pi/pysim/pySim/cards.py", line 594, in program
>     sw = self.update_plmnsel(p['mcc'], p['mnc'])
>   File "/home/pi/pysim/pySim/cards.py", line 111, in update_plmnsel
>     data = self._scc.read_binary(EF['PLMNsel'], length=None, offset=0)
>   File "/home/pi/pysim/pySim/commands.py", line 113, in read_binary
>     length = self.__len(r) - offset
>   File "/home/pi/pysim/pySim/commands.py", line 80, in __len
>     return self.__get_len_from_tlv(r[-1])
>   File "/home/pi/pysim/pySim/commands.py", line 37, in __get_len_from_tlv
>     from pytlv.TLV import TLV
> ImportError: No module named pytlv.TLV
> 
> Best Regards,
> Nehemiah
> 
> _______________________________________________
> srslte-users mailing list
> srslte-users at lists.softwareradiosystems.com
> http://www.softwareradiosystems.com/mailman/listinfo/srslte-users
> 

-- 
M.Sc. David Rupprecht

Ruhr-University Bochum
Research Group Information Security
Universitätsstraße 150
ID 2/130
44780 Bochum / Germany

Phone: +49 234 / 32 - 23508
Web: www.infsec.rub.de



More information about the srsran-users mailing list