Skip to content

Two dist-info directories for pip on macOS 11 (20230803) #713

Closed

Description

@ilia1243

Description

macOS 11 (20230803) has two dist-info directories installed for pip that causes its unexpected behavior.

See steps to reproduce and AR & ER below.

Platforms affected

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

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 11
  • macOS 12
  • macOS 13
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

Image: https://github.com/actions/runner-images/releases/tag/macOS-11%2F20230803.1
Build: https://github.com/Netcracker/KubeMarine/actions/runs/5806754239

Is it regression?

Yes, the problem does not reproduce on previous build 20230709.1

Expected behavior

  1. Only one dist-info directory /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip-23.2.1.dist-info
  2. pip install pip==23.0 should downgrade the pip package.

Actual behavior

  1. Two dist-info directories
    /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip-23.1.2.dist-info
    /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip-23.2.1.dist-info
    
  2. pip install pip==23.0 "upgrades" the pip package to 23.2.1.

Repro steps

Synthetic job configuration:

  test-pip:
    runs-on: macos-11
    steps:
      - run: |
          find /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages -name 'pip-*.dist-info'
      - uses: actions/setup-python@v4
        with:
          python-version: "3.11"
      - run: |
          pip show pip
          pip install pip==23.0
          pip show pip

Activity

  1. mikhailkoliada commented on Aug 9, 2023

    @mikhailkoliada

    @dmitry-shibanov @MaksimZhukov could you take a look? As of build logs it looks like we bring 2 different versions of pip, one with tool cached python and one with pypy

  2. added
    bugSomething isn't working
    and removed on Aug 9, 2023
  3. ilia1243 commented on Aug 9, 2023

    @ilia1243
    Author

    Hello,
    Just in case, the problem reproduces without usage of actions/setup-python
    https://github.com/Netcracker/KubeMarine/actions/runs/5808735706/job/15746138810

    jobs:
      test-pip:
        runs-on: macos-11
        steps:
          - run: |
              find /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages -name 'pip-*.dist-info'
              pip3 show pip
              pip3 install pip==23.0
              pip3 show pip
    

    AR and ER are the same.

  4. changed the title [-]Two dist-info directories for pip on macOS 11 (20230803)[/-] [+]CPDEV-91439 Two dist-info directories for pip on macOS 11 (20230803)[/+] on Aug 9, 2023
  5. changed the title [-]CPDEV-91439 Two dist-info directories for pip on macOS 11 (20230803)[/-] [+]Two dist-info directories for pip on macOS 11 (20230803)[/+] on Aug 9, 2023
  6. MaksimZhukov commented on Aug 10, 2023

    @MaksimZhukov
    Contributor

    Hello everyone!
    We will take a look at the issue and get back to you as soon as we have any updates

  7. kurtmckee commented on Sep 15, 2023

    @kurtmckee
    Contributor

    @ilia1243 Thanks for confirming that this is happening even without using the setup-python action.

    @MaksimZhukov and @mikhailkoliada it may be that this issue should be transferred back to runner-images where it was initially reported.

  8. dmitry-shibanov commented on Sep 15, 2023

    @dmitry-shibanov
    Contributor

    Hello @kurtmckee. Thank you for your help. For now we're investigating it from our side. After that if it is needed we'll transfer it to runner-images.

  9. mikhailkoliada commented on Sep 15, 2023

    @mikhailkoliada

    This is a python-specific issue, it should not belong to the runner-images repo

  10. v-priyagupta108 commented on Oct 17, 2024

    @v-priyagupta108
    Contributor

    Hi @ilia1243 👋,
    Thank you for your report. Sorry for the late response. I think this pull request should resolve your issue. Could you please verify if you are still experiencing the issue? If it has been resolved, we will go ahead and close this issue. Thanks!

  11. ilia1243 commented on Oct 17, 2024

    @ilia1243
    Author

    Hi @priyagupta108, unfortunately I don't have access to the project anymore where the problem was reproducing. I think it is enough to check that all images don't two dist directories, like in the following way #713 (comment). If you can check that, please close the issue. Thank you!

  12. v-priyagupta108 commented on Oct 21, 2024

    @v-priyagupta108
    Contributor

    Hi @ilia1243,
    I have verified that the issue is now resolved. Below is the output for reference:
    Screenshot 2024-10-21 at 8 54 45 AM

    As the problem is fixed, I am closing this issue. Please feel free to reach out to us in case of any concerns.
    Thank you!

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

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions