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

Python virtual environments not considered first before system wide installation

XMLWordPrintable

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major Major
    • 5.0.0
    • Affects Version/s: 5.0.0
    • Component/s: None
    • None

      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/*

            Assignee:
            tanaka Ryan Tanaka (Inactive)
            Reporter:
            tanaka Ryan Tanaka (Inactive)
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: