aqtinstall: MemoryError during decompression & Unable to read c:\Users\qt\work\install\mkspecs\qconfig.pri
A recent install gave this bug report:
File “C:/msys64/mingw64/lib/python3.9/site-packages/py7zr/py7zr.py”, line 948, in extractall self._extract(path=path, return_dict=False, callback=callback) File “C:/msys64/mingw64/lib/python3.9/site-packages/py7zr/py7zr.py”, line 604, in _extract self.worker.extract( File “C:/msys64/mingw64/lib/python3.9/site-packages/py7zr/py7zr.py”, line 1165, in extract self.extract_single( File “C:/msys64/mingw64/lib/python3.9/site-packages/py7zr/py7zr.py”, line 1276, in extract_single raise e File “C:/msys64/mingw64/lib/python3.9/site-packages/py7zr/py7zr.py”, line 1261, in extract_single crc32 = self.decompress(fp, f.folder, ofp, f.uncompressed, f.compressed, src_end) File “C:/msys64/mingw64/lib/python3.9/site-packages/py7zr/py7zr.py”, line 1313, in decompress tmp = decompressor.decompress(fp, out_remaining) File “C:/msys64/mingw64/lib/python3.9/site-packages/py7zr/compressor.py”, line 630, in decompress tmp = self._decompress(self._unused + data, max_length) File “C:/msys64/mingw64/lib/python3.9/site-packages/py7zr/compressor.py”, line 602, in _decompress data = decompressor.decompress(data) MemoryError “”"
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “C:/msys64/mingw64/lib/python3.9/site-packages/aqt/installer.py”, line 99, in run
args.func(args)
File “C:/msys64/mingw64/lib/python3.9/site-packages/aqt/installer.py”, line 294, in run_install_qt
run_installer(qt_archives.get_packages(), base_dir, sevenzip, keep)
File “C:/msys64/mingw64/lib/python3.9/site-packages/aqt/installer.py”, line 835, in run_installer
pool.starmap(installer, tasks)
File “C:/msys64/mingw64/lib/python3.9/multiprocessing/pool.py”, line 372, in starmap
return self._map_async(func, iterable, starmapstar, chunksize).get()
File “C:/msys64/mingw64/lib/python3.9/multiprocessing/pool.py”, line 771, in get
raise self._value
MemoryError
Arguments: ['C:\\msys64\\mingw64\\bin\\aqt', 'install', '5.12.9', 'windows', 'desktop', 'win64_mingw73'] Host: uname_result(system='Windows', node='DESKTOP-GLQ5UIR', release='10', version='10.0.19041', machine='AMD64')
===========================PLEASE FILE A BUG REPORT===========================
You have discovered a bug in aqt.
Please file a bug report at https://github.com/miurahr/aqtinstall/issues.
Please remember to include a copy of this program’s output in your report.
Exception in thread Thread-1:
Traceback (most recent call last):
File “C:/msys64/mingw64/lib/python3.9/multiprocessing/connection.py”, line 317, in _recv_bytes
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (14 by maintainers)
Commits related to this issue
- Propagate exceptions from `run_installer()` This change catches exceptions derived from Exception and KeyboardInterrupt raised by `installer`, while run by multiple processes, and propagates them bac... — committed to ddalcino/aqtinstall by ddalcino 3 years ago
- Fix misuse of `disable_socket` In an earlier PR, I added calls to `disable_socket()` from `pytest_socket` where I thought they were needed to prevent some tests from accessing the network, in case th... — committed to ddalcino/aqtinstall by ddalcino 3 years ago
- Fix misuse of `disable_socket` (#415) In an earlier PR, I added calls to `disable_socket()` from `pytest_socket` where I thought they were needed to prevent some tests from accessing the network, i... — committed to miurahr/aqtinstall by ddalcino 3 years ago
Good observation; I changed the language and now the link is gone. Thanks!
c:\Users\qt\work\install\is a default path embedded in binaries on windows. aqt updater don’t touch windeployqt.exe, so there is a possible fix to update the windeployqt binary.One potential issue here is the location to which aqt installed Qt. This command will install Qt to
./5.12.9, where.is the current working directory. You can change the path to which aqt will install Qt with the--outputdirflag, but it will always install to a directory with the version number in the name.I am unclear as to why the install script/windeployqt is looking for files in
c:\Users\qt\work\install\;aqtwill never install to this path. Inaqt/updater.py, theUpdaterpatches several binary files: on Windows, it updates paths that look like/Users/qt/work/install/*to point to the correct install path. The pathc:\Users\qt\work\install\mkspecs\qconfig.prilooks unpatched to me. Maybe we need to audit the paths thatUpdateris patching and make sure that we are patching them all;grepcould be useful here.IIRC, the paths that we patch with
Updaterare fallback paths that are only used when certain environment variables are unavailable; I think thatQTDIRis one of these. If your current working directory wasC:\some_directorywhen you installed Qt, then I thinkQTDIRshould point toC:\some_directory\5.12.9\win64_mingw73. You may be able to avoid all this trouble by setting theQTDIRenvironment variable before runningmake installer.Oh, the format of the reply is not good. I’m trying to filter out some useful information.
@dwheeld wanted to build EdgeTX/edgetx. According to the documentation (Build Instructions under Windows 10 (MSYS2)@
d35eff8), this project needs a Qt environment that is installed by aqtinstall:And the step 4 is:
However, @dwheeld got a warning and an error related to Qt when executing
make installer: