[GH-ISSUE #1294] Hello world Python not working locally #701

Closed
opened 2026-03-01 21:45:38 +03:00 by kerem · 1 comment
Owner

Originally created by @addisonklinke on GitHub (Aug 8, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1294

Bug report info

act version:            0.2.30
GOOS:                   linux
GOARCH:                 amd64
NumCPU:                 8
Docker host:            DOCKER_HOST environment variable is unset/empty.
Sockets found:
        /var/run/docker.sock
Config files:           
        /home/addison/.actrc:
                -P ubuntu-latest=catthehacker/ubuntu:full-latest
Build info:
        Go version:            go1.18.4
        Module path:           github.com/nektos/act
        Main version:          (devel)
        Main path:             github.com/nektos/act
        Main checksum:         
        Build settings:
                -compiler:            gc
                -ldflags:             -s -w -X main.version=0.2.30 -X main.commit=3364f95569d8a39d440b18af69d29421fcc77b55 -X main.date=2022-08-01T02:56:59Z -X main.builtBy=goreleaser
                CGO_ENABLED:          0
                GOARCH:               amd64
                GOOS:                 linux
                GOAMD64:              v1
                vcs:                  git
                vcs.revision:         3364f95569d8a39d440b18af69d29421fcc77b55
                vcs.time:             2022-07-29T19:43:24Z
                vcs.modified:         false
Docker Engine:
        Engine version:        20.10.14
        Engine runtime:        runc
        Cgroup version:        1
        Cgroup driver:         cgroupfs
        Storage driver:        overlay2
        Registry URI:          https://index.docker.io/v1/
        OS:                    Ubuntu 18.04.6 LTS
        OS type:               linux
        OS version:            18.04
        OS arch:               x86_64
        OS kernel:             5.4.0-121-generic
        OS CPU:                8
        OS memory:             7858 MB
        Security options:
                name=apparmor
                name=seccomp,profile=default

Command used with act

act push -v

Describe issue

The actions/setup-python@v3 never seems to complete its execution. I can't get a simple "hello world" step to print. Instead the workflow output ends with Error: object not found

Private

Workflow content

name: Python Demo
on: [push]

jobs:
  demo:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/setup-python@v3
        with:
          python-version: "3.10"
      - run: python -c "print('Hello world')"

Relevant log output

DEBU[0000] Loading environment from /home/addison/git/train4good/.env 
DEBU[0000] Loading secrets from /home/addison/git/train4good/.secrets 
DEBU[0000] Loading workflows from '/home/addison/git/train4good/.github/workflows' 
DEBU[0000] Loading workflows recursively                
DEBU[0000] Found workflow 'pull_request_ci.yaml' in '/home/addison/git/train4good/.github/workflows/pull_request_ci.yaml' 
DEBU[0000] Found workflow 'quickstart.yaml' in '/home/addison/git/train4good/.github/workflows/quickstart.yaml' 
DEBU[0000] Reading workflow '/home/addison/git/train4good/.github/workflows/pull_request_ci.yaml' 
DEBU[0000] Reading workflow '/home/addison/git/train4good/.github/workflows/quickstart.yaml' 
DEBU[0000] Planning event: push                         
DEBU[0000] Loading slug from git directory '/home/addison/git/train4good/.git' 
DEBU[0000] Loading revision from git directory '/home/addison/git/train4good/.git' 
DEBU[0000] Found revision: 2fab114ad5960c462dda73383ac8f07a639590f0 
DEBU[0000] HEAD points to '2fab114ad5960c462dda73383ac8f07a639590f0' 
DEBU[0000] using github ref: refs/heads/master          
DEBU[0000] Found revision: 2fab114ad5960c462dda73383ac8f07a639590f0 
[Python Demo/demo] [DEBUG] evaluating expression 'success()'
[Python Demo/demo] [DEBUG] expression 'success()' evaluated to 'true'
[Python Demo/demo] 🚀  Start image=catthehacker/ubuntu:full-latest
[Python Demo/demo]   🐳  docker pull image=catthehacker/ubuntu:full-latest platform= username= forcePull=false
[Python Demo/demo] [DEBUG]   🐳  docker pull catthehacker/ubuntu:full-latest
[Python Demo/demo] [DEBUG] Image exists? true
[Python Demo/demo]   🐳  docker create image=catthehacker/ubuntu:full-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Python Demo/demo] [DEBUG] Created container name=act-Python-Demo-demo id=05e996db4e95be027e4ba23559f4726d2a33eb45607db2fc56b2d187550c6a74 from image catthehacker/ubuntu:full-latest (platform: )
[Python Demo/demo] [DEBUG] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_TEMP=/tmp]
[Python Demo/demo]   🐳  docker run image=catthehacker/ubuntu:full-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Python Demo/demo] [DEBUG] Starting container: 05e996db4e95be027e4ba23559f4726d2a33eb45607db2fc56b2d187550c6a74
[Python Demo/demo] [DEBUG] Started container: 05e996db4e95be027e4ba23559f4726d2a33eb45607db2fc56b2d187550c6a74
[Python Demo/demo] [DEBUG] Writing entry to tarball workflow/event.json len:2
[Python Demo/demo] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[Python Demo/demo] [DEBUG] Writing entry to tarball workflow/paths.txt len:0
[Python Demo/demo] [DEBUG] Extracting content to '/var/run/act/'
[Python Demo/demo] [DEBUG] Loading slug from git directory '/home/addison/git/train4good/.git'
[Python Demo/demo] [DEBUG] Loading revision from git directory '/home/addison/git/train4good/.git'
[Python Demo/demo] [DEBUG] Found revision: 2fab114ad5960c462dda73383ac8f07a639590f0
[Python Demo/demo] [DEBUG] HEAD points to '2fab114ad5960c462dda73383ac8f07a639590f0'
[Python Demo/demo] [DEBUG] using github ref: refs/heads/master
[Python Demo/demo] [DEBUG] Found revision: 2fab114ad5960c462dda73383ac8f07a639590f0
[Python Demo/demo]   ☁  git clone 'https://github.com/actions/setup-python' # ref=v3
[Python Demo/demo] [DEBUG]   cloning https://github.com/actions/setup-python to /home/addison/.cache/act/actions-setup-python@v3
[Python Demo/demo] [DEBUG] skipping post step for 'actions/setup-python@v3'; step was not executed
[Python Demo/demo] [DEBUG] Removed container: 05e996db4e95be027e4ba23559f4726d2a33eb45607db2fc56b2d187550c6a74
[Python Demo/demo] [DEBUG]   🐳  docker volume rm act-Python-Demo-demo
[Python Demo/demo] [DEBUG]   🐳  docker volume rm act-Python-Demo-demo-env
[Python Demo/demo] 🏁  Job succeeded
[Python Demo/demo] [DEBUG] Loading slug from git directory '/home/addison/git/train4good/.git'
[Python Demo/demo] [DEBUG] Loading revision from git directory '/home/addison/git/train4good/.git'
[Python Demo/demo] [DEBUG] Found revision: 2fab114ad5960c462dda73383ac8f07a639590f0
[Python Demo/demo] [DEBUG] HEAD points to '2fab114ad5960c462dda73383ac8f07a639590f0'
[Python Demo/demo] [DEBUG] using github ref: refs/heads/master
[Python Demo/demo] [DEBUG] Found revision: 2fab114ad5960c462dda73383ac8f07a639590f0
Error: object not found

Additional information

I'm new to Github Actions, so I don't know whether this is an issue with my workflow YAML, or with act (and the same YAML would execute fine on Github's runners). I'm leaning towards the latter since the steps are so simple, it seems like it should work fine in both scenarios

Originally created by @addisonklinke on GitHub (Aug 8, 2022). Original GitHub issue: https://github.com/nektos/act/issues/1294 ### Bug report info ```plain text act version: 0.2.30 GOOS: linux GOARCH: amd64 NumCPU: 8 Docker host: DOCKER_HOST environment variable is unset/empty. Sockets found: /var/run/docker.sock Config files: /home/addison/.actrc: -P ubuntu-latest=catthehacker/ubuntu:full-latest Build info: Go version: go1.18.4 Module path: github.com/nektos/act Main version: (devel) Main path: github.com/nektos/act Main checksum: Build settings: -compiler: gc -ldflags: -s -w -X main.version=0.2.30 -X main.commit=3364f95569d8a39d440b18af69d29421fcc77b55 -X main.date=2022-08-01T02:56:59Z -X main.builtBy=goreleaser CGO_ENABLED: 0 GOARCH: amd64 GOOS: linux GOAMD64: v1 vcs: git vcs.revision: 3364f95569d8a39d440b18af69d29421fcc77b55 vcs.time: 2022-07-29T19:43:24Z vcs.modified: false Docker Engine: Engine version: 20.10.14 Engine runtime: runc Cgroup version: 1 Cgroup driver: cgroupfs Storage driver: overlay2 Registry URI: https://index.docker.io/v1/ OS: Ubuntu 18.04.6 LTS OS type: linux OS version: 18.04 OS arch: x86_64 OS kernel: 5.4.0-121-generic OS CPU: 8 OS memory: 7858 MB Security options: name=apparmor name=seccomp,profile=default ``` ### Command used with act ```sh act push -v ``` ### Describe issue The `actions/setup-python@v3` never seems to complete its execution. I can't get a simple "hello world" step to print. Instead the workflow output ends with `Error: object not found` ### Link to GitHub repository Private ### Workflow content ```yml name: Python Demo on: [push] jobs: demo: runs-on: ubuntu-latest steps: - uses: actions/setup-python@v3 with: python-version: "3.10" - run: python -c "print('Hello world')" ``` ### Relevant log output ```sh DEBU[0000] Loading environment from /home/addison/git/train4good/.env DEBU[0000] Loading secrets from /home/addison/git/train4good/.secrets DEBU[0000] Loading workflows from '/home/addison/git/train4good/.github/workflows' DEBU[0000] Loading workflows recursively DEBU[0000] Found workflow 'pull_request_ci.yaml' in '/home/addison/git/train4good/.github/workflows/pull_request_ci.yaml' DEBU[0000] Found workflow 'quickstart.yaml' in '/home/addison/git/train4good/.github/workflows/quickstart.yaml' DEBU[0000] Reading workflow '/home/addison/git/train4good/.github/workflows/pull_request_ci.yaml' DEBU[0000] Reading workflow '/home/addison/git/train4good/.github/workflows/quickstart.yaml' DEBU[0000] Planning event: push DEBU[0000] Loading slug from git directory '/home/addison/git/train4good/.git' DEBU[0000] Loading revision from git directory '/home/addison/git/train4good/.git' DEBU[0000] Found revision: 2fab114ad5960c462dda73383ac8f07a639590f0 DEBU[0000] HEAD points to '2fab114ad5960c462dda73383ac8f07a639590f0' DEBU[0000] using github ref: refs/heads/master DEBU[0000] Found revision: 2fab114ad5960c462dda73383ac8f07a639590f0 [Python Demo/demo] [DEBUG] evaluating expression 'success()' [Python Demo/demo] [DEBUG] expression 'success()' evaluated to 'true' [Python Demo/demo] 🚀 Start image=catthehacker/ubuntu:full-latest [Python Demo/demo] 🐳 docker pull image=catthehacker/ubuntu:full-latest platform= username= forcePull=false [Python Demo/demo] [DEBUG] 🐳 docker pull catthehacker/ubuntu:full-latest [Python Demo/demo] [DEBUG] Image exists? true [Python Demo/demo] 🐳 docker create image=catthehacker/ubuntu:full-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [Python Demo/demo] [DEBUG] Created container name=act-Python-Demo-demo id=05e996db4e95be027e4ba23559f4726d2a33eb45607db2fc56b2d187550c6a74 from image catthehacker/ubuntu:full-latest (platform: ) [Python Demo/demo] [DEBUG] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_TEMP=/tmp] [Python Demo/demo] 🐳 docker run image=catthehacker/ubuntu:full-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [Python Demo/demo] [DEBUG] Starting container: 05e996db4e95be027e4ba23559f4726d2a33eb45607db2fc56b2d187550c6a74 [Python Demo/demo] [DEBUG] Started container: 05e996db4e95be027e4ba23559f4726d2a33eb45607db2fc56b2d187550c6a74 [Python Demo/demo] [DEBUG] Writing entry to tarball workflow/event.json len:2 [Python Demo/demo] [DEBUG] Writing entry to tarball workflow/envs.txt len:0 [Python Demo/demo] [DEBUG] Writing entry to tarball workflow/paths.txt len:0 [Python Demo/demo] [DEBUG] Extracting content to '/var/run/act/' [Python Demo/demo] [DEBUG] Loading slug from git directory '/home/addison/git/train4good/.git' [Python Demo/demo] [DEBUG] Loading revision from git directory '/home/addison/git/train4good/.git' [Python Demo/demo] [DEBUG] Found revision: 2fab114ad5960c462dda73383ac8f07a639590f0 [Python Demo/demo] [DEBUG] HEAD points to '2fab114ad5960c462dda73383ac8f07a639590f0' [Python Demo/demo] [DEBUG] using github ref: refs/heads/master [Python Demo/demo] [DEBUG] Found revision: 2fab114ad5960c462dda73383ac8f07a639590f0 [Python Demo/demo] ☁ git clone 'https://github.com/actions/setup-python' # ref=v3 [Python Demo/demo] [DEBUG] cloning https://github.com/actions/setup-python to /home/addison/.cache/act/actions-setup-python@v3 [Python Demo/demo] [DEBUG] skipping post step for 'actions/setup-python@v3'; step was not executed [Python Demo/demo] [DEBUG] Removed container: 05e996db4e95be027e4ba23559f4726d2a33eb45607db2fc56b2d187550c6a74 [Python Demo/demo] [DEBUG] 🐳 docker volume rm act-Python-Demo-demo [Python Demo/demo] [DEBUG] 🐳 docker volume rm act-Python-Demo-demo-env [Python Demo/demo] 🏁 Job succeeded [Python Demo/demo] [DEBUG] Loading slug from git directory '/home/addison/git/train4good/.git' [Python Demo/demo] [DEBUG] Loading revision from git directory '/home/addison/git/train4good/.git' [Python Demo/demo] [DEBUG] Found revision: 2fab114ad5960c462dda73383ac8f07a639590f0 [Python Demo/demo] [DEBUG] HEAD points to '2fab114ad5960c462dda73383ac8f07a639590f0' [Python Demo/demo] [DEBUG] using github ref: refs/heads/master [Python Demo/demo] [DEBUG] Found revision: 2fab114ad5960c462dda73383ac8f07a639590f0 Error: object not found ``` ### Additional information I'm new to Github Actions, so I don't know whether this is an issue with my workflow YAML, or with `act` (and the same YAML would execute fine on Github's runners). I'm leaning towards the latter since the steps are so simple, it seems like it should work fine in both scenarios
kerem 2026-03-01 21:45:38 +03:00
  • closed this issue
  • added the
    kind/bug
    label
Author
Owner

@addisonklinke commented on GitHub (Aug 8, 2022):

Upgraded to actions/setup-python@v4.2.0 and it works as expected. Sorry for the distraction, but hopefully this will be a useful "hello world" template for someone stumbling across the issue in the future

<!-- gh-comment-id:1207563203 --> @addisonklinke commented on GitHub (Aug 8, 2022): Upgraded to `actions/setup-python@v4.2.0` and it works as expected. Sorry for the distraction, but hopefully this will be a useful "hello world" template for someone stumbling across the issue in the future
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#701
No description provided.