Table of Contents
Build PySide with Python 3.4
Official PySide for Python 3.4 is now available. Use it.
Build reference
Environment
- Windows 8.1
- Python 3.4.0 x86
- PySide 1.2.1
- Microsoft Visual C++ 2010 Express
- Windows Software Development Kit (SDK) for Windows 8.1
- qt-win-opensource-4.8.5-vs2010.exe
- cmake-2.8.12.2-win32-x86.exe
- Win32OpenSSL-1_0_1f.exe
Build
setup.py bdist_egg --qmake=C:Qt4.8.5binqmake.exe --openssl=C:OpenSSL-Win32bin
Distribution
My unofficial egg in Google Drive:
- PySide-1.2.1-py3.4.egg (PySide-1.2.1-py3.4-win32.egg)
- PySide-1.2.1-py3.4-without-openssl.egg (PySide-1.2.1-py3.3-win32-without-openssl.egg)
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