miurahr / aqtinstall Goto Github PK
View Code? Open in Web Editor NEWaqt: Another (unofficial) Qt CLI Installer on multi-platforms
Home Page: https://aqtinstall.readthedocs.io/en/latest/
License: MIT License
aqt: Another (unofficial) Qt CLI Installer on multi-platforms
Home Page: https://aqtinstall.readthedocs.io/en/latest/
License: MIT License
First of all, thank you for this project. If you want to add a note to the README, I've tested it successfully with GH actions. ๐
That said, is there any way to install Qt IFW other than the Qt libraries?
https://dev.azure.com/miurahr/github/_build/results?buildId=797
The recent py7zr change seems to be related. The stack trace looks like it fails on setting file modification times on some output files.
Example :
aqt tool --outputdor path/to/custom/tools tools_ifw 3.2.0 qt.tools.ifw.32
Current aqt has a command 'list' but it has not been implemented yet.
Here is an issue to watch implementation progress.
add command argument to specify platform and version
can download Update.xml
can display all components which can install
can display description for package
can display dependencies
With Qt 5.13, the Qt company officially ships precompiled binaries for WebAssembly. As far as I can tell, it is currently not possible to install those via aqtinstall. It would be awesome if the could be added.
Please note that wasm archives are in a different subfolder: https://download.qt.io/online/qtsdkrepository/linux_x64/desktop/qt5_5132_wasm/ . I personally think it would be best to add wasm
as a new <target>
, as that fits best with aqinstalls current semantics.
Starting with version 5.14, Android is not divided into a holistic platform. How to install it?
aqt install --outputdir /home/andrei/Qt 5.14.0 linux android
in dir /home/andrei/worker/qtBuilder/qtBuilder/build (timeout 1200 secs)
watching logfiles {}
argv: [b'aqt', b'install', b'--outputdir', b'/home/andrei/Qt', b'5.14.0', b'linux', b'android']
environment:
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
HOME=/home/andrei
LANG=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_PAPER=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_TIME=en_US.UTF-8
LESSCLOSE=/usr/bin/lesspipe %s %s
LESSOPEN=| /usr/bin/lesspipe %s
LIBVIRT_DEFAULT_URI=qemu:///system
LOGNAME=andrei
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
MAIL=/var/mail/andrei
OLDPWD=/home/andrei
PATH=/home/andrei/worker/sandbox/bin:/home/andrei/.local/bin:/home/andrei/Qt/Tools/QtInstallerFramework/3.0/bin:/home/andrei/Qt/5.12.3/gcc_64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PS1=(sandbox) \[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$
PWD=/home/andrei/worker/qtBuilder/qtBuilder/build
SHELL=/bin/bash
SHLVL=1
SSH_CLIENT=86.57.157.184 54542 22
SSH_CONNECTION=86.57.157.184 54542 192.168.100.2 22
SSH_TTY=/dev/pts/0
TERM=xterm-256color
USER=andrei
VIRTUAL_ENV=/home/andrei/worker/sandbox
XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop
XDG_RUNTIME_DIR=/run/user/1000
XDG_SESSION_ID=324
_=/home/andrei/worker/sandbox/bin/buildbot-worker
using PTY: False
Finished installation
-Downloading https://download.qt.io/online/qtsdkrepository/linux_x64/android/qt5_5140/qt.qt5.5140.android/5.14.0-0-201912110734qtbase-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z...
-Downloading https://download.qt.io/online/qtsdkrepository/linux_x64/android/qt5_5140/qt.qt5.5140.android/5.14.0-0-201912110734qtandroidextras-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z...
-Downloading https://download.qt.io/online/qtsdkrepository/linux_x64/android/qt5_5140/qt.qt5.5140.android/5.14.0-0-201912110734qtmultimedia-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z...
Redirected to new URL: http://master.qt.io/online/qtsdkrepository/linux_x64/android/qt5_5140/qt.qt5.5140.android/5.14.0-0-201912110734qtandroidextras-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z
Redirected to new URL: http://master.qt.io/online/qtsdkrepository/linux_x64/android/qt5_5140/qt.qt5.5140.android/5.14.0-0-201912110734qtmultimedia-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z
Redirected to new URL: http://master.qt.io/online/qtsdkrepository/linux_x64/android/qt5_5140/qt.qt5.5140.android/5.14.0-0-201912110734qtbase-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z
-Extracting qtandroidextras-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z...
-Downloading https://download.qt.io/online/qtsdkrepository/linux_x64/android/qt5_5140/qt.qt5.5140.android/5.14.0-0-201912110734qtgraphicaleffects-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z...
Redirected to new URL: http://master.qt.io/online/qtsdkrepository/linux_x64/android/qt5_5140/qt.qt5.5140.android/5.14.0-0-201912110734qtgraphicaleffects-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z
-Extracting qtmultimedia-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z...
-Downloading https://download.qt.io/online/qtsdkrepository/linux_x64/android/qt5_5140/qt.qt5.5140.android/5.14.0-0-201912110734qtdeclarative-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z...
-Extracting qtgraphicaleffects-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z...
-Downloading https://download.qt.io/online/qtsdkrepository/linux_x64/android/qt5_5140/qt.qt5.5140.android/5.14.0-0-201912110734qtimageformats-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z...
Redirected to new URL: http://master.qt.io/online/qtsdkrepository/linux_x64/android/qt5_5140/qt.qt5.5140.android/5.14.0-0-201912110734qtdeclarative-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z
Redirected to new URL: http://master.qt.io/online/qtsdkrepository/linux_x64/android/qt5_5140/qt.qt5.5140.android/5.14.0-0-201912110734qtimageformats-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z
-Extracting qtimageformats-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z...
-Downloading https://download.qt.io/online/qtsdkrepository/linux_x64/android/qt5_5140/qt.qt5.5140.android/5.14.0-0-201912110734qtxmlpatterns-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z...
Redirected to new URL: http://master.qt.io/online/qtsdkrepository/linux_x64/android/qt5_5140/qt.qt5.5140.android/5.14.0-0-201912110734qtxmlpatterns-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z
-Extracting qtbase-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z...
-Downloading https://download.qt.io/online/qtsdkrepository/linux_x64/android/qt5_5140/qt.qt5.5140.android/5.14.0-0-201912110734qtserialport-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z...
-Extracting qtxmlpatterns-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z...
-Downloading https://download.qt.io/online/qtsdkrepository/linux_x64/android/qt5_5140/qt.qt5.5140.android/5.14.0-0-201912110734qtquickcontrols-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z...
Redirected to new URL: http://master.qt.io/online/qtsdkrepository/linux_x64/android/qt5_5140/qt.qt5.5140.android/5.14.0-0-201912110734qtserialport-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z
Redirected to new URL: http://master.qt.io/online/qtsdkrepository/linux_x64/android/qt5_5140/qt.qt5.5140.android/5.14.0-0-201912110734qtquickcontrols-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z
-Extracting qtserialport-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z...
-Downloading https://download.qt.io/online/qtsdkrepository/linux_x64/android/qt5_5140/qt.qt5.5140.android/5.14.0-0-201912110734qt3d-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z...
-Extracting qtdeclarative-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z...
-Downloading https://download.qt.io/online/qtsdkrepository/linux_x64/android/qt5_5140/qt.qt5.5140.android/5.14.0-0-201912110734qtscxml-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z...
Redirected to new URL: http://master.qt.io/online/qtsdkrepository/linux_x64/android/qt5_5140/qt.qt5.5140.android/5.14.0-0-201912110734qt3d-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z
-Extracting qtquickcontrols-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z...
-Downloading https://download.qt.io/online/qtsdkrepository/linux_x64/android/qt5_5140/qt.qt5.5140.android/5.14.0-0-201912110734qtspeech-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z...
Redirected to new URL: http://master.qt.io/online/qtsdkrepository/linux_x64/android/qt5_5140/qt.qt5.5140.android/5.14.0-0-201912110734qtscxml-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z
Redirected to new URL: http://master.qt.io/online/qtsdkrepository/linux_x64/android/qt5_5140/qt.qt5.5140.android/5.14.0-0-201912110734qtspeech-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z
-Extracting qtspeech-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z...
-Extracting qtscxml-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z...
-Extracting qt3d-Linux-RHEL_7_6-Clang-Android-Android_ANY-Multi.7z...
Traceback (most recent call last):
File "/home/andrei/.local/bin/aqt", line 9, in <module>
sys.exit(main())
File "/home/andrei/.local/lib/python3.6/site-packages/aqt/__init__.py", line 28, in main
return cli.run()
File "/home/andrei/.local/lib/python3.6/site-packages/aqt/cli.py", line 218, in run
args.func(args)
File "/home/andrei/.local/lib/python3.6/site-packages/aqt/cli.py", line 118, in run_install
logging=self.logger).install(command=sevenzip, target_dir=output_dir)
File "/home/andrei/.local/lib/python3.6/site-packages/aqt/installer.py", line 104, in install
ret_arr = p.map(functools.partial(self.retrieve_archive, command=command, path=base_dir), archives)
File "/usr/lib/python3.6/multiprocessing/pool.py", line 266, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/usr/lib/python3.6/multiprocessing/pool.py", line 644, in get
raise self._value
File "/usr/lib/python3.6/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.6/multiprocessing/pool.py", line 44, in mapstar
return list(map(*args))
File "/home/andrei/.local/lib/python3.6/site-packages/aqt/installer.py", line 90, in retrieve_archive
run([command, 'x', '-aoa', '-bd', '-y', '-o{}'.format(path), archive])
File "/usr/lib/python3.6/subprocess.py", line 423, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '7zr': '7zr'
program finished with exit code 1
elapsedTime=27.115227
log updated
It is not just fials but generating traceback. It should be more graceful when connection failed.
Log:
Traceback (most recent call last):
File "/home/vsts/work/1/s/aqtinst", line 7, in <module>
sys.exit(main())
File "/home/vsts/work/1/s/aqt/__init__.py", line 59, in main
QtInstaller(QtArchives(os_name, qt_version, target, arch)).install()
File "/home/vsts/work/1/s/aqt/installer.py", line 79, in install
p.map(self.retrieve_archive, archives)
File "/opt/hostedtoolcache/Python/2.7.15/x64/lib/python2.7/multiprocessing/pool.py", line 253, in map
return self.map_async(func, iterable, chunksize).get()
File "/opt/hostedtoolcache/Python/2.7.15/x64/lib/python2.7/multiprocessing/pool.py", line 572, in get
raise self._value
requests.exceptions.ConnectionError: HTTPConnectionPool(host='mirrors.tuna.tsinghua.edu.cn', port=80): Max retries exceeded with url: /qt/online/qtsdkrepository/linux_x64/desktop/qt5_5121/qt.qt5.5121.qtdatavis3d.gcc_64/5.12.1-0-201901300517qtdatavis3d-Linux-RHEL_7_4-GCC-Linux-RHEL_7_4-X86_64.7z (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8f7e347dd0>: Failed to establish a new connection: [Errno 101] Network is unreachable',))
Update: current state of aqt on travis/windows is here: https://travis-ci.org/ElderOrb/QtTravisTest
Running latest master branch (v0.4.2) on windows 10.
Steps to reproduce
In powershell:
python -m aqt install 5.12.4 windows desktop win64_msvc2017_64
Expected behavior
Everything should be installed without any problems.
Actual behavior
Build fails, see
stack_trace.txt
I did some investigating regarding why this exception appears. It seems that a few of the .7z files are redirects. In retrieve_archive() in installer.py we allow for one redirect, however, in some cases the redirect is also a redirect.
I solved this by setting allow_redirects=False
to True in r = requests.get(url, stream=True, allow_redirects=False)
Is there a reason why redirects are not allowed?
Hey there. Great tool you wrote here! Any plans on marking v0.6a2 as a pre-release yet?
Utilize pycurl to allow connect through proxy which need authentication.
It may be better to add command line switch for it.
Qt ask valid ID for downloading binaries, it may break aqtinstall.
As seen in #22, and seen in #20 (comment), there seems to be intermittent issues with the https://download.qt.io/online/qtsdkrepository/
URL that's currently hardcoded in.
I'm not sure what's going on, but it might be worth allowing an option or environment variable to set this to a different URL. Setting this to UC Berkeley's mirror at http://mirrors.ocf.berkeley.edu/qt/online/qtsdkrepository/ seems to be more reliable for me. It shouldn't be the default though, but it might be worth having an option to set it to that if the user desires so.
There is no active reason to YAML for logging configuraiton.
By using ini file, we can drop dependency for pyyaml.
logging configuration has just been included in v0.5 then it might have not been heavily used yet.
Each Qt platform/version package consists of the primary package, as well as a few extra modules (like webengine or technical previews). It would be great if one could select explicitly which of those to install.
When using under a proxy with authentication, connection become failure with 407, authentication required.
It is because standard urllib in python have a known issue not to support https through proxy with authentication.
With Qt 5.14.0 , qconfig/pri become as follows:
QT_ARCH = x86_64
QT_BUILDABI = x86_64-little_endian-lp64
QT.global.enabled_features = shared rpath c++11 c++14 c99 c11 thread future concurrent pkg-config separate_debug_info signaling_nan
QT.global.disabled_features = cross_compile framework appstore-compliant debug_and_release simulator_and_device build_all c++1z c++2a force_asserts static
QT_CONFIG += shared rpath release c++11 c++14 concurrent dbus reduce_exports reduce_relocations separate_debug_info stl
CONFIG += shared release
QT_VERSION = 5.14.0
QT_MAJOR_VERSION = 5
QT_MINOR_VERSION = 14
QT_PATCH_VERSION = 0
QT_GCC_MAJOR_VERSION = 5
QT_GCC_MINOR_VERSION = 3
QT_GCC_PATCH_VERSION = 1
QT_EDITION = OpenSource
QT_LICHECK = licheck64
QT_RELEASE_DATE = 2019-11-08
it should be
QT_EDITION = OpenSource
QT_LICHECK =
The PRs I have open now are a bit of a mess because I haven't had time to sort out the merge conflicts in the generated artifacts.
It's not good to commit generated artifacts.
But if I implement the above linked approach, we should be able to get rid of the generated yaml workflow that must be done pre-commit.
Hello, I'm running a github action to install Qt using https://github.com/jurplel/install-qt-action that uses aqtinstall. Today it started failing with missing "yaml" dependency.
This is the section of the log from the build:
`2019-11-16T23:46:53.9834280Z [command]pip3 install aqtinstall
2019-11-16T23:46:55.0888580Z Collecting aqtinstall
2019-11-16T23:46:55.1390690Z Downloading https://files.pythonhosted.org/packages/3b/1f/0e524bc3f88aef6486b74aabcf8e2e124d6fc29429b463b6d73ac8674173/aqtinstall-0.5.1-py2.py3-none-any.whl
2019-11-16T23:46:55.1943150Z Collecting py7zr
2019-11-16T23:46:55.2003450Z Downloading https://files.pythonhosted.org/packages/ce/51/cac74f941fa42f483605536bab67c30755e6fa42a9eb909cd0f7d3318a9f/py7zr-0.4.1-py3-none-any.whl
2019-11-16T23:46:55.3388480Z Collecting requests
2019-11-16T23:46:55.3498650Z Downloading https://files.pythonhosted.org/packages/51/bd/23c926cd341ea6b7dd0b2a00aba99ae0f828be89d72b2190f27c11d4b7fb/requests-2.22.0-py2.py3-none-any.whl (57kB)
2019-11-16T23:46:55.4108900Z Collecting six
2019-11-16T23:46:55.4213330Z Downloading https://files.pythonhosted.org/packages/65/26/32b8464df2a97e6dd1b656ed26b2c194606c16fe163c695a992b36c11cdf/six-1.13.0-py2.py3-none-any.whl
2019-11-16T23:46:55.4666070Z Collecting chardet<3.1.0,>=3.0.2
2019-11-16T23:46:55.4757400Z Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
2019-11-16T23:46:55.5434390Z Collecting idna<2.9,>=2.5
2019-11-16T23:46:55.5506500Z Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB)
2019-11-16T23:46:55.6381030Z Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
2019-11-16T23:46:55.6441500Z Downloading https://files.pythonhosted.org/packages/b4/40/a9837291310ee1ccc242ceb6ebfd9eb21539649f193a7c8c86ba15b98539/urllib3-1.25.7-py2.py3-none-any.whl (125kB)
2019-11-16T23:46:55.7360840Z Collecting certifi>=2017.4.17
2019-11-16T23:46:55.7447140Z Downloading https://files.pythonhosted.org/packages/18/b0/8146a4f8dd402f60744fa380bc73ca47303cccf8b9190fd16a827281eac2/certifi-2019.9.11-py2.py3-none-any.whl (154kB)
2019-11-16T23:46:55.8013500Z Installing collected packages: py7zr, chardet, idna, urllib3, certifi, requests, six, aqtinstall
2019-11-16T23:46:56.4280560Z Successfully installed aqtinstall-0.5.1 certifi-2019.9.11 chardet-3.0.4 idna-2.8 py7zr-0.4.1 requests-2.22.0 six-1.13.0 urllib3-1.25.7
2019-11-16T23:46:56.6102560Z [command]python3 -m aqt install -O /Users/runner/runners/2.160.2/work/ts 5.12.5 mac desktop
2019-11-16T23:46:56.7440920Z Traceback (most recent call last):
2019-11-16T23:46:56.7474380Z File "/Users/runner/hostedtoolcache/Python/3.7.5/x64/lib/python3.7/runpy.py", line 183, in _run_module_as_main
2019-11-16T23:46:56.7476200Z mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
2019-11-16T23:46:56.7476980Z File "/Users/runner/hostedtoolcache/Python/3.7.5/x64/lib/python3.7/runpy.py", line 142, in _get_module_details
2019-11-16T23:46:56.7484520Z return _get_module_details(pkg_main_name, error)
2019-11-16T23:46:56.7492620Z File "/Users/runner/hostedtoolcache/Python/3.7.5/x64/lib/python3.7/runpy.py", line 109, in _get_module_details
2019-11-16T23:46:56.7546670Z import(pkg_name)
2019-11-16T23:46:56.7576070Z File "/Users/runner/hostedtoolcache/Python/3.7.5/x64/lib/python3.7/site-packages/aqt/init.py", line 23, in
2019-11-16T23:46:56.7595650Z from aqt.cli import Cli
2019-11-16T23:46:56.7623250Z File "/Users/runner/hostedtoolcache/Python/3.7.5/x64/lib/python3.7/site-packages/aqt/cli.py", line 31, in
2019-11-16T23:46:56.7630970Z import yaml
2019-11-16T23:46:56.7660170Z ModuleNotFoundError: No module named 'yaml'
2019-11-16T23:46:56.7689100Z ##[error]The process 'python3' failed with exit code 1`
Thanks
Bill
I may get to take a stab at this tomorrow, but I like to put tickets in sooner than later in case someone sees them and already knows something useful.
I don't know where the error lies but even if it's with Qt it might be worth just resolving the path before giving it to the Qt installer. And that vague theory may even give away some complete lack of understanding of aqtinstall as I haven't looked at the code yet. :]
After running with a relative path specified:
$ venv/bin/aqt install --outputdir qt 5.14.1 linux desktop gcc_64
The symlinks use relative paths and are broken:
$ ll qt/5.14.1/gcc_64/lib/libQt5Desi*
-rw-r--r-- 1 altendky altendky 881 Jan 23 12:32 qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.la
-rw-r--r-- 1 altendky altendky 1.6K Jan 24 02:20 qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.prl
lrwxrwxrwx 1 altendky altendky 55 Feb 8 23:31 qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so -> qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so.5.14.1
lrwxrwxrwx 1 altendky altendky 55 Feb 8 23:31 qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so.5 -> qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so.5.14.1
lrwxrwxrwx 1 altendky altendky 55 Feb 8 23:31 qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so.5.14 -> qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so.5.14.1
-rwxr-xr-x 1 altendky altendky 3.5M Jan 23 12:29 qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so.5.14.1*
-rw-r--r-- 1 altendky altendky 768 Jan 23 12:32 qt/5.14.1/gcc_64/lib/libQt5Designer.la
-rw-r--r-- 1 altendky altendky 1.5K Jan 24 02:20 qt/5.14.1/gcc_64/lib/libQt5Designer.prl
lrwxrwxrwx 1 altendky altendky 45 Feb 8 23:31 qt/5.14.1/gcc_64/lib/libQt5Designer.so -> qt/5.14.1/gcc_64/lib/libQt5Designer.so.5.14.1
lrwxrwxrwx 1 altendky altendky 45 Feb 8 23:31 qt/5.14.1/gcc_64/lib/libQt5Designer.so.5 -> qt/5.14.1/gcc_64/lib/libQt5Designer.so.5.14.1
lrwxrwxrwx 1 altendky altendky 45 Feb 8 23:31 qt/5.14.1/gcc_64/lib/libQt5Designer.so.5.14 -> qt/5.14.1/gcc_64/lib/libQt5Designer.so.5.14.1
-rwxr-xr-x 1 altendky altendky 5.9M Jan 23 12:25 qt/5.14.1/gcc_64/lib/libQt5Designer.so.5.14.1*
After running with the full path specified:
$ rm -rf qt; venv/bin/aqt install --outputdir $PWD/qt 5.14.1 linux desktop gcc_64
The symlinks use full paths and work:
$ ll qt/5.14.1/gcc_64/lib/libQt5Desi*
-rw-r--r-- 1 altendky altendky 881 Jan 23 12:32 qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.la
-rw-r--r-- 1 altendky altendky 1.6K Jan 24 02:20 qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.prl
lrwxrwxrwx 1 altendky altendky 88 Feb 8 23:30 qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so -> /home/altendky/repos/pyqt5-tools/qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so.5.14.1*
lrwxrwxrwx 1 altendky altendky 88 Feb 8 23:30 qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so.5 -> /home/altendky/repos/pyqt5-tools/qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so.5.14.1*
lrwxrwxrwx 1 altendky altendky 88 Feb 8 23:30 qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so.5.14 -> /home/altendky/repos/pyqt5-tools/qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so.5.14.1*
-rwxr-xr-x 1 altendky altendky 3.5M Jan 23 12:29 qt/5.14.1/gcc_64/lib/libQt5DesignerComponents.so.5.14.1*
-rw-r--r-- 1 altendky altendky 768 Jan 23 12:32 qt/5.14.1/gcc_64/lib/libQt5Designer.la
-rw-r--r-- 1 altendky altendky 1.5K Jan 24 02:20 qt/5.14.1/gcc_64/lib/libQt5Designer.prl
lrwxrwxrwx 1 altendky altendky 78 Feb 8 23:30 qt/5.14.1/gcc_64/lib/libQt5Designer.so -> /home/altendky/repos/pyqt5-tools/qt/5.14.1/gcc_64/lib/libQt5Designer.so.5.14.1*
lrwxrwxrwx 1 altendky altendky 78 Feb 8 23:30 qt/5.14.1/gcc_64/lib/libQt5Designer.so.5 -> /home/altendky/repos/pyqt5-tools/qt/5.14.1/gcc_64/lib/libQt5Designer.so.5.14.1*
lrwxrwxrwx 1 altendky altendky 78 Feb 8 23:30 qt/5.14.1/gcc_64/lib/libQt5Designer.so.5.14 -> /home/altendky/repos/pyqt5-tools/qt/5.14.1/gcc_64/lib/libQt5Designer.so.5.14.1*
-rwxr-xr-x 1 altendky altendky 5.9M Jan 23 12:25 qt/5.14.1/gcc_64/lib/libQt5Designer.so.5.14.1*
- name: Install Qt
uses: jurplel/[email protected]
with:
modules: qtcharts
version: 5.9
qtcharts
will not been installed
I can only find the module download link and fetch it with curl๐:
curl -o qtcharts.7z -L https://download.qt.io/online/qtsdkrepository/mac_x64/desktop/qt5_59/qt.59.qtcharts.clang_64/5.9.0-0-201705291821qtcharts-MacOS-OSX_10_10-Clang-MacOS-OSX_10_10-X86_64.7z
7za x qtcharts.7z
Is there any way to include specific modules like QCharts into the install process?
Now only install behavior is implemented but it is better to add more feature like listing supported versions.
It is better to introduce subcommand such as;
$ aqt list versions
5.12.1
5.11.3
...
$ aqt install 5.9.7 linux desktop
$
Here is a design issue thread for a next syntax.
How to install desktop qt with all extra modules?
I want to install the full version of qt with all the additional modules that it has at the moment.
example:
aqt install --outputdir /opt 5.14.0 linux desktop -m all
or
aqt install --outputdir /opt 5.14.0 linux desktop -m *
Thanks.
It is neccesary to rebranding because of renovation going.
project name: aqt: Another Qt installer
Now test code in C++ to check compilation is a major part of repository volume.
It may be better to download it from Qt repository in testing time, or replace it with very simple one.
Aqtinstall now uses requests and thread model for concurrent downloads.
It consumes more resources than python3 asyncio coroutines.
After python2.7 becomes EOL, we can move to asyncio on Python3.
If qli-installer depends on pylzma wropper for liblzma to support 7z decompression, it is better to support installation with pip.
When calling e.g.
C:\> aqt install --outputdir c:\Qt 5.11.3 windows desktop win64_msvc2017_64
I would expect the installed files (according to the readme) to end up in C:\Qt\5.11.3
. However, I find them in C:\Qt\Qt5.11.3\5.11.3
- not sure if that's intended behavior (then it should probably be stated in the readme) or a bug?
Suggestioned here.
jurplel/install-qt-action#10
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.