Official PySide2 wheels!

The Qt Company has released official and pip-installable PySide2 wheel snapshots! Simo posted the details today on the PySide mailing list, but in a nutshell: pip install --index-url=http://download.qt.io/snapshots/ci/pyside/5.9/latest/ pyside2 --trusted-host download.qt.io Update 2018-04-05: official docs are now also online at https://doc-snapshots.qt.io/qtforpython/ Update 2018-07-17: PySide2 can now be installed from pypi.org: pip install PySide2!

March 9, 2018 · 1 min

Standalone PySide2 wheels

The Qt Company has yet to release official, standalone and pip-installable PySide2 wheels. However, since they made it possible to build standalone wheels successfully, I’m now building such unofficial, standalone wheels here using free CI services (thanks Travis and AppVeyor!): fredrikaverpil/pyside2-windows fredrikaverpil/pyside2-macos fredrikaverpil/pyside2-linux Update 2018-03-09: The Qt Company now offers official and standalone wheels, read more here: 2018-03-09-official-pyside2-wheels Update 2018-07-17: PySide2 can now be installed from pypi.org: pip install PySide2!...

February 20, 2018 · 2 min

Contributing to PySide2

This is reminder-to-self about how to get set up and contribute to PySide2 using Gerrit. It could also be a fun read “on the bus” before actually setting this up yourself, to get an overview on what’s required to get up and running with Gerrit. Disclaimer: I discourage you to blindly follow these highly personal notes without reading through the official docs when you actually get set up yourself. Anything can be changed in the official docs at any time, which isn’t reflected here....

September 30, 2017 · 4 min

Qt.py on conda-forge

Qt.py is now available on conda-forge! # Enable conda-forge conda config --add channels conda-forge # Create environment with Python 3.6, PySide2 and Qt.py conda create --mkdir --prefix ~/condaenvs/myenv python=3.6 pyside2 qt.py # Run Python ~/condaenvs/myenv/bin/python --version # Run pip ~/condaenvs/myenv/bin/pip --version

August 29, 2017 · 1 min

PySide2 easy install!

Yesterday, @jschueller added pyside2-feedstock to conda-forge. This means we can now finally install PySide2 easily in Python 2.7, 3.5 and 3.6 on Windows, Linux and macOS using conda. # Enable conda-forge conda config --add channels conda-forge # Install PySide2 conda install pyside2 And. It. Frickin’. Just. Works. Update 2018-03-09: The Qt Company now offers official and standalone wheels, read more here: 2018-03-09-official-pyside2-wheels Update 2018-07-17: PySide2 can now be installed from pypi....

August 28, 2017 · 2 min

An alternative to building PySide2 from source

I’ve received questions lately on the issues that people are having while attempting to build PySide2 on Windows, macOS and Linux. Instead of building PySide2, there’s actually a workaround which works just as well for some people… Update 2017-08-28: PySide2 can now be installed with conda: conda config --add channels conda-forge conda install pyside2 Update 2018-03-09: The Qt Company now offers official and standalone wheels, read more here: 2018-03-09-official-pyside2-wheels. A formal request to provide official PySide2 wheels Before we start, make sure to cast a friendly vote here to have The Qt Company (QtC) prioritize the development of official PySide2 wheels....

June 30, 2017 · 5 min

Vendoring Qt.py

How do you know a user doesn’t have the wrong version of Qt.py when running your application? – Simple, you bundle Qt.py with your application. Here’s a short write-up on how you could go about doing just that. What’s “vendoring”? Bundling a third-party application with your own application is sometimes referred to as “vendoring”. By vendoring, you explicitly control which version of a dependency is being used with your application. Since there are numerous versions of Qt....

May 4, 2017 · 4 min
Mac OS terminal window

Compiling PySide2 from source

Here’s how to compile PySide2 on Linux, Mac OS X and Windows. Maya 2017 shipped with PySide2 (2.0.0~alpha0) built against Qt 5.6.1, so that’s the version of Qt I’m using in this guide as well as 64-bit Python. UPDATE: Before reading on, this blog post is now very outdated. You may want to skip this alltogether and go directly to my pre-built standalone Python wheels and the most up to date build recipes there:...

August 17, 2016 · 10 min
Maya showing an import error in the script editor

Dealing with Maya 2017 and PySide2

Maya 2017 was released today and with it comes a big change; PySide (and PyQt4) no longer works with Maya. This guide explains how to deal with that and make your Python and PySide/PyQt scripts compatible with Maya 2017 as well as older Maya versions. This guide is also applicable to e.g. Nuke or any other Python-enabled DCC app which uses Qt. Background (Qt4 vs Qt5) Starting with Maya 2011, Maya’s user interface is built using the Qt toolkit....

July 25, 2016 · 5 min

Developing with Qt.py

This post aims to give an introduction to the Qt.py project and how to get set up with it for PySide/PyQt4 and PySide2/PyQt5 development. Contents What is Qt.py How does it work? Installing Qt.py Caveats Contributing Closing comments What is Qt.py? Qt.py is a Minimal Python 2 & 3 shim around all Qt bindings - PySide, PySide2, PyQt4 and PyQt5 – which enables you to write software that dynamically chooses the most desireable bindings based on what’s available....

July 25, 2016 · 6 min