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

install-src and install-doc fail for 6.7.0 #775

Closed
rectalogic opened this issue Apr 5, 2024 · 9 comments · Fixed by #776
Closed

install-src and install-doc fail for 6.7.0 #775

rectalogic opened this issue Apr 5, 2024 · 9 comments · Fixed by #776
Labels
bug Something isn't working

Comments

@rectalogic
Copy link
Contributor

Describe the bug
install-src and install-doc both fail for macos

To Reproduce

> aqt install-src mac 6.7.0 -O /tmp/qt
INFO    : aqtinstall(aqt) v3.1.12 on Python 3.11.8 [CPython Clang 15.0.0 (clang-1500.1.0.2.5)]
WARNING : Failed to download checksum for the file 'Updates.xml'. This may happen on unofficial mirrors.
ERROR   : Failed to locate XML data for Qt version '6.7.0'.
==============================Suggested follow-up:==============================
* Please use 'aqt list-qt mac desktop' to show versions available.
> aqt install-doc mac 6.7.0 -O /tmp/qt
INFO    : aqtinstall(aqt) v3.1.12 on Python 3.11.8 [CPython Clang 15.0.0 (clang-1500.1.0.2.5)]
WARNING : Failed to download checksum for the file 'Updates.xml'. This may happen on unofficial mirrors.
ERROR   : Failed to locate XML data for Qt version '6.7.0'.
==============================Suggested follow-up:==============================
* Please use 'aqt list-qt mac desktop' to show versions available.

Expected behavior
Should install

aqt output
See attached aqtinstall.log

Desktop (please complete the following information):

  • OS: macOS 14.4.1
  • INFO : aqtinstall(aqt) v3.1.12 on Python 3.11.8 [CPython Clang 15.0.0 (clang-1500.1.0.2.5)]

Additional context
aqt is attempting to download https://download.qt.io/online/qtsdkrepository/mac_x64/desktop/qt6_670_src_doc_examples/Updates.xml.sha256 but it appears 6.7.0 has moved this to https://download.qt.io/online/qtsdkrepository/all_os/qt/qt6_670_src_doc_examples/Updates.xml

@rectalogic rectalogic added the bug Something isn't working label Apr 5, 2024
rectalogic added a commit to rectalogic/aqtinstall that referenced this issue Apr 5, 2024
rectalogic added a commit to rectalogic/aqtinstall that referenced this issue Apr 11, 2024
@pcolby
Copy link

pcolby commented Apr 29, 2024

The same issue applies to Linux too (but not Windows).

2024-04-29 00:04:10,247 - aqt.main - INFO - installer 139878233721728 aqtinstall(aqt) v3.1.13 on Python 3.12.3 [CPython GCC 11.4.0]
2024-04-29 00:04:10,248 - aqt.helper - DEBUG - helper 139878233721728 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/linux_x64/desktop/qt6_670_src_doc_examples/Updates.xml.sha256
2024-04-29 00:04:11,019 - aqt.helper - DEBUG - helper 139878233721728 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/linux_x64/desktop/qt6_670_src_doc_examples/Updates.xml.sha256
2024-04-29 00:04:11,624 - aqt.helper - DEBUG - helper 139878233721728 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/linux_x64/desktop/qt6_670_src_doc_examples/Updates.xml.sha256
2024-04-29 00:04:12,291 - aqt.helper - DEBUG - helper 139878233721728 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/linux_x64/desktop/qt6_670_src_doc_examples/Updates.xml.sha256
2024-04-29 00:04:12,895 - aqt.helper - DEBUG - helper 139878233721728 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/linux_x64/desktop/qt6_670_src_doc_examples/Updates.xml.sha256
2024-04-29 00:04:13,499 - aqt.archives - WARNING - archives 139878233721728 Failed to download checksum for the file 'Updates.xml'. This may happen on unofficial mirrors.
2024-04-29 00:04:14,105 - aqt.main - ERROR - installer 139878233721728 Failed to locate XML data for Qt version '6.7.0'.

Seems to be that Qt has adjusted the online installer's archive paths.

@miurahr
Copy link
Owner

miurahr commented May 4, 2024

I confirmed there is
https://download.qt.io/online/qtsdkrepository/all_os/qt/
image

@miurahr
Copy link
Owner

miurahr commented May 4, 2024

Does #785 works for you? @pcolby

@miurahr
Copy link
Owner

miurahr commented May 4, 2024

#776 also target to fix here. I'd like to take #776.

@pcolby
Copy link

pcolby commented May 4, 2024

Thanks @miurahr,

Does #785 works for you? @pcolby

The short version: Yes!! 😄 Thanks.

The longer version: My specific use case (installing via install-qt-action) runs:

python -m aqt install-doc linux 6.7.0 --outputdir <output-dir> --archives qtcore --modules qtbluetooth

If I build and run the current master (ie a5dea63), I get:

INFO    : aqtinstall(aqt) v3.1.15 on Python 3.7.4 [CPython GCC 13.2.0]
WARNING : Failed to download checksum for the file 'Updates.xml'. This may happen on unofficial mirrors.
ERROR   : Failed to locate XML data for Qt version '6.7.0'.
==============================Suggested follow-up:==============================
* Please use 'aqt list-qt linux desktop' to show versions available.

And if I checkout 40721ad, rebuild, and run the same command, I now get:

INFO    : aqtinstall(aqt) v3.1.16.dev1 on Python 3.7.4 [CPython GCC 13.2.0]
INFO    : Downloading qtbluetooth...
INFO    : Downloading qtcore...
INFO    : Redirected: mirrors.cloud.tencent.com
INFO    : Redirected: mirrors.cloud.tencent.com
WARNING : Extracting may be unsafe; consider updating Python to 3.11.4 or greater
INFO    : Finished installation of qtbluetooth-documentation.tar.xz in 8.70673077
WARNING : Extracting may be unsafe; consider updating Python to 3.11.4 or greater
INFO    : Finished installation of qtcore-documentation.tar.xz in 14.66651355
INFO    : Finished installation
INFO    : Time elapsed: 18.08886567 second

And the request docs appear in the output directory as expected.

I get the same (broken before / fixed after) results for mac too.

Thanks!

@miurahr
Copy link
Owner

miurahr commented May 4, 2024

@pcolby @rectalogic has already proposed the fix which is basically same as my approach, but is complete changes.

@pcolby
Copy link

pcolby commented May 4, 2024

Ah I see, well then, thanks both of you! 😄

miurahr pushed a commit that referenced this issue May 5, 2024
* Override host/target for src/docs if Qt >= 6.7.0

Fixes #775
@pcolby
Copy link

pcolby commented Jun 15, 2024

When might we see this in the 3.1.16 release? 🙏🏼🙂 Although this fix works locally, I'm using install-qt-action in CI, where I can't use this fix until it's released to pip. Releasing 3.1.16 would make my day 😄 Thanks!

pcolby added a commit to pcolby/dokit that referenced this issue Jun 16, 2024
This has been a long time coming, and was dependant on aqtinstall
v3.1.16 release for miurahr/aqtinstall#775

Squashed commit of the following:

commit 57124b0
Author: Paul Colby <git@colby.id.au>
Date:   Sun Jun 16 12:04:03 2024 +1000

    Exclude Qt 6.7.1 with GCC on MacOS

    Also stop building Qt 6.7.0 (6.7.1 supersedes it).

commit 250219d
Author: Paul Colby <git@colby.id.au>
Date:   Sun Jun 16 12:00:24 2024 +1000

    Too early for Qt 6.8 beta 1 (for aqtinstall)

commit e484d1c
Merge: 644ce1a af02c60
Author: Paul Colby <git@colby.id.au>
Date:   Sun Jun 16 09:19:40 2024 +1000

    Merge branch 'main' into qt-6.7

commit 644ce1a
Author: Paul Colby <git@colby.id.au>
Date:   Sun Jun 16 09:06:41 2024 +1000

    Try Qt 6.7.0 and 6.8.0 on GitHub Actions

    Trying 6.7.0, since 6.7.1 is not (officially) configured in
    aqtinstall yet.

commit a646240
Author: Paul Colby <git@colby.id.au>
Date:   Sun Jun 16 08:57:50 2024 +1000

    Remove the (now unnecessary) aqtversion override

    install-qt-action@v4 new defaults to the same version.

commit 9c180dc
Merge: e355364 2684d45
Author: Paul Colby <git@colby.id.au>
Date:   Sun Jun 16 08:55:24 2024 +1000

    Merge branch 'main' into qt-6.7

commit e355364
Author: Paul Colby <git@colby.id.au>
Date:   Tue May 21 16:46:29 2024 +1000

    Try Qt 6.7.1

commit b89b3c8
Author: Paul Colby <git@colby.id.au>
Date:   Thu Apr 25 20:56:26 2024 +1000

    Differentiate some uploaded artifacts

commit 806ea15
Merge: 214c31a ff5008d
Author: Paul Colby <git@colby.id.au>
Date:   Thu Apr 25 20:55:05 2024 +1000

    Merge branch 'main' into qt-6.7

commit 214c31a
Merge: 7e2e52f f713a7d
Author: Paul Colby <git@colby.id.au>
Date:   Sat Apr 20 22:16:38 2024 +1000

    Merge branch 'main' into qt-6.7

commit 7e2e52f
Author: Paul Colby <git@colby.id.au>
Date:   Wed Mar 27 21:04:24 2024 +1100

    Upgrade to Qt 6.6.3

commit 927d128
Author: Paul Colby <git@colby.id.au>
Date:   Sat Mar 23 10:47:00 2024 +1100

    Only keep aqtinstall log files on failures

commit 06c600a
Author: Paul Colby <git@colby.id.au>
Date:   Sat Mar 23 10:26:25 2024 +1100

    Skip uploading cross-compile aqt log when not cross-compiling

    Also corrected some Workflow syntax in the artifact names.

commit afcc016
Author: Paul Colby <git@colby.id.au>
Date:   Sat Mar 23 10:17:51 2024 +1100

    Ensure artifact name is unique, and enable for all platforms

commit 22d8cd3
Author: Paul Colby <git@colby.id.au>
Date:   Sat Mar 23 10:03:48 2024 +1100

    Try saving the aqtinstall.log file

commit 4b9d8f1
Author: Paul Colby <git@colby.id.au>
Date:   Thu Mar 14 10:56:31 2024 +1100

    Remove the Qt 6.7 custom arch

    This is handled internally since aqtinstall v3.1.12.

    https://github.com/miurahr/aqtinstall/blob/v3.1.12/ci/generate_combinations.py

commit 3efa872
Merge: c3ebe06 038b174
Author: Paul Colby <git@colby.id.au>
Date:   Thu Mar 14 10:54:34 2024 +1100

    Merge branch 'main' into qt-6.7

commit c3ebe06
Merge: d36b50d 70252b6
Author: Paul Colby <git@colby.id.au>
Date:   Wed Mar 13 09:14:45 2024 +1100

    Merge branch 'main' into qt-6.7

commit d36b50d
Merge: 1b2f9c8 3c06a8a
Author: Paul Colby <git@colby.id.au>
Date:   Fri Mar 1 21:49:53 2024 +1100

    Merge branch 'main' into qt-6.7

commit 1b2f9c8
Author: Paul Colby <git@colby.id.au>
Date:   Fri Feb 16 08:20:31 2024 +1100

    Correct YAML syntax

commit 1257177
Author: Paul Colby <git@colby.id.au>
Date:   Fri Feb 16 08:18:59 2024 +1100

    Try installing Python manually

commit f55e54c
Merge: a3aacab 1aa0e3e
Author: Paul Colby <git@colby.id.au>
Date:   Fri Feb 2 14:00:02 2024 +1100

    Merge branch 'main' into qt-6.7

commit a3aacab
Merge: e6631ca 1275332
Author: Paul Colby <git@colby.id.au>
Date:   Tue Jan 2 21:40:31 2024 +1100

    Merge branch 'main' into qt-6.7

commit e6631ca
Author: Paul Colby <git@colby.id.au>
Date:   Tue Jan 2 20:57:24 2024 +1100

    Correct Workflow syntax

commit 8fc29b7
Author: Paul Colby <git@colby.id.au>
Date:   Tue Jan 2 20:53:28 2024 +1100

    Use Qt's MinGW for Qt 6.7 too

commit aa01532
Author: Paul Colby <git@colby.id.au>
Date:   Tue Jan 2 20:50:27 2024 +1100

    Use linux_gcc_64 for Qt 6.7 arch on Linux

commit d250a7b
Author: Paul Colby <git@colby.id.au>
Date:   Tue Jan 2 20:34:49 2024 +1100

    Don't use contextless connects

    Not strictly necessary, but best practice, enforced in Qt 6.7
    since we're defining QT_NO_CONTEXTLESS_CONNECT.

    See https://bugreports.qt.io/browse/QTBUG-116296 for background.

commit fe752b3
Merge: 6bcacb2 ae271c7
Author: Paul Colby <git@colby.id.au>
Date:   Tue Jan 2 19:51:30 2024 +1100

    Merge branch 'main' into qt-6.7

commit 6bcacb2
Merge: 6e51835 8c72853
Author: Paul Colby <git@colby.id.au>
Date:   Fri Dec 29 14:08:53 2023 +1100

    Merge branch 'main' into qt-6.7

commit 6e51835
Merge: 42c0a18 6c76173
Author: Paul Colby <git@colby.id.au>
Date:   Thu Dec 28 21:19:28 2023 +1100

    Merge branch 'main' into qt-6.7

commit 42c0a18
Author: Paul Colby <git@colby.id.au>
Date:   Thu Dec 28 17:25:58 2023 +1100

    Try out Qt 6.7 Beta1
@pcolby
Copy link

pcolby commented Jun 17, 2024

When might we see this in the 3.1.16 release? 🙏🏼🙂 Although this fix works locally, I'm using install-qt-action in CI, where I can't use this fix until it's released to pip. Releasing 3.1.16 would make my day 😄 Thanks!

I see this how now been released, and works perfectly for me! Thank you very much! 😄

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
3 participants