For the first time I am testing out the Python functionality in UiPath - StudioX.
I am running a very basic program, adding 2 numbers but I am not even getting that far as StudioX is not accepting my inputs (two integers). The error is "‘Integer()’ cannot be converted to IEnumberable(Of Object)…
I suspect this is an easy fix, but I don’t seem to be able to find the solution. Workflow and error message attached.
you’re trying to input an integer value into an activity that expects an IEnumerable(Of Object)
To fix this error, you can use the Python list() function to create a list containing the two integer values that you want to add
Nothing was returned and StudioX just continued to run which suggests to me it’s an issue with the scope setting given it didn’t time out after 5 seconds as expected.
Any help would be really appreciated. Is it because I am using StudioX?
The path should be the folder where the python.exe file is present
In libraries you have to give the folder where anaconda libraries are present and not the anaconda root folder
Please check your .net runtime version …for python to run properly on the latest version it needs atleast 5.0.17 minutes or higher runtime to be installed
I’ve changed the library directory to \anaconda3\Lib\site-packages and tried again. It still doesn’t run. I have also put a log message in front of the run command and it doesn’t run the log and so clearly I have an issue with the scope.
OK, I will upgrade my .net. I am running 4.8 (see screenshot). What version of python would I need to downgrade to in order to get it working with my current .net version as that might be easier than the upgrade as I risk impacting other software by upgrading?
There seems to be so little documentation on this and so thank you for your help!
Thanks to your help @Anil_G I have a python program now running
Oddly, I can’t pass integers to the code through invoke though, I have to pass two strings and convert them in the Python code to integers. Is that expected behaviour?
.net 5 is little stingent on the datatypes…as it needs ienum of object integers are not auto concerted to object…strings are…so previously we dint have issue…but with .net 5 declaring as object is needed