Skip to content

Python: Python activities do not work with virtual environments #42

@andumorie

Description

@andumorie

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_

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions