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

Maturin failed to find python interpreter #71

Closed
ritchie46 opened this issue Aug 31, 2022 · 2 comments · Fixed by PyO3/maturin#1072
Closed

Maturin failed to find python interpreter #71

ritchie46 opened this issue Aug 31, 2022 · 2 comments · Fixed by PyO3/maturin#1072
Labels
bug Something isn't working

Comments

@ritchie46
Copy link

When setting manylinux=auto or (lower than 2_24), the pipeline fails as it cannot find a python interpreter.

This is the yaml snippet:

  build_manylinux:
    name: Create Release manylinux
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Prepare maturin publish
        shell: bash
        run: |
          rm py-polars/README.md
          cp README.md py-polars/README.md

      - uses: actions/setup-python@v2
        with:
          python-version: 3.7
          architecture: x64

      - name: publish x64_64
        uses: messense/maturin-action@v1
        env:
          MATURIN_PASSWORD: ${{ secrets.PYPI_PASS }}
          RUSTFLAGS: '-C target-feature=+fxsr,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+avx,+fma'
        with:
          rust-toolchain: nightly-2022-08-22
          maturin-version: '0.13.0'
          command: publish
          args: -m py-polars/Cargo.toml --skip-existing -o wheels -i python -u ritchie46

This is the error in question:

Run messense/maturin-action@v1
Pull Docker image
Cleanup build scripts artifact directory
/usr/bin/docker run --rm --workdir /home/runner/work/polars/polars -e DEBIAN_FRONTEND=noninteractive -e ARCHFLAGS -e _PYTHON_SYSCONFIGDATA_NAME -e MATURIN_PASSWORD -e RUSTFLAGS -v /home/runner/work/polars/polars:/home/runner/work/polars/polars quay.io/pypa/manylinux2014_x86_64:latest /home/runner/work/polars/polars/run-maturin-action.sh
Install Rust
Install maturin
📦 Including license file "py-polars/LICENSE"
🍹 Building a mixed python/rust project
🔗 Found pyo3 bindings with abi3 support for Python ≥ 3.7
🐍 Not using a specific python interpreter
💥 maturin failed
  Caused by: Failed to find any python interpreter
@messense
Copy link
Member

That's odd, can you try maturin 0.13.2?

@messense
Copy link
Member

messense commented Aug 31, 2022

Also can you try remove -i python? abi3 wheel does not need it, it might have confused maturin in manylinux2014 container because there isn't any python executable in PATH python is Python 2.7 in manylinux2014 docker container

args: -m py-polars/Cargo.toml --skip-existing -o wheels -u ritchie46

Edit: removing -i python does not work, it's due to a bug in maturin, but I think you can workaround it with -i python3.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants