jurplel / install-qt-action

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

failed to get qt6.5.1 occasionally #193

Closed xiaoyifang closed 2 months ago

xiaoyifang commented 1 year ago

The configuration is like this

      - uses: actions/setup-python@v3
        with:
          python-version: '3.9'              
      - name: Install Qt
        uses: jurplel/install-qt-action@v3
        with:
          version: 6.5.1
          arch: clang_64

          modules: qtwebengine qtwebchannel qtpositioning qt5compat qtmultimedia qtimageformats qtspeech
          setup-python: 'false'

sometimes it will fail

Notice:  A new release of pip is available: 22.0.4 -> 23.1.2
Notice:  To update, run: pip install --upgrade pip
/Users/runner/hostedtoolcache/Python/3.9.16/x64/bin/python3 -m aqt install-qt mac desktop 6.5.1 clang_64 --outputdir /Users/runner/work/goldendict-ng/Qt --modules qtwebengine qtwebchannel qtpositioning qt5compat qtmultimedia qtimageformats qtspeech
aqtinstall(aqt) v2.1.0 on Python 3.9.16 [CPython Clang 13.0.0 (clang-1300.0.29.30)]
Specified Qt version is unknown: 6.5.1.
Some of specified modules are unknown.
Failed to locate XML data for Qt version '6.5.1'.
==============================Suggested follow-up:==============================
* Please use 'aqt list-qt mac desktop' to show versions available.
Error: Error: The process '/Users/runner/hostedtoolcache/Python/3.9.16/x64/bin/python3' failed with exit code 1

sometimes it success.

EddyTheCo commented 1 year ago

I am having the same issue for 6.5.0 for windows, mac, and linux. This behavior started today.

surfzoid commented 1 year ago

Hi, i have same issue with QT5, only for windows and all the time. @v2.14.0 is working

hongbo-miao commented 1 year ago

Just add more info in case it helps.

I am using this:

- name: Set up Qt
  uses: jurplel/install-qt-action@v3
  with:
    version: '6.*'
    cache: true

My Github Actions started to have this issue today:

Resolved spec '6.*' to 6.6.0
Specified Qt version is unknown: 6.6.0.
Failed to locate XML data for Qt version '6.6.0'.
jurplel commented 1 year ago

This would probably be an issue at the aqtinstall level. It may be that we are using an old aqtinstall version. Maybe you can try reproducing it locally with different versions?

drfiemost commented 1 year ago

My Github Actions started to have this issue today:

Resolved spec '6.*' to 6.6.0
Specified Qt version is unknown: 6.6.0.
Failed to locate XML data for Qt version '6.6.0'.

Same problem here, I see there's a report upstream https://github.com/miurahr/aqtinstall/issues/694, but Qt 6.6 has not been officially released yet.

EddyTheCo commented 1 year ago

This issue comes and goes, I'll bet it is related to the mirrors used when downloading the compiled qt libraries.

VocalFan commented 11 months ago

Same issue for us currently on Linux.

INFO    : aqtinstall(aqt) v3.1.7 on Python 3.11.4 [CPython GCC 11.3.0]
INFO    : Resolved spec '6.*' to 6.6.0
ERROR   : Failed to locate XML data for Qt version '6.6.0'.
jurplel commented 11 months ago

As mentioned above I think this is just an issue with aqtinstall. Please correct me if this isn't true.

Nelson-numerical-software commented 8 months ago

same trouble for win64 "Specified Qt version is unknown: 6.6.0."

pzhlkj6612 commented 7 months ago

Hi, @Nelson-numerical-software !

"Specified Qt version is unknown: 6.6.0."

This is a warning, not an error. It just means that the version of aqtinstall (the backend of this GitHub Action) doesn't know Qt 6.6.0.

Each version of aqtinstall saves the info about Qt version and tool components in an offline database.

If you know some Python, please see https://github.com/miurahr/aqtinstall/blob/c035d2cdcb7d94fd5115541c590f298972fc57ae/aqt/installer.py#L303 .

hongbo-miao commented 5 months ago

Hmm I recently start from yesterday to random get this issue too, when it failed, it is like

https://github.com/hongbo-miao/hongbomiao.com/actions/runs/7727686897/job/21066712717

Successfully installed aqtinstall-2.1.0 beautifulsoup4-4.12.3 bs4-0.0.2 certifi-2023.11.17 charset-normalizer-3.3.2 defusedxml-0.7.1 idna-3.6 patch-1.16 requests-2.31.0 semantic-version-2.10.0 soupsieve-2.5 urllib3-2.2.0
/opt/hostedtoolcache/Python/3.11.7/x64/bin/python3 -m aqt install-qt linux desktop 6.* --outputdir /home/runner/work/hongbomiao.com/Qt
aqtinstall(aqt) v2.1.0 on Python 3.11.7 [CPython GCC 11.4.0]
Resolved spec '6.*' to 6.7.0
Specified Qt version is unknown: 6.7.0.
The packages ['qt_base'] were not found while parsing XML of package information!
==============================Suggested follow-up:==============================
* Please use 'aqt list-qt linux desktop --arch 6.7.0' to show architectures available.
Error: Error: The process '/opt/hostedtoolcache/Python/3.11.7/x64/bin/python3' failed with exit code 1

When I rerun job, it could succeed. So it is very random. This is third time I met this issue. Each time it lasts a few days. 🤔

hongbo-miao commented 5 months ago

In my case, I think it is related with I am using

uses: jurplel/install-qt-action@v3.3.0
with:
  version: '6.*'

The succeed run is using Qt 6.6.1 image

The failed run is using Qt 6.7.0 image

Even the failed one ran earlier. I am guessing it could be related with GitHub Actions workers having different states about Qt during upgrade which takes for a few days. It also explains why I reran, it could succeed. As a GitHub Actions worker using Qt 6.6.1 picking up the work and succeed.

After I pin 6.6.1, I do not see this random issue any more. 😃

For @xiaoyifang , even he pined the version to 6.5.1, but at that time maybe that is latest version. And it happens during the GitHub Actions workers upgrading period too. And some workers have latest 6.5.1 while some not.

jurplel commented 2 months ago

Reopen if this issue still occurs with v4.