One strange problem I’m getting - code that ran fine with the previous python alpha package 1.9.0-alpha.5252821 refuses to run with this updated package, always giving me: Python Scope: Error initializing Python engine
All arguments are the same and downgrading back to the alpha version reliably fixes it. I have tried explicitly installing both the .net 6 and 8 frameworks, any idea what might be going wrong?
I have actually solved the issue. Looks like I didn’t have the SDK installed. I had “dotnet-hosting-8.0.6-win.exe” which is something else.
I installed the .NET 8 SDK and it works perfectly now.
Hello @loginerror, do you have any idea what I could else check if I keep receiving exception ‘Python Scope: Error initializing Python engine’ with more details:
RemoteException wrapping System.InvalidOperationException: Error initializing Python engine ---> RemoteException wrapping System.InvalidOperationException: Python deserialization exception ---> RemoteException wrapping System.ArgumentNullException: Value cannot be null. (Parameter 's')
at System.ArgumentNullException.Throw(String paramName)
at System.Text.Encoding.GetBytes(String s)
at UiPath.Shared.Service.PythonResponse.Deserialize(String json)
--- End of inner exception stack trace ---
at UiPath.Shared.Service.PythonResponse.Deserialize(String json)
at UiPath.Python.Service.PythonProxy.RequestAsync(PythonRequest request,
CancellationToken ct)
at UiPath.Python.Service.PythonProxy.Initialize(String path,
String libraryPath,
Version version,
String workingFolder)
at UiPath.Python.Impl.OutOfProcessEngine.Initialize(String workingFolder,
CancellationToken ct,
Double timeout)
at UiPath.Python.Activities.PythonScope.ExecuteAsync(NativeActivityContext context,
CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at UiPath.Shared.Activities.AsyncTaskNativeImplementation.BookmarkResumptionCallback(NativeActivityContext context,
Object value)
at UiPath.Shared.Activities.AsyncTaskNativeActivity.BookmarkResumptionCallback(NativeActivityContext context,
Bookmark bookmark,
Object value)
at System.Activities.Runtime.BookmarkWorkItem.Execute(ActivityExecutor executor,
BookmarkManager bookmarkManager)
I am using:
Studio 24.10.1
Python activities 1.9 // Python 3.11.5 - user installation
Python Scope configured following the sample.
Happy to try although I cannot access that page with my UiPath registered email, also raised a ticket on this and sent examples over including diagnostic information you may be aware of.