[GH-ISSUE #388] Can not start python environment in MacOS #273

Closed
opened 2026-03-01 21:41:57 +03:00 by kerem · 3 comments
Owner

Originally created by @magiskboy on GitHub (Oct 12, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/388

I run act push -j fastapi, then I got a error

Screen Shot 2020-10-12 at 09 15 45

This is the action file

name: Test

on: [push]

jobs:
  fastapi:
    runs-on: ubuntu-latest
    # if: "contains(github.event.head_commit.message, 'FASTAPI: ')"
    strategy:
      matrix:
        python-version: [3.6, 3.7, 3.8]
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install cookiecutter
      run: |
        pip install cookiecutter
    - name: Test generate
      run: |
        cookiecutter --no-input fastapi -o target

Who can help me to resolve this problem?

Originally created by @magiskboy on GitHub (Oct 12, 2020). Original GitHub issue: https://github.com/nektos/act/issues/388 I run `act push -j fastapi`, then I got a error <img width="1420" alt="Screen Shot 2020-10-12 at 09 15 45" src="https://user-images.githubusercontent.com/13352088/95698311-b73a0900-0c6b-11eb-8396-c72f5eb67558.png"> This is the action file ```yaml name: Test on: [push] jobs: fastapi: runs-on: ubuntu-latest # if: "contains(github.event.head_commit.message, 'FASTAPI: ')" strategy: matrix: python-version: [3.6, 3.7, 3.8] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - name: Install cookiecutter run: | pip install cookiecutter - name: Test generate run: | cookiecutter --no-input fastapi -o target ``` Who can help me to resolve this problem?
kerem closed this issue 2026-03-01 21:41:57 +03:00
Author
Owner

@pergpau commented on GitHub (Oct 14, 2020):

Same problem on Ubuntu 20.04. Workflow works fine on Github Actions, but fail with same error using act.

jobs:
  test:
    runs-on: ubuntu-18.04
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-java@v1
        with:
          java-version: '11'
      - uses: actions/setup-go@v1
        with:
          go-version: '1.13.8'
      - uses: actions/setup-node@v1
        with:
          node-version: '10.x'
      - uses: actions/setup-python@v2
        with:
          python-version: '2.7'
      - name: golangci-lint
        uses: golangci/golangci-lint-action@v1
        with:
          version: v1.30
          working-directory: src/backend
<!-- gh-comment-id:708270753 --> @pergpau commented on GitHub (Oct 14, 2020): Same problem on Ubuntu 20.04. Workflow works fine on Github Actions, but fail with same error using act. ```yaml jobs: test: runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 - uses: actions/setup-java@v1 with: java-version: '11' - uses: actions/setup-go@v1 with: go-version: '1.13.8' - uses: actions/setup-node@v1 with: node-version: '10.x' - uses: actions/setup-python@v2 with: python-version: '2.7' - name: golangci-lint uses: golangci/golangci-lint-action@v1 with: version: v1.30 working-directory: src/backend ```
Author
Owner

@davidjmeyer commented on GitHub (Oct 15, 2020):

I also have this problem, it appears to be a duplicate of #251. As mentioned on that issue, try using the alternative runner image with one of the following flags depending on which image you've specified in your workflow.

-P ubuntu-latest=nektos/act-environments-ubuntu:18.04
or
-P ubuntu-18.04=nektos/act-environments-ubuntu:18.04

<!-- gh-comment-id:709367872 --> @davidjmeyer commented on GitHub (Oct 15, 2020): I also have this problem, it appears to be a duplicate of #251. As mentioned on that issue, try using the alternative runner image with one of the following flags depending on which image you've specified in your workflow. `-P ubuntu-latest=nektos/act-environments-ubuntu:18.04` or `-P ubuntu-18.04=nektos/act-environments-ubuntu:18.04`
Author
Owner

@magiskboy commented on GitHub (Oct 17, 2020):

this problem was solved 👍 thank you @davidjmeyer

<!-- gh-comment-id:710778986 --> @magiskboy commented on GitHub (Oct 17, 2020): this problem was solved 👍 thank you @davidjmeyer
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#273
No description provided.