Open trim21 opened 3 weeks ago
FWIW, the commands executed by this action are as follows:
$ python3 -m pip install setuptools wheel py7zr==0.20.*
...
$ python3 -m pip install aqtinstall==3.1.*
...
$ python3 -m aqt version
INFO : aqtinstall(aqt) v3.1.15 on Python 3.11.9 [CPython GCC 13.2.0]
$ python3 -m aqt install-qt linux desktop 6.5.* gcc_64 --autodesktop --outputdir /home/runner/work/actions-cron/Qt --archives icu qtbase qtdeclarative qtsvg qttools
...
$ python3 -m aqt install-src linux 6.5.* --outputdir /home/runner/work/actions-cron/Qt --archives qtbase qtdeclarative
ERROR : Target 'None' is invalid
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/aqt/installer.py", line 182, in run
args.func(args)
File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/aqt/installer.py", line 519, in run_install_src
Cli._determine_qt_version(args.qt_version_spec, args.host, args.target, arch="", base_url=base)
File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/aqt/installer.py", line 326, in _determine_qt_version
version = choose_highest(version, opt_version_for_spec(ext, spec))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/aqt/installer.py", line 310, in opt_version_for_spec
meta = MetadataFactory(ArchiveId("qt", host, target), spec=_spec, base_url=base_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/aqt/metadata.py", line 218, in __init__
raise ValueError("Target '{}' is invalid".format(target))
ValueError: Target 'None' is invalid
ERROR : aqtinstall(aqt) v3.1.15 on Python 3.11.9 [CPython GCC 13.2.0]
Working dir: `/home/runner/work/actions-cron/actions-cron`
Arguments: `['/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/aqt/__main__.py', 'install-src', 'linux', '6.5.*', '--outputdir', '/home/runner/work/actions-cron/Qt', '--archives', 'qtbase', 'qtdeclarative']` Host: `uname_result(system='Linux', node='fv-az1044-179', release='6.8.0-1007-azure', version='#7-Ubuntu SMP Sat Apr 20 00:06:31 UTC 2024', machine='x86_64')`
===========================PLEASE FILE A BUG REPORT===========================
You have discovered a bug in aqt.
Please file a bug report at https://github.com/miurahr/aqtinstall/issues
Please remember to include a copy of this program's output in your report.
Error: Error: The process '/opt/hostedtoolcache/Python/3.11.9/x64/bin/python3' failed with exit code 254
Aqtinstall's doc says:
aqt install-src ... <host> [<target>] (<Qt version> | <spec>)
target
Deprecated and marked for removal in a future version of aqt. This parameter exists for backwards compatibility reasons, and its value is ignored.
https://aqtinstall.readthedocs.io/en/v3.1.15/cli.html#install-src-command
.
Thanks for following up upstream @pzhlkj6612
I'm trying to install qt src and it raise a error
ValueError: Target 'None' is invalid
I'm not sure is this a bug of this actions or it's a bug or aqt, I think I should report here first.
I'm using this actions in ubuntu 24.04 with this config
full workflow:
it's log is here:
https://github.com/trim21/actions-cron/actions/runs/9467040441/job/26080146783