Skip to content

install_ydk.sh tries to create a new venv #1034

@valeriodigregorio

Description

@valeriodigregorio

Issue tracker is ONLY used for reporting bugs. Please use the YDK Community for any support issues.

Expected Behavior

install_ydk.sh should use currently sourced env/venv or alternatively allow the user to specify the venv location that has to be sourced.

Current Behavior

install_ydk.sh doesn't use currently sourced env/venv but rather tries to create a env unless venv folder is present in YDKGEN_HOME folder.

if [[ ! -d ${YDKGEN_HOME}/venv ]]; then
  print_msg "Creating Python3 virtual environment in ${YDKGEN_HOME}/venv"
  run_cmd python3 -m venv ${HOME}/venv
fi
run_cmd source ${HOME}/venv/bin/activate

Steps to Reproduce

  1. create a venv in /myfolder/myvenv/
  2. source /myfolder/myvenv/bin/activate
  3. run install_ydk.sh
  4. verify that YDK has not been installed in /myfolder/myvenv/

Your Script

N/A

Logs

N/A

System Information

Python 3.6.10, RHEL8.2, 16x Intel(R) Xeon(R) Gold 6154 CPU @ 3.00GHz

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions