Published On: 2014-04-03|Last Updated: 2014-04-03|Categories: Uncategorized|Tags: , , |

Build PySide with Python 3.4

Official PySide for Python 3.4 is now available. Use it.

Build reference

Environment

Build

setup.py bdist_egg --qmake=C:Qt4.8.5binqmake.exe --openssl=C:OpenSSL-Win32bin

Distribution

My unofficial egg in Google Drive:

Installation

Download egg then:

easy_install PySide-1.2.1-py3.4.egg
C:Python34Scriptspyside_postinstall.py -install

Problem with qRegisterResourceData

Examples occur the error:

TypeError: 'qRegisterResourceData' called with wrong argument types:
  qRegisterResourceData(int, str, bytes, bytes)
Supported signatures:
  qRegisterResourceData(int, unicode, unicode, unicode)

To fix this, rewrite codes in *_rc.py:

# qt_resource_struct = "..." # bad
qt_resource_struct = b"..." # good

# qt_resource_name = "..." # bad
qt_resource_name = b"..." # good

# qt_resource_data = "..." # bad
qt_resource_data = b"..." # good

関連