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

[CI] macOS 11 C# job fails to install python dependencies #41390

Closed
raulcd opened this issue Apr 26, 2024 · 1 comment
Closed

[CI] macOS 11 C# job fails to install python dependencies #41390

raulcd opened this issue Apr 26, 2024 · 1 comment

Comments

@raulcd
Copy link
Member

raulcd commented Apr 26, 2024

Describe the bug, including details regarding any error messages, version, and platform.

The AMD64 macOS 11 C# is failing with:

Run ci/scripts/csharp_test.sh $(pwd)
+ source_dir=/Users/runner/work/arrow/arrow/csharp
+ '[' -z '' ']'
+ type python3
+ export PYTHON=python3
+ PYTHON=python3
+ python3 -m pip install pyarrow find-libpython
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try brew install
    xyz, where xyz is the package you are trying to
    install.
    
    If you wish to install a Python library that isn't in Homebrew,
    use a virtual environment:
    
    python3 -m venv path/to/venv
    source path/to/venv/bin/activate
    python3 -m pip install xyz
    
    If you wish to install a Python application that isn't in Homebrew,
    it may be easiest to use 'pipx install xyz', which will manage a
    virtual environment for you. You can install pipx with
    
    brew install pipx
    
    You may restore the old behavior of pip by passing
    the '--break-system-packages' flag to pip, or by adding
    'break-system-packages = true' to your pip.conf file. The latter
    will permanently disable this error.
    
    If you disable this error, we STRONGLY recommend that you additionally
    pass the '--user' flag to pip, or set 'user = true' in your pip.conf
    file. Failure to do this can result in a broken Homebrew installation.
    
    Read more about this behavior here: <https://peps.python.org/pep-0668/>

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

Example: https://github.com/apache/arrow/actions/runs/8836761043/job/24264073837?pr=41376
We need to use venv as the message said or actions/setup-python.

Component(s)

Continuous Integration

raulcd added a commit that referenced this issue Apr 26, 2024
…1392)

### Rationale for this change

The new macos-latest GH runner has changed and jobs are currently failing.

### What changes are included in this PR?

Install python with setup-python.

### Are these changes tested?

Will be on CI

### Are there any user-facing changes?
No
* GitHub Issue: #41390

Authored-by: Raúl Cumplido <raulcumplido@gmail.com>
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
@raulcd raulcd added this to the 17.0.0 milestone Apr 26, 2024
@raulcd
Copy link
Member Author

raulcd commented Apr 26, 2024

Issue resolved by pull request 41392
#41392

@raulcd raulcd closed this as completed Apr 26, 2024
tolleybot pushed a commit to tmct/arrow that referenced this issue May 2, 2024
…ob (apache#41392)

### Rationale for this change

The new macos-latest GH runner has changed and jobs are currently failing.

### What changes are included in this PR?

Install python with setup-python.

### Are these changes tested?

Will be on CI

### Are there any user-facing changes?
No
* GitHub Issue: apache#41390

Authored-by: Raúl Cumplido <raulcumplido@gmail.com>
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
vibhatha pushed a commit to vibhatha/arrow that referenced this issue May 25, 2024
…ob (apache#41392)

### Rationale for this change

The new macos-latest GH runner has changed and jobs are currently failing.

### What changes are included in this PR?

Install python with setup-python.

### Are these changes tested?

Will be on CI

### Are there any user-facing changes?
No
* GitHub Issue: apache#41390

Authored-by: Raúl Cumplido <raulcumplido@gmail.com>
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
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

1 participant