-
Type: Bug
-
Resolution: Fixed
-
Priority: Major
-
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/*