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

Python environment broken using uv/pip after setup-python #11639

Open
2 of 15 tasks
flying-sheep opened this issue Feb 21, 2025 · 2 comments
Open
2 of 15 tasks

Python environment broken using uv/pip after setup-python #11639

flying-sheep opened this issue Feb 21, 2025 · 2 comments

Comments

@flying-sheep
Copy link

flying-sheep commented Feb 21, 2025

Description

When installing Python modules into setup-python’s system environment for Python 3.12 on ubuntu-24.04, they can’t be imported for some reason.

See also:

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • Windows Server 2019
  • Windows Server 2022
  • Windows Server 2025

Image version and build link

20250126.1.0 and 20250209.1.0

Is it regression?

Yes, it worked with ubuntu 22.04 and runners 20241215.1.0 and 20250105.1.0:

Expected behavior

installed Python packages are importable

Actual behavior

ModuleNotFoundError: No module named '…'

Repro steps

jobs:
  test:
    runs-on: ubuntu-24.04
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-python@v5
        with:
          python-version: '3.12'
      - run: pip install build
      - run: python -m build
@flying-sheep
Copy link
Author

flying-sheep commented Feb 21, 2025

Update: We circumvented the problem in both CI workflows by using ubuntu-2022.04.

This is still quite a concerning issue.

@Prabhatkumar59
Copy link
Contributor

Hi @flying-sheep - Thank you for bringing this issue to our attention. We will look into this issue and will update you after investigating.
Appreciate your patience! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants