Closed flo-carrere closed 1 year ago
I have implemented a workaround locally by pulling explicitly aqt v2.1.0
prior to qt5-default
, this prevents qt5-default from pulling "any" aqt version (resulting currently in pull v2.2.3 that is not compliant in terms of version).
choco install -y aqt --version=2.1.0 <<--- Making aqt available
choco install -y qt5-default <<--- Here qt5-default will not pull aqt and just use the one available
It's OK as-is for me, but it is strange that qt5-default is not actually pulling a fixed version of aqt
I think it’s worthwhile to report this directly to the maintainers of the chocolatey packages qt-default
and aqt
. They will have a lot more control over this than we will.
This error:
ModuleNotFoundError: No module named 'aqt.version'
… is a thing that sometimes happens when aqt has not been packaged correctly. IIRC, there’s a setup script that generates the version.py
file, and if it isn’t run, then aqt cannot run at all.
Have you tried installing aqtinstall via pip, as in the readme, or using aqt.exe from the releases page?
@lebarsfa Any suggestions?
choco's script looks downloading aqt.exe
It seems that the executable may be broken.
$ErrorActionPreference = 'Stop'; # stop on all errors
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url = 'https://github.com/miurahr/aqtinstall/releases/download/v2.2.3/aqt_x86.exe'
$url64 = 'https://github.com/miurahr/aqtinstall/releases/download/v2.2.3/aqt_x64.exe'
$packageArgs = @{
packageName = $env:ChocolateyPackageName
fileFullPath = "$toolsDir\aqt.exe"
url = $url
url64bit = $url64
checksum = '6C6288EEACC022DD94B83842474B42F40F17C9A3A0A013098EF914E18A6E6CF6'
checksumType = 'sha256'
checksum64 = 'AEF2B202B2D1A9A60ECC2E5DEC897BD318BE58CEDF6A6EBAFDFD5EB0B26A2C69'
checksumType64= 'sha256'
forceDownload = $true
}
Get-ChocolateyWebFile @packageArgs
A modification in v2.2.3 is #557 to fix windows standalone binary with work-around. I think it was uncompleted.
Because the error was reported in #564 "Trying to install it on windows I get the error: "No module named 'aqt.version'" " , and fixed in #565 "Run gravitybee with pyproject.toml " that was integrated into 3.0 (CHANGELOG)
OK, I unlisted that version from Chocolatey.
It is highly possible that I never tested v2.2.3 because my initial plan was to submit v2.2.3 (as it was last v2) and immediately v3.1.2 (which I tested) but I realized that I had to wait for v2.2.3 to be manually approved by the moderators (due to virus checks false positives on Chocolatey) before submitting another version, which was done some days ago, so now we have to wait for v3.1.2 to be approved... So now that v2.2.3 is unlisted, it is v2.1.0 that normally appears as the latest, until v3.1.2 is approved. Sorry for the mess!
I'd like to work for v2.2.4 that has a backport of the fixes.
Just pushed the release. @flo-carrere @lebarsfa could you check and test it? https://github.com/miurahr/aqtinstall/releases/tag/v2.2.4
Now I'd like to work also on 3.0.x for security only fix.
@lebarsfa I indeed verified this morning that aqt v2.1.0
is correctly pulled by default from choco when installing qt5-default
.
This is solving my issue.
@miurahr Sorry I have no time to check aqt v2.2.4
and install it locally, this is not my workflow to check aqt standalone.
Thanks to all for your reactivity!
I confirm v2.2.4 looks OK.
Describe the bug
Since a few days, I actually noticed that my Gitlab CI pipeline is actually failing because it's not able to install
qt5-default
fully usingchocolatey v1.3.1.
This pipeline has not been modified, just rerun from a nightly job.It might not be related to aqt directly but I have not spotted any other differences in the job output so far.
Here is a relevant (I guess) snippet from the failing pipeline:
On the other hand, a correct pipeline from few day ago:
To Reproduce Steps to reproduce the behavior:
Expected behavior I would expect qt5-default on chocolatey referencing a working aqt version (this is not the responsibility of aqt) I would expect a more recent version of aqt (v2.2.3) to be
Desktop (please complete the following information):