jurplel / install-qt-action

Install Qt on your Github Actions workflows with just one simple action
MIT License
455 stars 78 forks source link

Installing tools_ifw results in uncaught error #154

Closed asztalosdani closed 1 year ago

asztalosdani commented 1 year ago

Using this step in my workflow

- name: Install Qt
  uses: jurplel/install-qt-action@v2
  with:
    version: '5.15.2'
    tools: 'tools_ifw'
    tools-only: 'true'

fails silently (continues successfully) with the error below.

So we have two issues here:

Click to show error log ``` Run jurplel/install-qt-action@v2 with: version: 5.15.2 tools: tools_ifw tools-only: true target: desktop install-deps: true cached: false setup-python: true set-env: true aqtversion: ==1.2.5 py7zrversion: ==0.16.1 env: pythonLocation: C:\hostedtoolcache\windows\Python\3.8.6\x64 PKG_CONFIG_PATH: C:\hostedtoolcache\windows\Python\3.8.6\x64/lib/pkgconfig Python_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.8.6\x64 Python2_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.8.6\x64 Python3_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.8.6\x64 Successfully setup CPython (3.10.5) python -m pip install setuptools wheel Requirement already satisfied: setuptools in c:\hostedtoolcache\windows\python\3.10.5\x64\lib\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 Notice: A new release of pip available: 22.2 -> 22.2.1 Notice: To update, run: python.exe -m pip install --upgrade pip python -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 3.7 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 21.0 MB/s eta 0:00:00 Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting texttable Downloading texttable-1.6.4-py2.py3-none-any.whl (10 kB) Collecting pyppmd>=0.14.0 Downloading pyppmd-0.18.3-cp310-cp310-win_amd64.whl (46 kB) ---------------------------------------- 46.1/46.1 kB 2.4 MB/s eta 0:00:00 Collecting brotli>=1.0.9 Downloading Brotli-1.0.9-cp310-cp310-win_amd64.whl (383 kB) ------------------------------------- 383.3/383.3 kB 23.3 MB/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.15.0-cp35-abi3-win_amd64.whl (1.9 MB) ---------------------------------------- 1.9/1.9 MB 41.2 MB/s eta 0:00:00 Collecting cffi>=1.14.0 Using cached cffi-1.15.1-cp310-cp310-win_amd64.whl (179 kB) Collecting pycparser Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB) Building wheels for collected packages: bcj-cffi, pyzstd Building wheel for bcj-cffi (pyproject.toml): started Building wheel for bcj-cffi (pyproject.toml): finished with status 'done' Created wheel for bcj-cffi: filename=bcj_cffi-0.5.1-cp310-cp310-win_amd64.whl size=21554 sha256=9c19cf066cfac5ffb155b5379a09d1cab203f48c3db40ab488ca359170be8401 Stored in directory: c:\users\runneradmin\appdata\local\pip\cache\wheels\11\88\55\ce7be8feef95b27c78acec4e76ee82c3e58a2cfd565fa3dcd2 Building wheel for pyzstd (setup.py): started Building wheel for pyzstd (setup.py): finished with status 'done' Created wheel for pyzstd: filename=pyzstd-0.14.4-cp310-cp310-win_amd64.whl size=209530 sha256=dc243f11a8f294d0f16b88f20ea5c8592f7faede09bc95d9b8429b28a9092f3e Stored in directory: c:\users\runneradmin\appdata\local\pip\cache\wheels\aa\22\d8\389c627b43d76d0ebaf8638ca2d86a5393c592229462c786fd Successfully built bcj-cffi pyzstd Installing collected packages: texttable, brotli, pyzstd, pyppmd, pycryptodomex, pycparser, multivolumefile, cffi, bcj-cffi, py7zr Successfully installed bcj-cffi-0.5.1 brotli-1.0.9 cffi-1.15.1 multivolumefile-0.2.3 py7zr-0.16.1 pycparser-2.21 pycryptodomex-3.15.0 pyppmd-0.18.3 pyzstd-0.14.4 texttable-1.6.4 Notice: A new release of pip available: 22.2 -> 22.2.1 Notice: To update, run: python.exe -m pip install --upgrade pip python -m pip install aqtinstall==1.2.5 Collecting aqtinstall==1.2.5 Downloading aqtinstall-1.2.5-py2.py3-none-any.whl (34 kB) Collecting patch>=1.16 Downloading patch-1.16.zip (12 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting semantic-version Downloading semantic_version-2.10.0-py2.py3-none-any.whl (15 kB) Requirement already satisfied: texttable in c:\hostedtoolcache\windows\python\3.10.5\x64\lib\site-packages (from aqtinstall==1.2.5) (1.6.4) Collecting requests Downloading requests-2.28.1-py3-none-any.whl (62 kB) ---------------------------------------- 62.8/62.8 kB 1.7 MB/s eta 0:00:00 Requirement already satisfied: py7zr>=0.15.1 in c:\hostedtoolcache\windows\python\3.10.5\x64\lib\site-packages (from aqtinstall==1.2.5) (0.16.1) Requirement already satisfied: pycryptodomex>=3.6.6 in c:\hostedtoolcache\windows\python\3.10.5\x64\lib\site-packages (from py7zr>=0.15.1->aqtinstall==1.2.5) (3.15.0) Requirement already satisfied: multivolumefile>=0.2.3 in c:\hostedtoolcache\windows\python\3.10.5\x64\lib\site-packages (from py7zr>=0.15.1->aqtinstall==1.2.5) (0.2.3) Requirement already satisfied: pyppmd>=0.14.0 in c:\hostedtoolcache\windows\python\3.10.5\x64\lib\site-packages (from py7zr>=0.15.1->aqtinstall==1.2.5) (0.18.3) Requirement already satisfied: bcj-cffi<0.6.0,>=0.5.1 in c:\hostedtoolcache\windows\python\3.10.5\x64\lib\site-packages (from py7zr>=0.15.1->aqtinstall==1.2.5) (0.5.1) Requirement already satisfied: brotli>=1.0.9 in c:\hostedtoolcache\windows\python\3.10.5\x64\lib\site-packages (from py7zr>=0.15.1->aqtinstall==1.2.5) (1.0.9) Requirement already satisfied: pyzstd<0.15.0,>=0.14.4 in c:\hostedtoolcache\windows\python\3.10.5\x64\lib\site-packages (from py7zr>=0.15.1->aqtinstall==1.2.5) (0.14.4) Collecting charset-normalizer<3,>=2 Downloading charset_normalizer-2.1.0-py3-none-any.whl (39 kB) Collecting certifi>=2017.4.17 Using cached certifi-2022.6.15-py3-none-any.whl (160 kB) Collecting urllib3<1.27,>=1.21.1 Using cached urllib3-1.26.11-py2.py3-none-any.whl (139 kB) Collecting idna<4,>=2.5 Downloading idna-3.3-py3-none-any.whl (61 kB) ---------------------------------------- 61.2/61.2 kB 3.2 MB/s eta 0:00:00 Requirement already satisfied: cffi>=1.14.0 in c:\hostedtoolcache\windows\python\3.10.5\x64\lib\site-packages (from bcj-cffi<0.6.0,>=0.5.1->py7zr>=0.15.1->aqtinstall==1.2.5) (1.15.1) Requirement already satisfied: pycparser in c:\hostedtoolcache\windows\python\3.10.5\x64\lib\site-packages (from cffi>=1.14.0->bcj-cffi<0.6.0,>=0.5.1->py7zr>=0.15.1->aqtinstall==1.2.5) (2.21) Building wheels for collected packages: patch Building wheel for patch (setup.py): started Building wheel for patch (setup.py): finished with status 'done' Created wheel for patch: filename=patch-1.16-py3-none-any.whl size=12404 sha256=ad444f386dd84dbdf8506fd65eaad16d11589e4738bc234466986787bd4676dc Stored in directory: c:\users\runneradmin\appdata\local\pip\cache\wheels\9e\0b\47\01a46968b6646ca3efa32e23ed436e0c819aca97ec2c136573 Successfully built patch Installing collected packages: patch, urllib3, semantic-version, idna, charset-normalizer, certifi, requests, aqtinstall Successfully installed aqtinstall-1.2.5 certifi-2022.6.15 charset-normalizer-2.1.0 idna-3.3 patch-1.16 requests-2.28.1 semantic-version-2.10.0 urllib3-1.26.11 Notice: A new release of pip available: 22.2 -> 22.2.1 Notice: To update, run: python.exe -m pip install --upgrade pip python -m aqt tool windows tools_ifw undefined undefined -O D:\a\GraphN/Qt Specified target combination is not valid: windows tools_ifw undefined Traceback (most recent call last): File "C:\hostedtoolcache\windows\Python\3.10.5\x64\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\hostedtoolcache\windows\Python\3.10.5\x64\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\hostedtoolcache\windows\Python\3.10.5\x64\lib\site-packages\aqt\__main__.py", line 27, in sys.exit(main()) File "C:\hostedtoolcache\windows\Python\3.10.5\x64\lib\site-packages\aqt\__init__.py", line 31, in main return cli.run() File "C:\hostedtoolcache\windows\Python\3.10.5\x64\lib\site-packages\aqt\installer.py", line 675, in run result = args.func(args) File "C:\hostedtoolcache\windows\Python\3.10.5\x64\lib\site-packages\aqt\installer.py", line 431, in run_tool tool_archives = ToolArchives( File "C:\hostedtoolcache\windows\Python\3.10.5\x64\lib\site-packages\aqt\archives.py", line 363, in __init__ super(ToolArchives, self).__init__( File "C:\hostedtoolcache\windows\Python\3.10.5\x64\lib\site-packages\aqt\archives.py", line 141, in __init__ self.version = Version(version) File "C:\hostedtoolcache\windows\Python\3.10.5\x64\lib\site-packages\semantic_version\base.py", line 105, in __init__ major, minor, patch, prerelease, build = self.parse(version_string, partial) File "C:\hostedtoolcache\windows\Python\3.10.5\x64\lib\site-packages\semantic_version\base.py", line 318, in parse raise ValueError('Invalid version string: %r' % version_string) ValueError: Invalid version string: 'undefined' (node:4916) UnhandledPromiseRejectionWarning: Error: The process 'python' failed with exit code 1 at ExecState._setResult (D:\a\_actions\jurplel\install-qt-action\v2\node_modules\@actions\exec\lib\toolrunner.js:548:25) at ExecState.CheckComplete (D:\a\_actions\jurplel\install-qt-action\v2\node_modules\@actions\exec\lib\toolrunner.js:531:18) at ChildProcess. (D:\a\_actions\jurplel\install-qt-action\v2\node_modules\@actions\exec\lib\toolrunner.js:431:27) at ChildProcess.emit (events.js:314:20) at maybeClose (internal/child_process.js:1022:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5) (node:4916) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:4916) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. ```
asztalosdani commented 1 year ago

Changed the call to tools: 'tools_ifw,4.2.0'

but it still fails silently with

python -m aqt tool windows tools_ifw 4.2.0 undefined -O D:\a\GraphN/Qt
Specified target combination is not valid: windows tools_ifw undefined
Finished installation
asztalosdani commented 1 year ago

When I changed the parameters to tools: 'tools_ifw,4.4.1,qt.tools.ifw.44', aqt still complains, but it installs it successfully.

python -m aqt tool windows tools_ifw 4.4.1 qt.tools.ifw.44 -O D:\a\GraphN/Qt
Specified target combination is not valid: windows tools_ifw qt.tools.ifw.44
Downloading qt.tools.ifw.44...
Redirected: qt.mirror.constant.com
Finished installation of ifw-win-x86.7z in 6.95471430
Finished installation
Time elapsed: 8.40632960 second
jurplel commented 1 year ago

This is effectively a duplicate of #115 I think