Community.Activities icon indicating copy to clipboard operation
Community.Activities copied to clipboard

Python: Python activities do not work with virtual environments

Open andumorie opened this issue 6 years ago • 1 comments

Describe the bug Trying to set the Python path to a virtual environment results in an exception when using the Load Script activity: "There was no endpoint listening at net.pipe://localhost/UiPath.Service/Host_IPythonService_13976 that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. ----> System.IO.PipeException: The pipe endpoint 'net.pipe://localhost/UiPath.Service/Host_IPythonService_13976' could not be found on your local machine."

To Reproduce Steps to reproduce the behavior:

  1. Add a Python Scope activity
  2. Set the path to a virtual environment
  3. Use the Load Script activity
  4. See error

Expected behavior Should work just like when providing the system Python path

Screenshots http://prntscr.com/ma29e6

Additional context Example workflow to reproduce: https://drive.google.com/open?id=1S-RYuGmxN6vWDlWANnVEJcSzF7oaclI_

andumorie avatar Jan 21 '19 12:01 andumorie

I would also be very interested in a solution. Is it nowadays possible to use venv in UiPath?

igorsekulic avatar Sep 11 '20 15:09 igorsekulic