Repository: miurahr/aqtinstall

Issue #632: ERROR: Detected a package name collision
Created: 2023-01-06T13:46:34Z
This bug happened to me when I added qthttpserver to an installation. Without qthttpserver everything installs fine.
List cmd:
$ aqt list-qt linux desktop --modules 6.4.2 gcc_64
debug_info qt3d qt5compat qtcharts qtconnectivity qtdatavis3d qthttpserver qtimageformats qtlanguageserver qtlottie qtmultimedia qtnetworkauth qtpdf qtpositioning qtquick3d qtquick3dphysics qtquicktimeline qtremoteobjects qtscxml qtsensors qtserialbus qtserialport qtshadertools qtspeech qtvirtualkeyboard qtwaylandcompositor qtwebchannel qtwebengine qtwebsockets qtwebview
Install cmd:
$ aqt install-qt -O /opt/Qt linux desktop 6.4.2 gcc_64 --m qt5compat qtcharts qthttpserver qtimageformats qtlottie qtmultimedia qtquicktimeline qtspeech qtwebchannel qtwebsockets qthttpserver
INFO    : aqtinstall(aqt) v3.1.0 on Python 3.10.6 [CPython GCC 11.3.0]
WARNING : Specified Qt version is unknown: 6.4.2.
ERROR   : Detected a package name collision
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/aqt/installer.py", line 177, in run
args.func(args)
File "/usr/local/lib/python3.10/dist-packages/aqt/installer.py", line 400, in run_install_qt
qt_archives: QtArchives = retry_on_bad_connection(
File "/usr/local/lib/python3.10/dist-packages/aqt/helper.py", line 165, in retry_on_bad_connection
return function(base_url)
File "/usr/local/lib/python3.10/dist-packages/aqt/installer.py", line 401, in 
lambda base_url: QtArchives(
File "/usr/local/lib/python3.10/dist-packages/aqt/archives.py", line 300, in init
self._get_archives()
File "/usr/local/lib/python3.10/dist-packages/aqt/archives.py", line 365, in _get_archives
self.get_archives_base(f"qt{self.version.major}{self._version_str()}{self._arch_ext()}", self._target_packages())
File "/usr/local/lib/python3.10/dist-packages/aqt/archives.py", line 361, in _target_packages
target_packages.add(module, package_names)
File "/usr/local/lib/python3.10/dist-packages/aqt/archives.py", line 94, in add
assert package_name not in self._packages_to_modules, "Detected a package name collision"
AssertionError: Detected a package name collision
ERROR   : aqtinstall(aqt) v3.1.0 on Python 3.10.6 [CPython GCC 11.3.0]
Working dir: /
Arguments: ['/usr/local/bin/aqt', 'install-qt', '-O', '/opt/Qt', 'linux', 'desktop', '6.4.2', 'gcc_64', '--m', 'qt5compat', 'qtcharts', 'qthttpserver', 'qtimageformats', 'qtlottie', 'qtmultimedia', 'qtquicktimeline', 'qtspeech', 'qtwebchannel', 'qtwebsockets', 'qthttpserver'] Host: uname_result(system='Linux', node='4a4d7c6111e3', release='5.15.0-53-generic', version='#59-Ubuntu SMP Mon Oct 17 18:53:30 UTC 2022', machine='x86_64')
===========================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.

Duplicate issue #675: Install fail for the qt6.5.0 of msvc 
Created: 2023-05-04T08:38:52Z
Run jurplel/install-qt-action@v3
with:
dir: D:\a\RabbitCommon\RabbitCommon.cache\tools\qt
version: 6.5.0
arch: win64_msvc2019_64
modules: qtwebengine qtscxml qtwebengine
target: desktop
install-deps: true
cache-key-prefix: install-qt-action
setup-python: true
set-env: true
tools-only: false
aqtversion: ==2.1.*
py7zrversion: ==0.19.*
env:
SOURCE_DIR: D:\a\RabbitCommon\RabbitCommon.cache\source
TOOSL_DIR: D:\a\RabbitCommon\RabbitCommon.cache\tools
INSTALL_DIR: D:\a\RabbitCommon\RabbitCommon.cache\install_msvc_x64-windows_Debug
CMAKE_GENERATOR: Visual Studio 17 2022
VCPKG_PLATFORM_TOOLSET: v142
CMAKE_GENERATOR_PLATFORM: x64
RabbitCommon_VERSION: v1.0.12
VCPKGGITCOMMITID: 9c7c66471005cb132832786d5d65d83d2cf503ad
qt_modules: qtwebengine qtscxml qtwebengine
artifact_name: build_msvc
Run actions/setup-python@v4
with:
python-version: 3.6.x - 3.11.x
check-latest: false
token: ***
update-environment: true
allow-prereleases: false
env:
SOURCE_DIR: D:\a\RabbitCommon\RabbitCommon.cache\source
TOOSL_DIR: D:\a\RabbitCommon\RabbitCommon.cache\tools
INSTALL_DIR: D:\a\RabbitCommon\RabbitCommon.cache\install_msvc_x64-windows_Debug
CMAKE_GENERATOR: Visual Studio 17 2022
VCPKG_PLATFORM_TOOLSET: v142
CMAKE_GENERATOR_PLATFORM: x64
RabbitCommon_VERSION: v1.0.12
VCPKGGITCOMMITID: 9c7c66471005cb132832786d5d65d83d2cf503ad
qt_modules: qtwebengine qtscxml qtwebengine
artifact_name: build_msvc
Installed versions
Successfully set up CPython (3.11.3)
Run jurplel/install-qt-action/action@v3
with:
assert package_name not in self._packages_to_modules, "Detected a package name collision"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Detected a package name collision
aqtinstall(aqt) v2.1.0 on Python 3.11.3 [CPython MSC v.1934 64 bit (AMD64)]
Working dir: D:\a\RabbitCommon\RabbitCommon
Arguments: ['C:\\hostedtoolcache\\windows\\Python\\3.11.3\\x64\\Lib\\site-packages\\aqt\\__main__.py', 'install-qt', 'windows', 'desktop', '6.5.0', 'win64_msvc2019_64', '--outputdir', 'D:\\a\\RabbitCommon\\RabbitCommon\\.cache\\tools\\qt/Qt', '--modules', 'qtwebengine', 'qtscxml', 'qtwebengine'] Host: uname_result(system='Windows', node='fv-az449-794', release='10', version='10.0.20348', 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.

Closing comment (2023-05-04T10:48:25Z): Duplicates #632 #644. Fixed in v3.1.1.
Please use a newer version of aqtinstall, or don't write qtwebengine twice in your list of modules.