Hello, It seems that there is a problem with build scripts at https://github.com/PySide/BuildScripts/blob/master/README (see below) How to fix them to building PySide for Python 3 properly?
$ python3 >>> import PySide >>> dir(PySide) ['__all__', '__builtins__', '__cached__', '__doc__', '__file__', '__name__', '__package__', '__path__', '__version__', '__version_info__'] >>> PySide.__version__ '1.1.1' >>> from PySide import QtCore Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: dynamic module does not define init function (PyInit_QtCore) -- anatoly t. On Mon, Feb 20, 2012 at 3:21 PM, anatoly techtonik <[email protected]> wrote: > Hello, > > In Python 3 'from PySide import *' gives exception illustrated below. Is it > a bug on PySide or in Python? > > > $ python > Python 2.7.2 (default, Oct 27 2011, 01:36:46) > [GCC 4.6.1 20111003 (Red Hat 4.6.1-10)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. >>>> from PySide import * >>>> > > $ python3 > Python 3.2.1 (default, Jul 11 2011, 18:55:33) > [GCC 4.6.1 20110627 (Red Hat 4.6.1-1)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. >>>> from PySide import * > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ImportError: dynamic module does not define init function (PyInit_QtCore) >>>> > > -- > anatoly t. _______________________________________________ PySide mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/pyside
