Hi,
You need to regenerate the qtdemo_rc.py with pyside-rcc tool with -py3
option (by default rcc generates code for python 2).

Please run the following command:

D:\Python32\Lib\site-packages\PySide\pyside-rcc.exe -py3
D:\Python32\Lib\site-packages\PySide\examples\demos\qtdemo\qtdemo.qrc
-o D:\Python32\Lib\site-packages\PySide\examples\demos\qtdemo\qtdemo_rc.py

Regards
Roman

2012/9/11 techabc <tech...@gmail.com>:
> can NOT run the demo:
> D:\Python32\Lib\site-packages\PySide\examples\demos\qtdemo>python qtdemo.py
> Traceback (most recent call last):
>   File "qtdemo.py", line 51, in <module>
>     import qtdemo_rc
>   File 
> "D:\Python32\Lib\site-packages\PySide\examples\demos\qtdemo\qtdemo_rc.py"
> , line 3602, in <module>
>     qInitResources()
>   File 
> "D:\Python32\Lib\site-packages\PySide\examples\demos\qtdemo\qtdemo_rc.py"
> , line 3597, in qInitResources
>     QtCore.qRegisterResourceData(0x01, qt_resource_struct, qt_resource_name, 
> qt_
> resource_data)
> TypeError: 'qRegisterResourceData' called with wrong argument types:
>   qRegisterResourceData(int, str, str, str)
> Supported signatures:
>   qRegisterResourceData(int, unicode, unicode, unicode)
>
> D:\Python32\Lib\site-packages\PySide\examples\demos\qtdemo>
>
>
> 2012/9/11 Alexey Vihorev <viho...@gmail.com>:
>> Great to hear and many thanks for your work!
>>
>> 2012/9/11 Roman Lacko <backup.rla...@gmail.com>:
>>> Hi,
>>>
>>> PySide 1.1.2 windows builds are available for 32 bit Python 2.6, 2.7,
>>> 3.2 and 3.3rc2.
>>>
>>> Packages and installation instruction are available here:
>>> http://qt-project.org/wiki/PySide_Binaries_Windows
>>>
>>> Regards
>>> Roman
>>> _______________________________________________
>>> PySide mailing list
>>> PySide@qt-project.org
>>> http://lists.qt-project.org/mailman/listinfo/pyside
>>
>>
>>
>> --
>> Алексей Вихорев
>> _______________________________________________
>> PySide mailing list
>> PySide@qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/pyside
> _______________________________________________
> PySide mailing list
> PySide@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/pyside
_______________________________________________
PySide mailing list
PySide@qt-project.org
http://lists.qt-project.org/mailman/listinfo/pyside

Reply via email to