Python script is working fine from IDLE, but not working from UiPath studio :
Getting below error: XamlServices.Save(XamlWriter writer, Object instance)
at UiPath.Workflow.Operations.Serializer.Services.WorkflowXamlSerializer.SaveAsString(ActivityBuilder activityBuilder)
at UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerWrapper.SaveSnapshot(String fileName), HResult -2147024894
06:25:11.8112 => [ERROR] [UiPath.Studio.Project] [1] System.IO.FileNotFoundException: Could not load file or assembly ‘UiPath.CodedWorkflows, Version=24.10.2.0, Culture=neutral, PublicKeyToken=null’. The system cannot find the file specified.
File name: ‘UiPath.CodedWorkflows, Version=24.10.2.0, Culture=neutral, PublicKeyToken=null’
at System.ModuleHandle.ResolveType(QCallModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)
at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(MetadataToken caCtorToken, MetadataImport& scope, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, ListBuilder`1& derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctorWithParameters, Boolean& isVarArg)
at System.Reflection.CustomAttribute.AddCustomAttributes(ListBuilder`1& attributes, RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, ListBuilder`1 derivedAttributes)
at System.Attribute.GetCustomAttributes(Assembly element, Type attributeType, Boolean inherit)
error from studio is : one or more errors occurred.
Studio version :23.4.6
Python version :3.13
same script is working fine for 3.12