Closed lyzcoote closed 4 months ago
While using this action on a Self Hosted Runner running Windows, it errors out with this logs
Run Nuitka/Nuitka-Action@main with: nuitka-version: main script-name: main.py onefile: true working-directory: . assume-yes-for-downloads: true output-dir: build env: pythonLocation: C:\Users\RUNNER\Desktop\actions-runner\_work\_tool\Python\3.11.8\x64 PKG_CONFIG_PATH: C:\Users\RUNNER\Desktop\actions-runner\_work\_tool\Python\3.11.8\x64/lib/pkgconfig Python_ROOT_DIR: C:\Users\RUNNER\Desktop\actions-runner\_work\_tool\Python\3.11.8\x64 Python2_ROOT_DIR: C:\Users\RUNNER\Desktop\actions-runner\_work\_tool\Python\3.11.8\x64 Python3_ROOT_DIR: C:\Users\RUNNER\Desktop\actions-runner\_work\_tool\Python\3.11.8\x64 Run echo "NUITKA_CACHE_DIR=C:\Users\RUNNER\Desktop\actions-runner\_work\_actions\Nuitka\Nuitka-Action\main/nuitka/cache" >> $GITHUB_ENV echo "NUITKA_CACHE_DIR=C:\Users\RUNNER\Desktop\actions-runner\_work\_actions\Nuitka\Nuitka-Action\main/nuitka/cache" >> $GITHUB_ENV echo "PYTHON_VERSION=$(python --version | awk '{print $2}' | cut -d '.' -f 1,2)" >> $GITHUB_ENV Error: bash: command not found
Entire job log
2024-02-21T07:15:09.4340212Z Requested labels: contabo 2024-02-21T07:15:09.4340479Z Job defined at: lyzcoote/3git-csv/.github/workflows/test-and-build.yml@refs/heads/main 2024-02-21T07:15:09.4340706Z Waiting for a runner to pick up this job... 2024-02-21T07:15:09.5218798Z Job is about to start running on the runner: contabo-vps (repository) 2024-02-21T07:15:14.3448790Z Current runner version: '2.313.0' 2024-02-21T07:15:14.3459987Z Runner name: 'contabo-vps' 2024-02-21T07:15:14.3460658Z Runner group name: 'Default' 2024-02-21T07:15:14.3461675Z Machine name: 'VMI1620509' 2024-02-21T07:15:14.3467119Z ##[group]GITHUB_TOKEN Permissions 2024-02-21T07:15:14.3469782Z Actions: write 2024-02-21T07:15:14.3470213Z Checks: write 2024-02-21T07:15:14.3470549Z Contents: write 2024-02-21T07:15:14.3470984Z Deployments: write 2024-02-21T07:15:14.3471619Z Discussions: write 2024-02-21T07:15:14.3472177Z Issues: write 2024-02-21T07:15:14.3472786Z Metadata: read 2024-02-21T07:15:14.3473272Z Packages: write 2024-02-21T07:15:14.3473961Z Pages: write 2024-02-21T07:15:14.3474460Z PullRequests: write 2024-02-21T07:15:14.3475289Z RepositoryProjects: write 2024-02-21T07:15:14.3476040Z SecurityEvents: write 2024-02-21T07:15:14.3476618Z Statuses: write 2024-02-21T07:15:14.3477035Z ##[endgroup] 2024-02-21T07:15:14.3481028Z Secret source: Actions 2024-02-21T07:15:14.3482055Z Prepare workflow directory 2024-02-21T07:15:14.5631756Z Prepare all required actions 2024-02-21T07:15:14.5899791Z Getting action download info 2024-02-21T07:15:14.8852998Z Download action repository 'actions/checkout@v4' (SHA:b4ffde65f46336ab88eb53be808477a3936bae11) 2024-02-21T07:15:16.5337551Z Download action repository 'actions/setup-python@v5' (SHA:0a5c61591373683505ea898e09a3ea4f39ef2b9c) 2024-02-21T07:15:18.8229069Z Download action repository 'Nuitka/Nuitka-Action@main' (SHA:3e8c861196d7aa4a139138a06e3b13dbb72dc822) 2024-02-21T07:15:19.6453921Z Download action repository 'actions/upload-artifact@v4' (SHA:5d5d22a31266ced268874388b861e4b58bb5c2f3) 2024-02-21T07:15:21.6937054Z Getting action download info 2024-02-21T07:15:21.9016207Z Download action repository 'actions/cache@v4' (SHA:13aacd865c20de90d75de3b17ebe84f7a17d57d2) 2024-02-21T07:15:23.9207767Z Complete job name: Build Windows Executable 2024-02-21T07:15:24.1624614Z ##[group]Run actions/checkout@v4 2024-02-21T07:15:24.1625436Z with: 2024-02-21T07:15:24.1626199Z repository: lyzcoote/3git-csv 2024-02-21T07:15:24.1627470Z token: *** 2024-02-21T07:15:24.1627977Z ssh-strict: true 2024-02-21T07:15:24.1628437Z persist-credentials: true 2024-02-21T07:15:24.1628988Z clean: true 2024-02-21T07:15:24.1629477Z sparse-checkout-cone-mode: true 2024-02-21T07:15:24.1630015Z fetch-depth: 1 2024-02-21T07:15:24.1630475Z fetch-tags: false 2024-02-21T07:15:24.1631193Z show-progress: true 2024-02-21T07:15:24.1631702Z lfs: false 2024-02-21T07:15:24.1632167Z submodules: false 2024-02-21T07:15:24.1632667Z set-safe-directory: true 2024-02-21T07:15:24.1633197Z ##[endgroup] 2024-02-21T07:15:24.6498229Z Syncing repository: lyzcoote/3git-csv 2024-02-21T07:15:24.6501140Z ##[group]Getting Git version info 2024-02-21T07:15:24.6502098Z Working directory is 'C:\Users\RUNNER\Desktop\actions-runner\_work\3git-csv\3git-csv' 2024-02-21T07:15:24.6683520Z [command]"C:\Program Files\Git\cmd\git.exe" version 2024-02-21T07:15:24.7146060Z git version 2.43.0.windows.1 2024-02-21T07:15:24.7233896Z ##[endgroup] 2024-02-21T07:15:24.7292773Z Temporarily overriding HOME='C:\Users\RUNNER\Desktop\actions-runner\_work\_temp\08c5ec2e-0ad0-4dc1-b32b-490b46c3bf6d' before making global git config changes 2024-02-21T07:15:24.7294752Z Adding repository directory to the temporary git global config as a safe directory 2024-02-21T07:15:24.7304941Z [command]"C:\Program Files\Git\cmd\git.exe" config --global --add safe.directory C:\Users\RUNNER\Desktop\actions-runner\_work\3git-csv\3git-csv 2024-02-21T07:15:24.8354987Z [command]"C:\Program Files\Git\cmd\git.exe" config --local --get remote.origin.url 2024-02-21T07:15:24.9128130Z https://github.com/lyzcoote/3git-csv 2024-02-21T07:15:24.9251097Z ##[group]Removing previously created refs, to avoid conflicts 2024-02-21T07:15:24.9266398Z [command]"C:\Program Files\Git\cmd\git.exe" rev-parse --symbolic-full-name --verify --quiet HEAD 2024-02-21T07:15:24.9825668Z refs/heads/main 2024-02-21T07:15:24.9903807Z [command]"C:\Program Files\Git\cmd\git.exe" checkout --detach 2024-02-21T07:15:25.0663146Z HEAD is now at abb4afb Downgrade Python in build to 3.11 2024-02-21T07:15:25.1725907Z ##[endgroup] 2024-02-21T07:15:25.1740106Z [command]"C:\Program Files\Git\cmd\git.exe" submodule status 2024-02-21T07:15:26.2212343Z ##[group]Cleaning the repository 2024-02-21T07:15:26.2222354Z [command]"C:\Program Files\Git\cmd\git.exe" clean -ffdx 2024-02-21T07:15:26.2798490Z Removing main.build/ 2024-02-21T07:15:26.2822859Z Removing main.dist/ 2024-02-21T07:15:26.2824172Z Removing nuitka-crash-report.xml 2024-02-21T07:15:26.2824678Z Removing version.txt 2024-02-21T07:15:26.2876471Z [command]"C:\Program Files\Git\cmd\git.exe" reset --hard HEAD 2024-02-21T07:15:26.3414666Z HEAD is now at abb4afb Downgrade Python in build to 3.11 2024-02-21T07:15:26.3473020Z ##[endgroup] 2024-02-21T07:15:26.3485720Z ##[group]Disabling automatic garbage collection 2024-02-21T07:15:26.3496640Z [command]"C:\Program Files\Git\cmd\git.exe" config --local gc.auto 0 2024-02-21T07:15:26.4030076Z ##[endgroup] 2024-02-21T07:15:26.4031385Z ##[group]Setting up auth 2024-02-21T07:15:26.4042405Z [command]"C:\Program Files\Git\cmd\git.exe" config --local --name-only --get-regexp core\.sshCommand 2024-02-21T07:15:26.4517567Z [command]"C:\Program Files\Git\cmd\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :\"" 2024-02-21T07:15:27.3138897Z [command]"C:\Program Files\Git\cmd\git.exe" config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader 2024-02-21T07:15:27.3897818Z [command]"C:\Program Files\Git\cmd\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :\"" 2024-02-21T07:15:28.3226706Z [command]"C:\Program Files\Git\cmd\git.exe" config --local http.https://github.com/.extraheader "AUTHORIZATION: basic ***" 2024-02-21T07:15:28.3824604Z ##[endgroup] 2024-02-21T07:15:28.3825568Z ##[group]Fetching the repository 2024-02-21T07:15:28.3840909Z [command]"C:\Program Files\Git\cmd\git.exe" -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +184595e8fb427ab72376ff8fb0806aa058edf78d:refs/remotes/origin/main 2024-02-21T07:15:29.3864389Z From https://github.com/lyzcoote/3git-csv 2024-02-21T07:15:29.3866283Z + abb4afb...184595e 184595e8fb427ab72376ff8fb0806aa058edf78d -> origin/main (forced update) 2024-02-21T07:15:29.4370145Z ##[endgroup] 2024-02-21T07:15:29.4379343Z ##[group]Determining the checkout info 2024-02-21T07:15:29.4381599Z ##[endgroup] 2024-02-21T07:15:29.4382795Z ##[group]Checking out the ref 2024-02-21T07:15:29.4395822Z [command]"C:\Program Files\Git\cmd\git.exe" checkout --progress --force -B main refs/remotes/origin/main 2024-02-21T07:15:29.5748590Z branch 'main' set up to track 'origin/main'. 2024-02-21T07:15:29.5749672Z Your branch is up to date with 'origin/main'. 2024-02-21T07:15:29.5750736Z Previous HEAD position was abb4afb Downgrade Python in build to 3.11 2024-02-21T07:15:29.5751759Z Switched to and reset branch 'main' 2024-02-21T07:15:29.5801460Z ##[endgroup] 2024-02-21T07:15:29.6300607Z [command]"C:\Program Files\Git\cmd\git.exe" log -1 --format='%H' 2024-02-21T07:15:29.6716285Z '184595e8fb427ab72376ff8fb0806aa058edf78d' 2024-02-21T07:15:29.7559303Z ##[group]Run $PWD 2024-02-21T07:15:29.7560504Z [36;1m$PWD[0m 2024-02-21T07:15:29.7561129Z [36;1mSet-Variable -Name "GITHUB_SHA" -Value "184595e8fb427ab72376ff8fb0806aa058edf78d"[0m 2024-02-21T07:15:29.7562356Z [36;1mecho "$(Get-Date -Format 'ddMMyyyy').$(echo ${GITHUB_SHA}.Substring(0, 7))-GA" > version.txt[0m 2024-02-21T07:15:29.7641520Z shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'" 2024-02-21T07:15:29.7642452Z ##[endgroup] 2024-02-21T07:15:30.2428435Z 2024-02-21T07:15:30.4092363Z [32;1mPath[0m 2024-02-21T07:15:30.4093771Z [32;1m----[0m 2024-02-21T07:15:30.4097620Z C:\Users\RUNNER\Desktop\actions-runner\_work\3git-csv\3git-csv 2024-02-21T07:15:30.4098202Z 2024-02-21T07:15:30.5082055Z ##[group]Run actions/setup-python@v5 2024-02-21T07:15:30.5083337Z with: 2024-02-21T07:15:30.5147068Z python-version: 3.11 2024-02-21T07:15:30.5147589Z check-latest: false 2024-02-21T07:15:30.5148580Z token: *** 2024-02-21T07:15:30.5148898Z update-environment: true 2024-02-21T07:15:30.5149254Z allow-prereleases: false 2024-02-21T07:15:30.5149584Z ##[endgroup] 2024-02-21T07:15:31.3364660Z ##[group]Installed versions 2024-02-21T07:15:31.3567300Z Successfully set up CPython (3.11.8) 2024-02-21T07:15:31.3568383Z ##[endgroup] 2024-02-21T07:15:31.4049537Z ##[group]Run pip install -r requirements.txt 2024-02-21T07:15:31.4050431Z [36;1mpip install -r requirements.txt[0m 2024-02-21T07:15:31.4090926Z shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'" 2024-02-21T07:15:31.4091636Z env: 2024-02-21T07:15:31.4092241Z pythonLocation: C:\Users\RUNNER\Desktop\actions-runner\_work\_tool\Python\3.11.8\x64 2024-02-21T07:15:31.4093299Z PKG_CONFIG_PATH: C:\Users\RUNNER\Desktop\actions-runner\_work\_tool\Python\3.11.8\x64/lib/pkgconfig 2024-02-21T07:15:31.4094299Z Python_ROOT_DIR: C:\Users\RUNNER\Desktop\actions-runner\_work\_tool\Python\3.11.8\x64 2024-02-21T07:15:31.4095242Z Python2_ROOT_DIR: C:\Users\RUNNER\Desktop\actions-runner\_work\_tool\Python\3.11.8\x64 2024-02-21T07:15:31.4096176Z Python3_ROOT_DIR: C:\Users\RUNNER\Desktop\actions-runner\_work\_tool\Python\3.11.8\x64 2024-02-21T07:15:31.4096836Z ##[endgroup] 2024-02-21T07:15:32.9430813Z Requirement already satisfied: altgraph>=0.17.4 in c:\users\runner\desktop\actions-runner\_work\_tool\python\3.11.8\x64\lib\site-packages (from -r requirements.txt (line 1)) (0.17.4) 2024-02-21T07:15:32.9455027Z Requirement already satisfied: Jinja2>=3.1.3 in c:\users\runner\desktop\actions-runner\_work\_tool\python\3.11.8\x64\lib\site-packages (from -r requirements.txt (line 2)) (3.1.3) 2024-02-21T07:15:32.9470072Z Requirement already satisfied: MarkupSafe>=2.1.5 in c:\users\runner\desktop\actions-runner\_work\_tool\python\3.11.8\x64\lib\site-packages (from -r requirements.txt (line 3)) (2.1.5) 2024-02-21T07:15:32.9484930Z Requirement already satisfied: packaging>=23.2 in c:\users\runner\desktop\actions-runner\_work\_tool\python\3.11.8\x64\lib\site-packages (from -r requirements.txt (line 4)) (23.2) 2024-02-21T07:15:32.9506681Z Requirement already satisfied: pyinstaller>=6.4.0 in c:\users\runner\desktop\actions-runner\_work\_tool\python\3.11.8\x64\lib\site-packages (from -r requirements.txt (line 5)) (6.4.0) 2024-02-21T07:15:32.9538768Z Requirement already satisfied: pyinstaller-hooks-contrib>=2024.1 in c:\users\runner\desktop\actions-runner\_work\_tool\python\3.11.8\x64\lib\site-packages (from -r requirements.txt (line 6)) (2024.1) 2024-02-21T07:15:32.9542475Z Requirement already satisfied: pyinstaller-versionfile>=2.1.1 in c:\users\runner\desktop\actions-runner\_work\_tool\python\3.11.8\x64\lib\site-packages (from -r requirements.txt (line 7)) (2.1.1) 2024-02-21T07:15:32.9556922Z Requirement already satisfied: PyYAML>=6.0.1 in c:\users\runner\desktop\actions-runner\_work\_tool\python\3.11.8\x64\lib\site-packages (from -r requirements.txt (line 8)) (6.0.1) 2024-02-21T07:15:32.9848715Z Requirement already satisfied: setuptools>=42.0.0 in c:\users\runner\desktop\actions-runner\_work\_tool\python\3.11.8\x64\lib\site-packages (from pyinstaller>=6.4.0->-r requirements.txt (line 5)) (65.5.0) 2024-02-21T07:15:32.9893109Z Requirement already satisfied: pefile>=2022.5.30 in c:\users\runner\desktop\actions-runner\_work\_tool\python\3.11.8\x64\lib\site-packages (from pyinstaller>=6.4.0->-r requirements.txt (line 5)) (2023.2.7) 2024-02-21T07:15:32.9923476Z Requirement already satisfied: pywin32-ctypes>=0.2.1 in c:\users\runner\desktop\actions-runner\_work\_tool\python\3.11.8\x64\lib\site-packages (from pyinstaller>=6.4.0->-r requirements.txt (line 5)) (0.2.2) 2024-02-21T07:15:33.5627718Z ##[group]Run Nuitka/Nuitka-Action@main 2024-02-21T07:15:33.5628211Z with: 2024-02-21T07:15:33.5628470Z nuitka-version: main 2024-02-21T07:15:33.5628850Z script-name: main.py 2024-02-21T07:15:33.5629386Z onefile: true 2024-02-21T07:15:33.5629833Z working-directory: . 2024-02-21T07:15:33.5630344Z assume-yes-for-downloads: true 2024-02-21T07:15:33.5630748Z output-dir: build 2024-02-21T07:15:33.5631149Z env: 2024-02-21T07:15:33.5631668Z pythonLocation: C:\Users\RUNNER\Desktop\actions-runner\_work\_tool\Python\3.11.8\x64 2024-02-21T07:15:33.5632718Z PKG_CONFIG_PATH: C:\Users\RUNNER\Desktop\actions-runner\_work\_tool\Python\3.11.8\x64/lib/pkgconfig 2024-02-21T07:15:33.5633759Z Python_ROOT_DIR: C:\Users\RUNNER\Desktop\actions-runner\_work\_tool\Python\3.11.8\x64 2024-02-21T07:15:33.5634844Z Python2_ROOT_DIR: C:\Users\RUNNER\Desktop\actions-runner\_work\_tool\Python\3.11.8\x64 2024-02-21T07:15:33.5635971Z Python3_ROOT_DIR: C:\Users\RUNNER\Desktop\actions-runner\_work\_tool\Python\3.11.8\x64 2024-02-21T07:15:33.5636761Z ##[endgroup] 2024-02-21T07:15:33.6170665Z ##[group]Run echo "NUITKA_CACHE_DIR=C:\Users\RUNNER\Desktop\actions-runner\_work\_actions\Nuitka\Nuitka-Action\main/nuitka/cache" >> $GITHUB_ENV 2024-02-21T07:15:33.6173104Z [36;1mecho "NUITKA_CACHE_DIR=C:\Users\RUNNER\Desktop\actions-runner\_work\_actions\Nuitka\Nuitka-Action\main/nuitka/cache" >> $GITHUB_ENV[0m 2024-02-21T07:15:33.6175057Z [36;1mecho "PYTHON_VERSION=$(python --version | awk '{print $2}' | cut -d '.' -f 1,2)" >> $GITHUB_ENV[0m 2024-02-21T07:15:33.6459431Z ##[error]bash: command not found 2024-02-21T07:15:33.7275440Z Post job cleanup. 2024-02-21T07:15:33.7837455Z Post job cleanup. 2024-02-21T07:15:34.0147660Z [command]"C:\Program Files\Git\cmd\git.exe" version 2024-02-21T07:15:34.0732626Z git version 2.43.0.windows.1 2024-02-21T07:15:34.0823552Z Temporarily overriding HOME='C:\Users\RUNNER\Desktop\actions-runner\_work\_temp\1c09e41f-8d37-42bb-a3de-856e3c8fb38b' before making global git config changes 2024-02-21T07:15:34.0825039Z Adding repository directory to the temporary git global config as a safe directory 2024-02-21T07:15:34.0833900Z [command]"C:\Program Files\Git\cmd\git.exe" config --global --add safe.directory C:\Users\RUNNER\Desktop\actions-runner\_work\3git-csv\3git-csv 2024-02-21T07:15:34.1618592Z [command]"C:\Program Files\Git\cmd\git.exe" config --local --name-only --get-regexp core\.sshCommand 2024-02-21T07:15:34.3032188Z [command]"C:\Program Files\Git\cmd\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :\"" 2024-02-21T07:15:35.4214641Z [command]"C:\Program Files\Git\cmd\git.exe" config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader 2024-02-21T07:15:35.4816374Z http.https://github.com/.extraheader 2024-02-21T07:15:35.4942120Z [command]"C:\Program Files\Git\cmd\git.exe" config --local --unset-all http.https://github.com/.extraheader 2024-02-21T07:15:35.5721443Z [command]"C:\Program Files\Git\cmd\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :\"" 2024-02-21T07:15:36.5986873Z Cleaning up orphan processes
For troubleshooting, I'm attaching the whole workflow job log
build.log logs_172(1).zip
Consider installing bash
While using this action on a Self Hosted Runner running Windows, it errors out with this logs
For troubleshooting, I'm attaching the whole workflow job log
build.log logs_172(1).zip