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
@marian.platonov Could you please assist with this error?
Thank you
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
@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.
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)
@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.
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
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
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
What is your output type. Select Output type accordingly that
Output in your python script string, list, array
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
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