Hi,
I would like to load sdatb file in the normal cpython, first I tried this example from the python console:
https://groups.google.com/g/vnatools/c/vekhXXA1ksQ/m/Xeuo24nXCgAJI got the error message at the metas_unclib import.
VNA Tools version: 2.8.3
metas-unclib version: 2.8.3
Thank you.
Best Regards,
Laszló
Microsoft Windows [Version 10.0.19045.5131]
(c) Microsoft Corporation. Minden jog fenntartva.
C:\Users\sleiszl>python
Python 3.8.10 (tags/v3.8.10:3d8993a, May 3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> vnatools_path = r'C:\Program Files (x86)\METAS\Metas.Vna.Tools'
>>> data_path = r'C:\Users\Public\Documents\Metas.Vna.Tools\Matlab\Example_01.sdatb'
>>> import os as _os
>>> import clr as _clr
>>> _clr.AddReference(_os.path.join(vnatools_path, "Metas.Vna.Data"))
<System.Reflection.RuntimeAssembly object at 0x00000274F512BA00>
>>> from metas_unclib import *
Nem kezelt kivétel: System.ArgumentException: GenericArguments[0], "Metas.UncLib.LinProp.UncList" (helye: "Metas.UncLib.Core.Unc.GenericUnc`2[T1,T2]") - megsérti a(z) "T1" típusú korlátozást. ---> System.TypeLoadException: GenericArguments[0], "Metas.UncLib.LinProp.UncList" (hely: "Metas.UncLib.Core.Unc.GenericUnc`2[T1,T2]") - megsérti a(z) "T1" típusparaméter korlátozását.
a következő helyen: System.RuntimeTypeHandle.Instantiate(RuntimeTypeHandle handle, IntPtr* pInst, Int32 numGenericArgs, ObjectHandleOnStack type)
a következő helyen: System.RuntimeTypeHandle.Instantiate(Type[] inst)
a következő helyen: System.RuntimeType.MakeGenericType(Type[] instantiation)
--- Vége a belső kivételek veremkivonatának ---
a következő helyen: System.RuntimeType.ValidateGenericArguments(MemberInfo definition, RuntimeType[] genericArguments, Exception e)
a következő helyen: System.RuntimeType.MakeGenericType(Type[] instantiation)
a következő helyen: Python.Runtime.ClassBase.type_subscript(IntPtr idx)
a következő helyen: Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
a következő helyen: Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)