You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 6, 2026. It is now read-only.
I'm trying to use PyUnitTestTask on a hosted linux agent. It is the only task in the test build I'm running. It fails with the following error.
2018-03-14T09:07:52.8189714Z ##[section]Starting: Python unit test
2018-03-14T09:07:52.8488494Z ==============================================================================
2018-03-14T09:07:52.8501736Z Task : Python Unit Test
2018-03-14T09:07:52.8514538Z Description : Runs unit tests against your Python 3 code base
2018-03-14T09:07:52.8528377Z Version : 0.2.0
2018-03-14T09:07:52.8541202Z Author : dazfuller
2018-03-14T09:07:52.8554108Z Help : Replace with markdown to show in help
2018-03-14T09:07:52.8567898Z ==============================================================================
2018-03-14T09:07:54.0373498Z [command]/usr/bin/python3 -m venv /opt/vsts/work/1/venv/build
2018-03-14T09:07:54.4607914Z The virtual environment was not created successfully because ensurepip is not
2018-03-14T09:07:54.4622280Z available. On Debian/Ubuntu systems, you need to install the python3-venv
2018-03-14T09:07:54.4637410Z package using the following command.
2018-03-14T09:07:54.4644321Z
2018-03-14T09:07:54.4658483Z apt-get install python3-venv
2018-03-14T09:07:54.4665234Z
2018-03-14T09:07:54.4681246Z You may need to use sudo with that command. After installing the python3-venv
2018-03-14T09:07:54.4693908Z package, recreate your virtual environment.
2018-03-14T09:07:54.4700864Z
2018-03-14T09:07:54.4714483Z Failing command: ['/opt/vsts/work/1/venv/build/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']
2018-03-14T09:07:54.4721500Z
2018-03-14T09:07:54.4928381Z (node:97) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: /usr/bin/python3 failed with return code: 1
2018-03-14T09:07:54.5385536Z ##[section]Finishing: Python unit test
Hi,
I'm trying to use PyUnitTestTask on a hosted linux agent. It is the only task in the test build I'm running. It fails with the following error.
Any idea what has gone wrong?