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

failed to get qt6.5.1 occasionally #193

Open
xiaoyifang opened this issue Jun 6, 2023 · 12 comments
Open

failed to get qt6.5.1 occasionally #193

xiaoyifang opened this issue Jun 6, 2023 · 12 comments
Labels
bug Something isn't working

Comments

@xiaoyifang
Copy link

xiaoyifang commented Jun 6, 2023

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
Copy link

EddyTheCo commented Jun 6, 2023

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

@surfzoid
Copy link

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

@hongbo-miao
Copy link

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
Copy link
Owner

jurplel commented Jul 3, 2023

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?

@jurplel jurplel added the bug Something isn't working label Jul 3, 2023
@drfiemost
Copy link

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 miurahr/aqtinstall#694, but Qt 6.6 has not been officially released yet.

@EddyTheCo
Copy link

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

@VocalFan
Copy link

VocalFan commented Aug 22, 2023

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
Copy link
Owner

jurplel commented Aug 27, 2023

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

@Nelson-numerical-software

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

@pzhlkj6612
Copy link
Contributor

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
Copy link

hongbo-miao commented Feb 1, 2024

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
Copy link

hongbo-miao commented Feb 1, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants