Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github action cannot install pdm if python-venv is not installed #50

Open
jiyoonlim123 opened this issue Feb 21, 2024 · 0 comments
Open

Comments

@jiyoonlim123
Copy link

jiyoonlim123 commented Feb 21, 2024

I tried setup-python with python3.8 and server without python3.8-venv, It shows following errors.

Steps to reproduce

workflow.yml

- name: Setup PDM
  uses: pdm-project/setup-pdm@v4
  with:
       python-version: 3.8

Actual Behavior

Installing PDM (2.12.3): Creating virtual environment
The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt install python3.8-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

Failing command: ['/github/home/.local/share/pdm/venv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']

Error: The process '/usr/bin/python3' failed with exit code 1

Expected behavior

A successful PDM setup / installation step in the workflow.

Environment Information

  • Ubuntu 20.04
  • python3.8-venv is not installed
@jiyoonlim123 jiyoonlim123 changed the title When python-venv is not installed, github action cannot install pdm github action cannot install pdm due to virtualenv creation Feb 21, 2024
@jiyoonlim123 jiyoonlim123 changed the title github action cannot install pdm due to virtualenv creation github action cannot install pdm if python-venv is not installed Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant