I am learning the python activities recently. When the python script include import xlwings, it simply goes wrong.
As long as I comment out the relating code, it works again.
The following would work.
The following would not work.
The following is the Uipath code. Main.xaml (7.4 KB)
Did you ensure that the library is installed for the python targeted by your Python Scope? From the code provided, you’re using a Python 3.9. If you were using another version, replace in the following commands pip3.9 accordingly (for example, pip3.6 for python 3.6)
In the environment where the process is executed, type the [Windows + R] key combination then type
cmd
then [Enter] (or click on OK). In that window, type
pip3.9 install -U xlwings
If the installation fails and you see talking about user --user, try the following, given you’re logged as the user that will execute UiPath process: