If you are getting an error about the script, you probably need to check your paths. If you are using all static paths, you’ll need to double-check that everything is still in the same location.
yes its something to do with paths again, but all my paths are absolute I have checked every one. I have been reading the docs and it told me to put this code in module;
import sys
import os
sys.path.append(os.path.dirname(os.path.realpath(_file_)))
import <your module here>
But that doesn’t work too. It is really odd that this worked fine on Friday.
Found the error it doesn’t like a special character from the Spanish language, which again is odd as one why was it working on Friday, two read_excel doesn’t mess up when running on its own.
I’m going through similar issues. When I run a normal python script it’s perfectly running but when I use pandas or any other new module. UiPath is failing to execute the code. I would like to know how to setup environment.
When you setting up path do you me providing python path in python scope ?
It could be a number of things. I will list them and try each of them.
Do you have a virtual environment? If so provide the path to that. (It will be in the anaconda envs folder).
Are you using 32-bit or 64-bit python? Make sure to change the “Target” attribute to the correct one.
What version of python are you using, It cannot be python 3.7 it has to be 3.6, a friend of mine was using 2.7 and he could not use it with 64-bit so you might need to play around with what python version and target you are using.
Check your code for triple quoted comments and remove them.
Load python script using the “Load python” activity giving the path to the file name that you want to load. And then maybe just have a function that returns “hello world” → “invoke python method” activity give it the function name and o/p of the load python script → “get python object” activity convert the returned string to a .net string → “write line” activity to see if that works, then you know your path is correct it is something to do with the code.
Give those a go, and see if any of them fixes it. If not reply back and I will see what I can do.
Hello ,
I am trying to use 64 bit python-3.5.4 for my own activity, I have changed the target and version. I am using Uipath community edition 2018.4.0.
The error I am facing is invalid Python path(no shortcut path added)
What are the changes to be done?
How about 3.7 version? I am getting the same error. The path I defined here is C:\Users\PrameelaJanardanan\AppData\Local\Programs\Python\Python37-32\Python.exe.