Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2587

Pysyde Wheels of the maintenance tool follow unsupported naming scheme

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.x
    • Other
    • None

    Description

      You cannot use pip to install the wheels of the maintenance tool py passing a package name and a version to pip.

      You either run into

      (foo) C:\tmp\venv\foo>pip install PySide6==6.6.1+commercial --no-index --find-links=C:\qt\QtForPython\6.6.1\
      Looking in links: c:\qt\QtForPython\6.6.1\
      ERROR: Could not find a version that satisfies the requirement PySide6==6.6.1+commercial (from versions: 6.6.1.commercial)
      ERROR: No matching distribution found for PySide6==6.6.1+commercial
      

      or:

      (foo) C:\tmp\venv\foo>pip install PySide6==6.6.1.commercial --no-index --find-links=C:\qt\QtForPython\6.6.1\
      Looking in links: c:\qt\QtForPython\6.6.1\
      Processing c:\qt\qtforpython\6.6.1\pyside6-6.6.1.commercial-cp38-abi3-win_amd64.whl
      WARNING: Discarding file:///C:/Qt/QtForPython/6.6.1/PySide6-6.6.1.commercial-cp38-abi3-win_amd64.whl. Requested PySide6==6.6.1.commercial from file:///C:/Qt/QtForPython/6.6.1/PySide6-6.6.1.commercial-cp38-abi3-win_amd64.whl has inconsistent version: filename has '6.6.1.commercial', but metadata has '6.6.1+commercial'
      ERROR: Could not find a version that satisfies the requirement PySide6==6.6.1.commercial (from versions: 6.6.1.commercial)
      ERROR: No matching distribution found for PySide6==6.6.1.commercial
      

      I understood that the + is required according to PEP 440 but in that case the file names need to be adjusted to also contain a + instead of the .

      If I rename all wheels manually from .commercial to +commercial

      pip install PySide6==6.6.1+commercial --no-index --find-links=C:\qt\QtForPython\6.6.1\
      

      succeeds.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            davschul David Schulz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes