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]: install-src fails for 6.8.x #887

Open
1 task done
Poldraunic opened this issue Jan 30, 2025 · 2 comments
Open
1 task done

[Bug]: install-src fails for 6.8.x #887

Poldraunic opened this issue Jan 30, 2025 · 2 comments
Labels
bug Something isn't working triage

Comments

@Poldraunic
Copy link

Bug description

Try running aqtinstall install-src windows 6.8.1.

Expected behavior

.

aqt and python version

aqtinstall(aqt) v3.2.0 on Python 3.10.7 [CPython MSC v.1933 64 bit (AMD64)]

Operating System

Windows

Relevant log output

INFO    : aqtinstall(aqt) v3.2.0 on Python 3.10.7 [CPython MSC v.1933 64 bit (AMD64)]
ERROR   : local variable 'extensions_xml_text' referenced before assignment
Traceback (most recent call last):
  File "C:\Programming\SDK\Python 3.10\lib\site-packages\aqt\installer.py", line 195, in run
    args.func(args)
  File "C:\Programming\SDK\Python 3.10\lib\site-packages\aqt\installer.py", line 514, in run_install_src
    self._run_src_doc_examples("src", args)
  File "C:\Programming\SDK\Python 3.10\lib\site-packages\aqt\installer.py", line 485, in _run_src_doc_examples
    srcdocexamples_archives: SrcDocExamplesArchives = retry_on_bad_connection(
  File "C:\Programming\SDK\Python 3.10\lib\site-packages\aqt\helper.py", line 238, in retry_on_bad_connection
    return function(base_url)
  File "C:\Programming\SDK\Python 3.10\lib\site-packages\aqt\installer.py", line 486, in <lambda>
    lambda base_url: SrcDocExamplesArchives(
  File "C:\Programming\SDK\Python 3.10\lib\site-packages\aqt\archives.py", line 612, in __init__
    super(SrcDocExamplesArchives, self).__init__(
  File "C:\Programming\SDK\Python 3.10\lib\site-packages\aqt\archives.py", line 319, in __init__
    self._get_archives()
  File "C:\Programming\SDK\Python 3.10\lib\site-packages\aqt\archives.py", line 647, in _get_archives
    self._get_archives_base(name, self._target_packages())
  File "C:\Programming\SDK\Python 3.10\lib\site-packages\aqt\archives.py", line 445, in _get_archives_base
    if extensions_xml_text:
UnboundLocalError: local variable 'extensions_xml_text' referenced before assignment
ERROR   : aqtinstall(aqt) v3.2.0 on Python 3.10.7 [CPython MSC v.1933 64 bit (AMD64)]
Working dir: `C:\Programming\SDK\Qt`
Arguments: `['C:\\Programming\\SDK\\Python 3.10\\Scripts\\aqt', '-c', 'aqt.conf', 'install-src', 'windows', '6.8.1']` Host: `uname_result(system='Windows', node='WorkHorse', release='10', version='10.0.19045', machine='AMD64')`

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Poldraunic Poldraunic added bug Something isn't working triage labels Jan 30, 2025
@Poldraunic Poldraunic changed the title [Bug]: install-src fails for 6.8.1 [Bug]: install-src fails for 6.8.x Jan 30, 2025
@Kidev
Copy link
Contributor

Kidev commented Jan 30, 2025

Could not reproduce the bug, Windows 11

(.venv) PS C:\Work\perso\github\aqtinstall> python -m aqt install-src windows 6.8.1
INFO    : aqtinstall(aqt) v3.2.0 on Python 3.13.0 [CPython MSC v.1941 64 bit (AMD64)]
INFO    : Downloading qtdoc...
INFO    : Downloading qt5compat...
...
INFO    : Finished installation
INFO    : Time elapsed: 23.35940840 second
PS C:\Work\perso\github test\aqtinstall> .\dist\aqt.exe install-src windows 6.8.1
INFO    : aqtinstall(aqt) v3.2.0 on Python 3.13.0 [CPython MSC v.1941 64 bit (AMD64)]
INFO    : Downloading qtsvg...
INFO    : Downloading qt5compat...
...
INFO    : Finished installation
INFO    : Time elapsed: 50.29268400 second

@Kidev
Copy link
Contributor

Kidev commented Jan 30, 2025

You are using python 3.10 though, update it (3.12+) and retry. Also see this

More easily, you can use the standalone binary (aqt.exe): https://github.com/miurahr/aqtinstall/releases

aqt.exe install-src windows 6.8.1

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

2 participants