jurplel / install-qt-action

Install Qt on your Github Actions workflows with just one simple action
MIT License
459 stars 78 forks source link

install on windows failed. it succeed before. error: Specified Qt version is unknown #143

Closed xiaoyifang closed 2 years ago

xiaoyifang commented 2 years ago
      - name: Install Qt
        uses: jurplel/install-qt-action@v3
        with:
          # Version of Qt to install
          version: 6.2.3
          arch: win64_msvc2019_64
          cached: 'false'
          modules: qtwebengine qtwebchannel qtpositioning qt5compat qtmultimedia

error

aqtinstall(aqt) v2.0.0 on Python 3.10.2 [CPython MSC v.1929 64 bit (AMD64)]
Specified Qt version is unknown: 6.2.3.
xiaoyifang commented 2 years ago

seems only temporary ,closed

pzhlkj6612 commented 2 years ago

Hi.

Specified Qt version is unknown: 6.2.3.

I think this is not an error, but just a warning. Let's read the source code of aqtinstall.

aqtinstall/installer.py#L269-L270 at v2.0.0 · miurahr/aqtinstall:

        if not self._check_qt_arg_versions(qt_version):
            self.logger.warning("Specified Qt version is unknown: {}.".format(qt_version))

aqtinstall/installer.py#L130-L131 at v2.0.0 · miurahr/aqtinstall:

    def _check_qt_arg_versions(self, version):
        return version in Settings.available_versions

aqtinstall/helper.py#L259-L261 at v2.0.0 · miurahr/aqtinstall:

    @property
    def available_versions(self):
        return self._combinations["versions"]

aqtinstall/helper.py#L226-L231 at v2.0.0 · miurahr/aqtinstall:

    def load_settings(self, file=None):
        with open(
            os.path.join(os.path.dirname(__file__), "combinations.json"),
            "r",
        ) as j:
            self._combinations = json.load(j)[0]

aqtinstall/combinations.json#L812-L860 at v2.0.0 · miurahr/aqtinstall:

    "versions": [

      "6.2.0"
    ]

There is no "6.2.3", so that warning shows. The "combinations.json" file is just a manifest that is parsed from the Qt online repository. It will be updated by CI in miurahr/aqtinstall frequently, but all released versions of aqtinstall apparently would not receive any updates.

pzhlkj6612 commented 2 years ago

Hi @xiaoyifang , would you mind renaming this issue to the following?

install on windows failed. it succeed before. error: Specified Qt version is unknown

I think this may help other people to find the explanation I posted by searching the "Specified Qt version is unknown" sentence or words in it.

xiaoyifang commented 2 years ago

changed.