Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

No PySide2 for Python3.8?



  • I'm interested to try the Qt For Python bindings (the artist formerly known as PySide), but there doesn't appear to be a version for Python 3.8. Or is there? I've just gotten Python 3.8 running on Windows, and it was a distasteful process. I don't really want to downgrade to 3.7 if I don't have to.

    Does anyone know if there's a release for Python 3.8 and I'm too dense to find it? Or do I indeed need to downgrade Python?


  • Banned

    Cannot say for sure but what I can say is that PySide2 is going to always be behind when it comes to changes to Python and/or Qt -- as that is just that nature of that beast

    On the flip-side I would suggest shying away from Python 3.8 until at least 6 months from its release date to up to 12 months as that gives it time to be beta tested by those that have to use it -- however if you are part of that beta group I feel for you ;)


  • Banned

    Cannot say for sure but what I can say is that PySide2 is going to always be behind when it comes to changes to Python and/or Qt -- as that is just that nature of that beast

    On the flip-side I would suggest shying away from Python 3.8 until at least 6 months from its release date to up to 12 months as that gives it time to be beta tested by those that have to use it -- however if you are part of that beta group I feel for you ;)


  • Lifetime Qt Champion

    @bundito Try to install PySide2 using pip tool (if your Python setup contains pip.exe):

    c:\python3\scripts\pip.exe install PySide2
    

    See https://wiki.qt.io/Qt_for_Python



  • @bundito
    Just a comment: I do not know what the differences are from Python 3.7 to 3.8, but is there not a fair chance that the current version of PySide2 will work successfully with Python 3.8?



  • Thanks for the suggestions, everyone, but even after looking at the git sources, there does not appear to be a Python 3.8 version. I rejiggered everything and installed Python 3.7.5 instead.

    Instead, I'll just level a low-octane gripe at the Qt4Py "Getting Started" page. It simply says "Python 3.5+"

    I was setting up a fresh environment, so I did like I've done with so many other things, and grabbed the latest stable release, which is Python 3.8.

    @jsulm: I do have pip (couldn't work without it), but when I tried to run it against Python 3.8, I got an error about no release matching my distribution - or something to that effect.

    Anyway, aside from that minor bit of wording on the front page, I've gotten a demo QWidget to run - now I just have to try and remember how all these Qt LEGOs fit together. It's been a while (early Qt5) since I was doing this regularly...

    Thanks for all the help!



  • @Denni-0 - Yep, see below. I rolled back to Python 3.7.5 and all is good. Just want to make sure I can give you credit for the solution.


  • Banned

    @bundito well thanks but been around a very long time in the software industry that is just a general rule by most folks in the know -- basically unless you have to deal with the "new release" its always better to lag behind by a release or two until they actually finally "stablize" that so-called stable version -- still all-in-all it is a bit better in some ways than it used to be just some thing do not change much -- especially when quality software testing and quality documentation are both generally secondary endeavors even though it has have been proven that in general if the bug is caught by the programmer it costs X to fix it, if caught by the code reviewer (programmer) it costs 2X, if caught by the quality testers it costs 5X, and if not caught until the customer gets it costs 10X -- so the sooner it is found the least it costs to fix -- in resources and time which in turn equate to money



  • Oh there is something on the main docs page now:

    ***: 5.14 will not work on Windows with Python 3.8.0, please use Python 3.8.1 or greater.

    I just used the web-installer from the downloads to update.
    Works! ✔😃



  • On Python 3.8.1, pip failed but I could install PySide2 using pip3.8.exe instead

    ..\Python38\Scripts>pip3.8.exe install PySide2
    

Log in to reply