Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not install src with source: true #243

Open
trim21 opened this issue Jun 11, 2024 · 2 comments
Open

can not install src with source: true #243

trim21 opened this issue Jun 11, 2024 · 2 comments

Comments

@trim21
Copy link

trim21 commented Jun 11, 2024

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

      - name: Install Qt
        uses: jurplel/install-qt-action@v4
        with:
          version: "6.5.*"
          archives: icu qtbase qtdeclarative qtsvg qttools
          source: true
          src-archives: qtbase qtdeclarative
          cache: true
          arch: gcc_64
          target: desktop
          host: "linux"

full workflow:

name: qbittorrent

on:
  push:
    branches:
      - "master"
    paths:
      - .github/workflows/qbittorrent.yaml

env:
  QB_VERSION: "release-4.6.5"
  LT_VERSION: "v2.0.10"

jobs:
  ci:
    runs-on: ubuntu-24.04

    steps:
      - uses: actions/checkout@v4
        with:
          repository: trim21/qBittorrent
          #          ref: "${{ env.QB_VERSION }}"
          ref: personal-patch

      - uses: actions/checkout@v4
        with:
          ref: "${{ env.LT_VERSION }}"
          repository: arvidn/libtorrent
          path: libtorrent
          submodules: recursive

      - name: Install Qt
        uses: jurplel/install-qt-action@v4
        with:
          version: "6.5.*"
          archives: icu qtbase qtdeclarative qtsvg qttools
          source: true
          src-archives: qtbase qtdeclarative
          cache: true
          arch: gcc_64
          target: desktop
          host: "linux"

it's log is here:

https://github.com/trim21/actions-cron/actions/runs/9467040441/job/26080146783

@pzhlkj6612
Copy link
Contributor

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

.

@jurplel
Copy link
Owner

jurplel commented Jun 14, 2024

Thanks for following up upstream @pzhlkj6612

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants