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

aqt install-qt failing due to missing qconfig.pri inside container #691

Closed Holt59 closed 1 year ago

Holt59 commented 1 year ago

Describe the bug

I am trying to install Qt in a Windows container and it's failing due to missing qconfig.pri.

To Reproduce

Run the following inside a docker container (from CMD) running mcr.microsoft.com/windows/servercore:ltsc2022:

mkdir C:\Qt
cd C:\Qt
curl -SL --output aqt.exe https://github.com/miurahr/aqtinstall/releases/download/v3.1.6/aqt_x64.exe
aqt.exe install-qt windows desktop 6.5.1 win64_msvc19_64 -m all 

Expected behavior

I expect this to install Qt properly.

aqt output

2023-07-05 21:55:11,418 - aqt.main - INFO - installer 2000 aqtinstall(aqt) v3.1.6 on Python 3.9.13 [CPython MSC v.1929 64 bit (AMD64)]
2023-07-05 21:55:11,418 - aqt.main - WARNING - installer 2000 Specified Qt version "6.5.1" did not exist when this version of aqtinstall was released. This may not install properly, but we will try our best.
2023-07-05 21:55:11,418 - aqt.main - WARNING - installer 2000 Specified target combination "windows desktop win64_msvc19_64" did not exist when this version of aqtinstall was released. This may not install properly, but we will try our best.
2023-07-05 21:55:11,418 - aqt.helper - DEBUG - helper 2000 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/windows_x86/desktop/qt6_651/Updates.xml.sha256
2023-07-05 21:55:12,340 - aqt.main - ERROR - installer 2000 Updater caused an IO error: [Errno 2] No such file or directory: 'C:\\Qt\\6.5.1\\msvc19_64\\mkspecs\\qconfig.pri'