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

PySide2 with Pipfile: cross-platform issues with CI snapshots

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 5.9, 5.11.0, dev
    • Fix Version/s: 5.11.1
    • Component/s: PySide
    • Labels:
      None
    • Commits:
      f3b87fead2d4cb2a790f0709080551e252d5a46c

      Description

      On behalf of Fredrik Averpil

      I recently started using pipenv instead of requirements.txt, and I can use this just fine with pyside2 by specifying it like so in my Pipfile:

      [source]
      url = "https://download.qt.io/snapshots/ci/pyside/5.9/latest"
      verify_ssl = true
      name = “qt"
      
      "pyside2" = {version = "*", index = "qt”}
      
      [pipenv]
      allow_prereleases = true
      

      I run pipenv install —pre and then I lock using pipenv lock --pre. Everything works just nicely from my Windows machine.

      I then add Pipfile and Pipfile.lock to source control and move onto my macOS machine. When I, on the mac, run pipenv install —pre I get an error that a matching version of pyside2 cannot be found.

      $ pipenv install --pre
      Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creatingits own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead.
      Installing dependencies from Pipfile.lock (e8b8a1)…
      Ignoring colorama: markers 'sys_platform == "win32"' don't match your environment
      Looking in indexes: https://pypi.org/simple, https://download.qt.io/snapshots/ci/pyside/5.9/latest
      An error occurred while installing pyside2==5.9.0a1.dev1527520955! Will try again.
      An error occurred while installing pywin32==223! Will try again.
      
      Installing initially–failed dependencies…
      Looking in indexes: https://pypi.org/simple, https://download.qt.io/snapshots/ci/pyside/5.9/latest
      Collecting pyside2==5.9.0a1.dev1527520955
      
        Could not find a version that satisfies the requirement pyside2==5.9.0a1.dev1527520955 (from -r /var/folders/x_/9m412y9n5zv1rb339qfhhfs00000gn/T/pipenv-d51kgvn1-requirements/pipenv-un_w1nyl-requirement.txt (line 1)) (from versions: 5.9.0a1.dev1525348214, 5.9.0a1.dev1526392879, 5.9.0a1.dev1526570571, 5.9.0a1.dev1526650794, 5.9.0a1.dev1526973088, 5.9.0a1.dev1527073779, 5.9.0a1.dev1527166499, 5.9.0a1.dev1527287819, 5.9.0a1.dev1527520119)
      No matching distribution found for pyside2==5.9.0a1.dev1527520955 (from -r /var/folders/x_/9m412y9n5zv1rb339qfhhfs00000gn/T/pipenv-d51kgvn1-requirements/pipenv-un_w1nyl-requirement.txt (line 1))
      
       
      

      When I go look inside of http://download.qt.io/snapshots/ci/pyside/5.9/latest/pyside2/ I can see that on Windows, the wheel named 5.9.0a1.dev1527520955 got installed. For macOS, there is no such wheel available. Instead, on macOS, the wheel is called 5.9.0a1.dev1527520119.

      When I go into other folders (not the "latest" one), I can see all wheels are using unique numberings.

      I'm guessing that this is a problem when using pipenv/Pipfile but I don't know if this is just because of the CI and that maybe this is not how the naming will be done once PySide2 goes stable and is officially released... but I wanted to raise a flag well in time for that about this issue - so the wheel naming will be adressed in time for tech preview/release.

      I believe this applies to all branches of PySide2, not just the 5.9 one which I tagged here.

        Attachments

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

          Activity

            People

            Assignee:
            crmaurei Cristian Maureira-Fredes
            Reporter:
            crmaurei Cristian Maureira-Fredes
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes