Uploaded image for project: 'Pegasus'
  1. Pegasus
  2. PM-1409

Python virtual environments not considered first before system wide installation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.0
    • Fix Version/s: 5.0.0
    • Component/s: None
    • Labels:
      None

      Description

      When using a python virtual environment such as virtualenv, the pegasus-python-wrapper considers it only after having not found python3.7 and python3.6. So, for users using a virtual environment that also have python3.7 or python3.6 installed, their virtual environments will be ignored.

      Scenario:
       - python3 is installed at /usr/bin/python3.7 or /usr/bin/python3.6
       - a virtual environment with python3 is activated with venv/bin/activate
       - any pegasus python program that is wrapped by pegasus-python-wrapper is run

      Expected Result:
      The virtual environment and the packages setup in it are used by the pegasus program.

      sys.executable should be something like /local-scratch/tanaka/pegasus-test/pegasus/venv/bin/python3

      sys.path should contain entries with /local-scratch/tanaka/pegasus-test/pegasus/venv/*

      Actual Result:
      The virtual environment is ignored.

      sys.executable is /usr/bin/python3.6

      sys.path does not contain any entries with /local-scratch/tanaka/pegasus-test/pegasus/venv/*

        Attachments

          Activity

            People

            • Assignee:
              tanaka Ryan Tanaka
              Reporter:
              tanaka Ryan Tanaka
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: