Hi,
I am using Cloud Native laptop. Where my python is causing issue in failing in initialise when use the python activity. It worked when set it up and subsequently fails. Any solution to it.
Hi,
I am using Cloud Native laptop. Where my python is causing issue in failing in initialise when use the python activity. It worked when set it up and subsequently fails. Any solution to it.
Since it was working earlier and has started failing now, could you check whether the Python installation or its configured paths have changed in your Cloud Native laptop session?
Also, try running a simple Python script outside UiPath to confirm that Python is working correctly.
Could you share the exact error from the Python Scope activity and your Python version? That would help us understand what’s causing the initialization failure instead of guessing at the root cause.
Thanks!
Hi @mark_rajkumar1, in Python Scope the Path should be the Python install folder (or a venv), not python.exe. For Python 3.10 and up, also set Library path to the matching python3xx.dll and make sure Target matches its bitness. Package 1.9.0 and later also needs .NET Desktop Runtime 6 or higher. When it worked at setup and then broke, one of those usually drifted after an update. Python Scope docs. If none of that fixes it, the exact initialize error and your package version would narrow it down.
The error is Python scope : error initialising Python Engine. I have upgraded package and it matches the file location.
What’s the error you are getting? Please share more details like the package version you are using.
Latets python 1.9 and python312.dll.error initialising Python Engine.
Hi @mark_rajkumar1 ,
On a Cloud Native laptop, Python activities may fail during initialization if the Python path changes, the Python version is unsupported, or required packages are missing. Verify the Python executable path in Python Scope, ensure the correct Python version is installed, and reinstall any dependencies. If the issue started recently, check the UiPath logs for the exact error and try reinstalling the UiPath Python package components.
Thanks
Please refer this how to guide for reference project. Check if this works on your machine. I suspect it’s your activity configuration issue but check this solution once.
@mark_rajkumar1 thanks, that helps. Package 1.9 supports Python 3.12, so with python312.dll set the next suspect is the .NET Desktop Runtime, which 1.9 needs at version 6 or newer. Run dotnet --list-runtimes and look for Microsoft.WindowsDesktop.App. A missing runtime was the fix in this solved thread. If it’s there and you’re on a Windows project, updating to 2.2.x gives clearer setup errors and a Log Python Output to File option that shows the real cause.