-
Notifications
You must be signed in to change notification settings - Fork 129
errors parsing OIDs in eUICC profile package #210
Comments
Good catch. This is solved with 18f4e44 |
Thanks. Strangely, with this fix applied I'm now getting the following behavior:
so the from_asn1() method is not returning any object but just the empty string. no error/warning/info printed :/ |
This is expected. When everything gets fine, you get no exception, and the value is stored within the object. See: |
I was looking at that page but still don't seem to have understood it. I guess I would normally expect to either have to explicitly create an object/instance with () calling a constructor of a class, or if I simply call a staticmethod or classmethod which then returns an instance of the class. So... looking at this in more detail:
How would one then work on multiple instances of the same ASN.1 definition at the same time (to represent multiple values of that type)? Sorry for hijacking this issue for the discussion. If there's a better place for that, let me know. |
Yep, this ASN.1 runtime is not thread-safe. On the other side, Python has the GIL, and making multi-threaded applications in Python is quite rare I suppose. If you think you are in this case, then it's recommended to do a |
I'm not even thinking of any multi-threading. Just think you're writing some kind of gateway/translator that has to deal with multiple messages of the same type in one function. All from a single thread. |
I'm trying to parse [portions of] the eUICC test profiles at https://github.com/GSMATerminals/Generic-eUICC-Test-Profile-for-Device-Testing-Public.git
It seems pycrate fails every time there is an OID to be parsed. For example
from
TS48 V2 eSIM_GTP_SAIP2.1_BERTLV.txt
leads towhen using
pycrate_asn1dir.eUICCPP_IFTv2.PEDefinitions.ProfileElement.from_asn1()
to parseThe text was updated successfully, but these errors were encountered: