In our project we use both C# and Python languages. I’ve set a pipeline in GitLab that successfully builds packages implemented in both languages. The pipeline uses the recommended OpenTAP docker image based on Linux, namely this one.
Now, when I install the packages generated by the pipeline on Windows I’m seeing that all instruments, DUTs, and steps that come from plugins implemented in Python are broken. This doesn’t happen with the plugins that are implemented in C#.
Just a few examples of the issues:
11:52:16.445 Serializer Exception: Could not load file or assembly 'System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.`
12:01:21.347 Main Caught exception while instantiating test step of type 'Python.XXXXXXXXXXXXX'.
12:01:21.347 Main Exception: Exception has been thrown by the target of an invocation.
12:01:21.347 Main at Keysight.OpenTap.Gui.TestPlanGrid.a(ITypeData A_0, Action& A_1)
12:01:21.347 Main Inner exception: Could not load file or assembly 'System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.
12:01:21.348 Main at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
12:01:21.348 Main at System.Reflection.RuntimePropertyInfo.get_Signature()
12:01:21.348 Main at System.Reflection.RuntimePropertyInfo.get_PropertyType()
12:01:21.348 Main at Keysight.OpenTap.Plugins.Python.PythonStepWrapper.loadDefaultResources(Type t)
12:01:21.348 Main at Keysight.OpenTap.Plugins.Python.PythonStepWrapper.load(String name, String moduleName)
12:01:21.348 Main at PythonXXXXXXX.GetInput.load_instance()
12:01:21.348 Main at Keysight.OpenTap.Plugins.Python.PythonStepWrapper..ctor()
12:01:21.348 Main at Python.XXXXXX.DigitalIO..ctor()
12:01:21.348 Main at Python.XXXXXX.GetInput..ctor()
12:01:21.349 Main Exception caught at:
12:01:21.349 Main at OpenTap.ITestStep AddStepToPlan(OpenTap.ITypeData, OpenTap.ITestStepParent, Boolean)
12:01:21.349 Main at Void c(OpenTap.ITypeData, Boolean)
12:01:21.349 Main at Void c(OpenTap.ITypeData)
12:01:21.349 Main at Void i(System.Object, System.Windows.RoutedEventArgs)
12:01:21.349 Main ...
Is it supposed to work or do I have to use Windows in the pipeline?
Thanks,
Tatiana