[PySide] BuildScripts for Python 3 (Was: from PySide import * in Python2/3)
anatoly techtonik
techtonik at gmail.com
Tue Feb 21 10:17:34 CET 2012
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 <techtonik at gmail.com> 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.
More information about the PySide
mailing list