When attempting to run the license check command using npm run license -- --fix --debug, the process fails due to an inability to create a virtual environment in WSL. This prevents the license scanning process from completing successfully.
Expected Behavior
The license check command should create a virtual environment, scan the licenses, and output that the licenses are up to date.
Current Behavior
Error: Failed to create virtual environment /home/monisha/epo-cbm-forecast/license-debug/.venv
at LicenseChecker.createScanningEnvironment (/home/monisha/epo-cbm-forecast/node_modules/@cdklabs/cdk-cicd-wrapper-cli/lib/cmds/LicenseCommand.js:676:23)
at LicenseChecker.scan (/home/monisha/epo-cbm-forecast/node_modules/@cdklabs/cdk-cicd-wrapper-cli/lib/cmds/LicenseCommand.js:131:21)
at Object.handler (/home/monisha/epo-cbm-forecast/node_modules/@cdklabs/cdk-cicd-wrapper-cli/lib/cmds/LicenseCommand.js:760:90)
at /home/monisha/epo-cbm-forecast/node_modules/yargs/build/index.cjs:1:8993
at j (/home/monisha/epo-cbm-forecast/nodemodules/yargs/build/index.cjs:1:4956)
at .handleValidationAndGetResult (/home/monisha/epo-cbm-forecast/nodemodules/yargs/build/index.cjs:1:8962)
at .applyMiddlewareAndGetResult (/home/monisha/epo-cbm-forecast/nodemodules/yargs/build/index.cjs:1:9604)
at .runCommand (/home/monisha/epo-cbm-forecast/node_modules/yargs/build/index.cjs:1:7231)
at [runYargsParserAndExecuteCommands] (/home/monisha/epo-cbm-forecast/node_modules/yargs/build/index.cjs:1:58539)
at te.parse (/home/monisha/epo-cbm-forecast/node_modules/yargs/build/index.cjs:1:40478)
License scan failed
Reproduction Steps
Execute the following command in your repository:
npm run license -- --fix --debug
Possible Solution
The failure is due to the missing python3.11-venv package, which is necessary to create a virtual environment.
Describe the bug
When attempting to run the license check command using npm run license -- --fix --debug, the process fails due to an inability to create a virtual environment in WSL. This prevents the license scanning process from completing successfully.
Expected Behavior
The license check command should create a virtual environment, scan the licenses, and output that the licenses are up to date.
Current Behavior
Error: Failed to create virtual environment /home/monisha/epo-cbm-forecast/license-debug/.venv at LicenseChecker.createScanningEnvironment (/home/monisha/epo-cbm-forecast/node_modules/@cdklabs/cdk-cicd-wrapper-cli/lib/cmds/LicenseCommand.js:676:23) at LicenseChecker.scan (/home/monisha/epo-cbm-forecast/node_modules/@cdklabs/cdk-cicd-wrapper-cli/lib/cmds/LicenseCommand.js:131:21) at Object.handler (/home/monisha/epo-cbm-forecast/node_modules/@cdklabs/cdk-cicd-wrapper-cli/lib/cmds/LicenseCommand.js:760:90) at /home/monisha/epo-cbm-forecast/node_modules/yargs/build/index.cjs:1:8993 at j (/home/monisha/epo-cbm-forecast/nodemodules/yargs/build/index.cjs:1:4956) at .handleValidationAndGetResult (/home/monisha/epo-cbm-forecast/nodemodules/yargs/build/index.cjs:1:8962) at .applyMiddlewareAndGetResult (/home/monisha/epo-cbm-forecast/nodemodules/yargs/build/index.cjs:1:9604) at .runCommand (/home/monisha/epo-cbm-forecast/node_modules/yargs/build/index.cjs:1:7231) at [runYargsParserAndExecuteCommands] (/home/monisha/epo-cbm-forecast/node_modules/yargs/build/index.cjs:1:58539) at te.parse (/home/monisha/epo-cbm-forecast/node_modules/yargs/build/index.cjs:1:40478) License scan failed
Reproduction Steps
Execute the following command in your repository:
npm run license -- --fix --debug
Possible Solution
The failure is due to the missing python3.11-venv package, which is necessary to create a virtual environment.
sudo apt install python3.11-venv
Additional Information/Context
No response
CDK CI/CD Wrapper version used
0.2.3
Environment details (OS name and version, etc.)
WSL Ubuntu