Closed akiyosi closed 2 years ago
Hi. There might be a quick but unreasonable fix:
In your GitHub Actions YAML file:
- uses: jurplel/install-qt-action@v2
+ uses: jurplel/install-qt-action@d2c35b0f6f9acaf4713fa59e70a3df05497579c6 # the last test-passed revision
@pzhlkj6612 Thanks. But it didn't solve the problem :(
Run jurplel/install-qt-action@d2c35b0f6f9acaf4713fa59e70a3df05497579c6
Error: File not found: '/Users/runner/work/_actions/jurplel/install-qt-action/d2c35b0f6f9acaf4713fa59e70a3df05497579c6/lib/main.js'
PPP
Ummm, This seems to be caused by the fact that the OS used in macos-latest
has been released and rolled out to macos-11
since January 24. See https://github.com/actions/virtual-environments
When I looked at the details, I found that in my environment, the OS was macos11 as shown below, just when the error started to occur.
Current runner version: '2.286.1'
Operating System
macOS
11.6.2
@pzhlkj6612 Thanks. But it didn't solve the problem :(
Run jurplel/install-qt-action@d2c35b0f6f9acaf4713fa59e70a3df05497579c6 Error: File not found: '/Users/runner/work/_actions/jurplel/install-qt-action/d2c35b0f6f9acaf4713fa59e70a3df05497579c6/lib/main.js' PPP
Oh sorry, I didn't carefully check it. There is no built action (i.e., the "./lib/main.js" file) in that revision.
Now I'm trying to build this action on macOS virtual env manually...
@akiyosi , did you try to switch back to macos-10.15
?
@pzhlkj6612
Yes, I switched back to macos-10.15
for now and avoided the problem.
@akiyosi try this in macos-11
:
jobs:
...
steps:
- uses: actions/checkout@v2
with:
repository: 'jurplel/install-qt-action'
ref: 'd2c35b0f6f9acaf4713fa59e70a3df05497579c6'
path: './iqta'
- uses: actions/setup-node@v1
with:
node-version: 10.x
- run: npm ci
working-directory: './iqta'
- run: npm run build-setup-python
working-directory: './iqta'
- run: npm run build
working-directory: './iqta'
- uses: ./iqta
with:
version: ${{ matrix.qtversion }}
host: mac
target: desktop
dir: ${{ github.workspace }}
modules: 'qtcharts qtdatavis3d qtpurchasing qtvirtualkeyboard qtwebengine qtnetworkauth qtwebglplugin qtscript'
@akiyosi , try to use jurplel/install-qt-action@v3
.
@pzhlkj6612 Sorry for the late reply. I tried v3 but it still seems to give an error. Is this simply a python3 problem?
Run jurplel/install-qt-action@v3
Successfully setup CPython (3.10.2)
brew install p7zip
Warning: p7zip 17.04 is already installed and up-to-date.
To reinstall 17.04, run:
brew reinstall p7zip
python3 -m pip install setuptools wheel
Requirement already satisfied: setuptools in /Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/site-packages (58.1.0)
Collecting wheel
Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Installing collected packages: wheel
Successfully installed wheel-0.37.1
WARNING: You are using pip version 22.0.3; however, version 22.0.4 is available.
You should consider upgrading via the '/Users/runner/hostedtoolcache/Python/3.10.2/x64/bin/python3 -m pip install --upgrade pip' command.
python3 -m pip install py7zr==0.16.1
Collecting py7zr==0.16.1
Downloading py7zr-0.16.1-py3-none-any.whl (65 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.7/65.7 KB 77.2 kB/s eta 0:00:00
Collecting bcj-cffi<0.6.0,>=0.5.1
Downloading bcj-cffi-0.5.1.tar.gz (35 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting multivolumefile>=0.2.3
Downloading multivolumefile-0.2.3-py3-none-any.whl (17 kB)
Collecting pycryptodomex>=3.6.6
Downloading pycryptodomex-3.14.1-cp35-abi3-macosx_10_9_x86_64.whl (1.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 9.7 MB/s eta 0:00:00
Collecting brotli>=1.0.9
Downloading Brotli-1.0.9-cp310-cp310-macosx_10_9_x86_64.whl (421 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 421.8/421.8 KB 2.5 MB/s eta 0:00:00
Collecting pyzstd<0.15.0,>=0.14.4
Downloading pyzstd-0.14.4.tar.gz (659 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 659.7/659.7 KB 9.4 MB/s eta 0:00:00
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting pyppmd>=0.14.0
Downloading pyppmd-0.18.0.tar.gz (1.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 572.5 kB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting texttable
Downloading texttable-1.6.4-py2.py3-none-any.whl (10 kB)
Collecting cffi>=1.14.0
Using cached cffi-1.15.0-cp310-cp310-macosx_10_9_x86_64.whl (178 kB)
Collecting pycparser
Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Building wheels for collected packages: bcj-cffi, pyppmd, pyzstd
Building wheel for bcj-cffi (pyproject.toml): started
Building wheel for bcj-cffi (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Building wheel for bcj-cffi (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.15-x86_64-3.10
creating build/lib.macosx-10.15-x86_64-3.10/bcj
copying src/bcj/__init__.py -> build/lib.macosx-10.15-x86_64-3.10/bcj
copying src/bcj/py.typed -> build/lib.macosx-10.15-x86_64-3.10/bcj
copying src/bcj/__init__.pyi -> build/lib.macosx-10.15-x86_64-3.10/bcj
running build_ext
generating cffi module 'build/temp.macosx-10.15-x86_64-3.10/_bcj.c'
creating build/temp.macosx-10.15-x86_64-3.10
building '_bcj' extension
creating build/temp.macosx-10.15-x86_64-3.10/build
creating build/temp.macosx-10.15-x86_64-3.10/build/temp.macosx-10.15-x86_64-3.10
creating build/temp.macosx-10.15-x86_64-3.10/src
creating build/temp.macosx-10.15-x86_64-3.10/src/ext
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/opt/sqlite/include -I/usr/local/opt/sqlite/include -Isrc/ext -I/Users/runner/hostedtoolcache/Python/3.10.2/x64/include/python3.10 -c build/temp.macosx-10.15-x86_64-3.10/_bcj.c -o build/temp.macosx-10.15-x86_64-3.10/build/temp.macosx-10.15-x86_64-3.10/_bcj.o
gcc: error: Failed to determine realpath of '/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk' (errno=No such file or directory)
gcc: error: sh -c '/Applications/Xcode_13.2.1.app/Contents/Developer/usr/bin/xcodebuild -sdk /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -find gcc 2> /dev/null' failed with exit code 16384: (null) (errno=No such file or directory)
xcode-select: Failed to locate 'gcc', requesting installation of command line developer tools.
error: command '/usr/bin/gcc' failed with exit code 72
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for bcj-cffi
Building wheel for pyppmd (pyproject.toml): started
Building wheel for pyppmd (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Building wheel for pyppmd (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.15-x86_64-3.10
creating build/lib.macosx-10.15-x86_64-3.10/pyppmd
copying src/pyppmd/__init__.py -> build/lib.macosx-10.15-x86_64-3.10/pyppmd
package init file 'src/pyppmd/c/__init__.py' not found (or not a regular file)
creating build/lib.macosx-10.15-x86_64-3.10/pyppmd/c
copying src/pyppmd/c/c_ppmd.py -> build/lib.macosx-10.15-x86_64-3.10/pyppmd/c
copying src/pyppmd/py.typed -> build/lib.macosx-10.15-x86_64-3.10/pyppmd
running build_ext
building 'pyppmd.c._ppmd' extension
creating build/temp.macosx-10.15-x86_64-3.10
creating build/temp.macosx-10.15-x86_64-3.10/lib
creating build/temp.macosx-10.15-x86_64-3.10/lib2
creating build/temp.macosx-10.15-x86_64-3.10/src
creating build/temp.macosx-10.15-x86_64-3.10/src/ext
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/opt/sqlite/include -I/usr/local/opt/sqlite/include -Ilib -Ilib2 -I/Users/runner/hostedtoolcache/Python/3.10.2/x64/include/python3.10 -c lib/Ppmd7.c -o build/temp.macosx-10.15-x86_64-3.10/lib/Ppmd7.o
gcc: error: Failed to determine realpath of '/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk' (errno=No such file or directory)
gcc: error: sh -c '/Applications/Xcode_13.2.1.app/Contents/Developer/usr/bin/xcodebuild -sdk /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -find gcc 2> /dev/null' failed with exit code 16384: (null) (errno=No such file or directory)
xcode-select: Failed to locate 'gcc', requesting installation of command line developer tools.
error: command '/usr/bin/gcc' failed with exit code 72
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyppmd
Building wheel for pyzstd (setup.py): started
Building wheel for pyzstd (setup.py): finished with status 'error'
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [[27](https://github.com/akiyosi/goneovim/runs/5519606118?check_suite_focus=true#step:3:27) lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.15-x86_64-3.10
creating build/lib.macosx-10.15-x86_64-3.10/pyzstd
copying src/__init__.py -> build/lib.macosx-10.15-x86_64-3.10/pyzstd
package init file 'src/c/__init__.py' not found (or not a regular file)
creating build/lib.macosx-10.15-x86_64-3.10/pyzstd/c
copying src/c/c_pyzstd.py -> build/lib.macosx-10.15-x86_64-3.10/pyzstd/c
copying src/__init__.pyi -> build/lib.macosx-10.15-x86_64-3.10/pyzstd
copying src/py.typed -> build/lib.macosx-10.15-x86_64-3.10/pyzstd
running build_ext
building 'pyzstd.c._zstd' extension
creating build/temp.macosx-10.15-x86_64-3.10
creating build/temp.macosx-10.15-x86_64-3.10/lib
creating build/temp.macosx-10.15-x86_64-3.10/lib/common
creating build/temp.macosx-10.15-x86_64-3.10/lib/compress
creating build/temp.macosx-10.15-x86_64-3.10/lib/decompress
creating build/temp.macosx-10.15-x86_64-3.10/lib/dictBuilder
creating build/temp.macosx-10.15-x86_64-3.10/src
creating build/temp.macosx-10.15-x86_64-3.10/src/bin_ext
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/opt/sqlite/include -I/usr/local/opt/sqlite/include -DZSTD_MULTITHREAD -Ilib -Ilib/dictBuilder -I/Users/runner/hostedtoolcache/Python/3.10.2/x64/include/python3.10 -c lib/common/debug.c -o build/temp.macosx-10.15-x86_64-3.10/lib/common/debug.o
gcc: error: Failed to determine realpath of '/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk' (errno=No such file or directory)
gcc: error: sh -c '/Applications/Xcode_13.2.1.app/Contents/Developer/usr/bin/xcodebuild -sdk /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -find gcc 2> /dev/null' failed with exit code 16[38](https://github.com/akiyosi/goneovim/runs/5519606118?check_suite_focus=true#step:3:38)4: (null) (errno=No such file or directory)
xcode-select: Failed to locate 'gcc', requesting installation of command line developer tools.
error: command '/usr/bin/gcc' failed with exit code 72
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyzstd
Running setup.py clean for pyzstd
Failed to build bcj-cffi pyppmd pyzstd
ERROR: Could not build wheels for bcj-cffi, pyppmd, which is required to install pyproject.toml-based projects
WARNING: You are using pip version 22.0.3; however, version 22.0.4 is available.
You should consider upgrading via the '/Users/runner/hostedtoolcache/Python/3.10.2/x[64](https://github.com/akiyosi/goneovim/runs/5519606118?check_suite_focus=true#step:3:64)/bin/python3 -m pip install --upgrade pip' command.
Error: The process 'python3' failed with exit code 1
My CI code is the following;
- name: Install Qt for macOS
uses: jurplel/install-qt-action@v3
with:
version: 5.15.2
host: mac
target: desktop
dir: ${{ github.workspace }}
modules: 'qtcharts qtdatavis3d qtpurchasing qtvirtualkeyboard qtwebengine qtnetworkauth qtwebglplugin qtscript'
@akiyosi
Is this simply a python3 problem?
maybe.
Can you please post the complete workflow YAML file? I want to know what operating system you are using.
Before posting the YAML, you could try to use actions/setup-python to change the Python version to 3.9 and then invoke install-qt-action with specifying setup-python: false
.
Not sure if this is the same thing, but I started experiencing this error on macos-10.15
:
Edit: moved errors to a Gist, as it was very long https://gist.github.com/arximboldi/6f08115c30085534cab339195cc62c60
Anyone else experiencing this? Any workarounds in sight?
@arximboldi Thanks for info. I have never had the problem with macos-10.15, but just today I reproduced the same problem with macos-10.15. It is the same problem you are reporting.
@pzhlkj6612
Can you please post the complete workflow YAML file? I want to know what operating system you are using.
Before posting the YAML, you could try to use actions/setup-python to change the Python version to 3.9 and then invoke install-qt-action with specifying setup-python: false .
I tried this but it did not work.
It seems that a minor change has happened in the macos-10.15 environment when compared to the logs that were successful yesterday. Two log files are attached. failed_install-qt-actions.txt success_install-qt-actions.txt
also encounter this error with macos11
Just seen this error also in guthub actions, on both macos-latest and macos-10.15 changing to
- uses: actions/setup-python@v3
with:
python-version: '3.10'
and
setup-python: 'false'
did not resolve issue.
For me (issue here: https://github.com/jurplel/install-qt-action/issues/130#issuecomment-1078451698):
setup-python: 'false'
Seems to have solved the issue! Morning unblocked for now!
For me (issue here: #130 (comment)):
setup-python: 'false'
Seems to have solved the issue! Morning unblocked for now!
Can you please link your workflow YAML file for reference?
Pasting here the relevant parts (it's from a private project):
name: test
on:
pull_request:
push:
branches:
- master
tags:
- 'v*'
jobs:
build-macos:
runs-on: macos-10.15
steps:
- run: echo "GIT_BRANCH_OR_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
if: ${{ startsWith(github.ref, 'refs/tags') }}
- run: echo "GIT_BRANCH_OR_TAG=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_ENV
if: ${{ ! startsWith(github.ref, 'refs/tags') }}
- run: echo "RELEASE_VERSION=`echo ${{ env.GIT_BRANCH_OR_TAG }} | tr / -`_`echo ${{ github.sha }} | head -c 7`" >> $GITHUB_ENV
- run: echo "RELEASE_FILE=my-project_macos_${{ env.RELEASE_VERSION }}.dmg" >> $GITHUB_ENV
- uses: apple-actions/import-codesign-certs@v1
with:
p12-file-base64: ${{ secrets.MACOS_CERTIFICATE }}
p12-password: ${{ secrets.MACOS_CERTIFICATE_PASSWORD }}
- run: security find-identity signing_temp.keychain
- uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- uses: actions/checkout@v2
with:
submodules: true
- uses: cachix/install-nix-action@v16
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v10
with:
name: bronze-ai
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: ccache
uses: hendrikmuhs/ccache-action@v1
with:
key: my-project-ccache-mac-Release
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: '5.14.2'
modules: 'qtwebengine'
setup-python: 'false'
...
@arximboldi
thx!
I have also solved the problem by adding setup-python: 'false'
if macos-10.15.
@akiyosi
It seems that a minor change has happened in the macos-10.15 environment when compared to the logs that were successful yesterday.
Yes, it is. See actions/virtual-environments@fcb51fbe6d0283e786bde400958fd93d9a245fdb .
Sorry for the delay all. Does this problem still exist with the recent updates to v3?
Welcome back, @jurplel! With the very latest commits in place, macOS builds (and Windows and Linux builds, too) seem to be working fine!
woo!
Hi, Just in the last few hours, it seems to fail to install Qt5.15.2 on
macos-latest
. The console output of Github Actions shows the following error. I have tried three times and the error persists.full error stack
In my project, I am using this project with the following code.