Unable to run python script in UiPath

Unable to run python script, it’s giving below error.
I’ve Python version 3.12(32-bit).
I’m using VB Windows in UiPath v 2023.4.4

A warning message indicating that Python version 3.10 or higher is not supported on 32-bit systems. (Captioned by AI)

@marian.platonov Could you please assist with this error?

Thank you

Try reading the documentation of the Python Scope.
Until them play with configuration for Target and Version in the Properties panel.

Hi @marian.platonov
I followed the same doc. steps still it’s not working.

Below is my Python scope properties.

This image shows the properties panel for the UiPath Python Scope activity, including options for DisplayName, Python library path, Python path, target platform, timeout, version, and working folder. (Captioned by AI)

Based on the error message which you have, the activity, is not supporting the Python 32 bit.
Can you give a try by installing Python 64-bit or use a Python <3.10 in 32-bit?

@loginerror Do you know if we support the Python 32-bit for Python 3.10.+ in UiPath.Python.Activities.1.8.1?

I tried 64-bit and 32-bit with Python 3.10 and 3.9 and still had the same issue.

It seems to be specifically coded to throw this exception, so I assume it is indeed not supported:

@ramu.neelakantam Is there a reason for you to stick to x86? Just for the sake of testing - could you run the sample project attached under the docs article that was already mentioned in this topic to see if it will work? (and then with Python x64 if possible, at least just for the test that it works without an issue)

1 Like

@ramu.neelakantam
Based on this aspect, you need to use a Python 3.12 on 64-bit instead.

@marian.platonov
I tried using Target *64. It does not even move to the next step from the Python scope. It stays there longer (I waited more than 30 minutes) without proceeding to the next step.
when I change It to *86 it gives me the same error.
I tried with different Python versions 3.10,3.12,3.9, which gave me the same error.

I tried version option is auto and given a specific version as well.

@ramu.neelakantam

Check the event viewer logs mostly it is a runtime issue…you need to install .net runtime 6.0.x

Please install the same

Cheers

Hi @ramu.neelakantam

I faced a similar issue when multiple versions of Python were installed on my system. Removing all the other versions and keeping only Python 3.12 (64-bit) resolved the problem.

Hope this helps :slight_smile:

Hi,
@Anil_G @AJ_Ask @marian.platonov
Hi
I removed all my versions, installed Python 3.12 (64-bit), and installed .net runtime 6.0.x
now I’m getting the below error.

Get Python Object: Error converting Python object

I’m testing simple Python code as mentioned in the below:

def test():
return 123

@ramu.neelakantam

To which type are you converting?

Cheers

What is your output type. Select Output type accordingly that

Hi, @AJ_Ask @Anil_G

Output type: UiPath.python.PythonObject

Output in your python script string, list, array

@ramu.neelakantam

You need to set the type argument of that activity to integer ideally as per the return value…

Cheers

Try first this example to see if is working Import in Python 3.12.4 is not working - Pipe is broken - #2 by marian.platonov

Hi @marian.platonov

I followed the same steps and I’m still getting the below error.

I’m attaching my code as well.
Python_Integration.zip (3.2 KB)

Raise a ticket with Support to check further.

Thanks @Anil_G it’s working now.

Thanks for your prompt response @marian.platonov

1 Like