miurahr / aqtinstall

aqt: Another (unofficial) Qt CLI Installer on multi-platforms
https://aqtinstall.readthedocs.io/en/latest/
MIT License
893 stars 83 forks source link

Installing WebAssembly Qt 6.7.0 fails #779

Open timangus opened 2 months ago

timangus commented 2 months ago

Describe the bug Qt for WebAssembly 6.7.0 fails to install as before, and doesn't appear to be available.

To Reproduce Steps to reproduce the behavior:

  1. Run aqt install-qt linux desktop 6.7.0 wasm_multithread --autodesktop
  2. Observe error message.

Expected behavior Qt for WebAssembly 6.7.0 is installed.

aqt output

$ aqt install-qt linux desktop 6.7.0 wasm_multithread --autodesktop
INFO    : aqtinstall(aqt) v3.1.13 on Python 3.10.12 [CPython GCC 11.4.0]
INFO    : You are installing the Qt6-WASM version of Qt, which requires that the desktop version of Qt is also installed. Now installing Qt: desktop 6.7.0 linux_gcc_64
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.

$ aqt list-qt linux desktop --arch 6.7.0
linux_gcc_64

Desktop (please complete the following information):

Additional context Valid output of 6.6.3 query, for comparison:

$ aqt list-qt linux desktop --arch 6.6.3
gcc_64 wasm_singlethread wasm_multithread
rectalogic commented 2 months ago

Looks like for 6.7.0 they moved wasm under all_os https://download.qt.io/online/qtsdkrepository/all_os/wasm/

Similar issue to docs/examples in #775

timangus commented 2 months ago

I made things work here: https://github.com/timangus/aqtinstall/commit/5fd08c42d55c21b75dddc693ddb72d8d6d2ce582

$ aqt install-qt all_os wasm 6.7.0 wasm_multithread --autodesktop

miurahr commented 2 months ago

Is it reasonable to advice users to specify "all_os" for os_name? @timangus @rectalogic

If so, does anyone raise hand volunteer to update manual ?

vkuznetsovgn commented 1 month ago

Hey @miurahr .

I think it's not enough to update the manual. @timangus had to update aqt code to make it work.

timangus commented 1 month ago

And please regard my changes with scepticism; I've only hacked away at it to make it work for my particular use case. It's perhaps useful as a basis for fixing the problem properly though.