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

[Bug]: MacOS installation fails due to "qt-unified-macOS-x64-online.dmg" not being found #889

Open
1 task done
alex-spataru opened this issue Feb 5, 2025 · 0 comments
Labels
bug Something isn't working triage

Comments

@alex-spataru
Copy link

Bug description

Hi,

I've encountered an issue with CI builds using commercial Qt 6.8.2 on macOS. The installation fails because the expected installer file, qt-unified-macOS-x64-online.dmg, is not found. It appears that the installer has been renamed to qt-unified-mac-x64-online.dmg.

Should the helper.py code be updated accordingly?

Proposed change:

def get_qt_installer_name() -> str:
    installer_dict = {
        "windows": "qt-unified-windows-x64-online.exe",
        "mac": "qt-unified-mac-x64-online.dmg",
        "linux": "qt-unified-linux-x64-online.run",
    }
    return installer_dict[get_os_name()]

Thanks,
Alex

Expected behavior

Successful download of installer file.

aqt and python version

aqtinstall v3.2.0 on Python 3.13.1

Operating System

MacOS

Relevant log output

INFO    : aqtinstall(aqt) v3.2.0 on Python 3.13.1 [CPython Clang 15.0.0 (clang-1500.3.9.4)]
INFO    : Downloading Qt installer to /Users/runner/Library/Application Support/aqt/tmp/qt-unified-macOS-x64-online.dmg
ERROR   : Commercial installation failed: Failed to download installer: 404 Client Error: Not Found for url: https://download.qt.io/official_releases/online_installers/qt-unified-macOS-x64-online.dmg
ERROR   : Failed to download installer: 404 Client Error: Not Found for url: https://download.qt.io/official_releases/online_installers/qt-unified-macOS-x64-online.dmg
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/aqt/commercial.py", line 350, in download_installer
    response.raise_for_status()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/requests/models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://download.qt.io/official_releases/online_installers/qt-unified-macOS-x64-online.dmg

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/aqt/installer.py", line 195, in run
    args.func(args)
    ~~~~~~~~~^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/aqt/installer.py", line 707, in run_install_qt_commercial
    commercial_installer.install()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/aqt/commercial.py", line 314, in install
    self.download_installer(installer_path, Settings.qt_installer_timeout)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/aqt/commercial.py", line 358, in download_installer
    raise RuntimeError(f"Failed to download installer: {e}")
RuntimeError: Failed to download installer: 404 Client Error: Not Found for url: https://download.qt.io/official_releases/online_installers/qt-unified-macOS-x64-online.dmg
ERROR   : aqtinstall(aqt) v3.2.0 on Python 3.13.1 [CPython Clang 15.0.0 (clang-1500.3.9.4)]
Working dir: `/Users/runner/work/***/***`
Arguments: `['/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/aqt/__main__.py', 'install-qt-commercial', 'desktop', 'clang_64', '6.8.2', '--outputdir', '/Users/runner/work/***/Qt', '--user', '***', '--password', '***', '--modules', 'qtserialport', 'qtconnectivity', 'qtshadertools', 'qtlottie', 'qtmultimedia']` Host: `uname_result(system='Darwin', node='Mac-1738770673606.local', release='23.6.0', version='Darwin Kernel Version 23.6.0: Fri Nov 15 15:13:40 PST 2024; root:xnu-10063.141.1.702.7~1/RELEASE_ARM64_VMAPPLE', machine='arm64')`
=

Code of Conduct

  • I agree to follow this project's Code of Conduct
@alex-spataru alex-spataru added bug Something isn't working triage labels Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

1 participant