Python 스크립트는 IDLE에서 잘 작동하지만 UiPath Studio에서는 작동하지 않습니다:
다음과 같은 오류가 발생합니다: 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: UiPath.CodedWorkflows 어셈블리의 파일을 로드할 수 없습니다, Version=24.10.2.0, Culture=neutral, PublicKeyToken=null. 시스템에서 지정된 파일을 찾을 수 없습니다.
파일 이름: ‘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)
스튜디오에서 발생한 오류는: 하나 이상의 오류가 발생했습니다.
스튜디오 버전: 23.4.6
파이썬 버전: 3.13
같은 스크립트는 3.12에 대해 잘 작동합니다.