Unable to run basic python program

I created the sample python program . But it is not working. i am getting below error
Message: Error initializing Python engine

Exception Type: System.InvalidOperationException

System.InvalidOperationException: Error initializing Python engine —> System.InvalidOperationException: Python instantiation exception
Python Invoker program exception:
Exception has been thrown by the target of an invocation.
at UiPath.Shared.Service.PythonResponse.ThrowExceptionIfNeeded()
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.BookmarkCallbackWrapper.Invoke(NativeActivityContext context, Bookmark bookmark, Object value)
at System.Activities.Runtime.BookmarkWorkItem.Execute(ActivityExecutor executor, BookmarkManager book

Hey @BNK
Please check this topic:

I think latest version Python 3.12 is not supported in UiPath. I downgraded UiPath version to 3.9. Now it is working

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.

This is just to mention that the Python 1.8.1 package now supports both Python 3.12 and .NET 6 (you no longer need that awkward .net 5.0.17 runtime to use the activity)