* Martin Zibricky (Mon, 09 May 2011 10:31:40 +0200)
> Lozzer píše v So 07. 05. 2011 v 09:06 -0700:
> > very smoothly with QT and pyside.
> 
> Does pyside work for you out of the box or had you to create some custom
> import hooks for PySide? What platform do you use pyside on?

I just ported a small application (less than ninety lines) to PySide and 
I was not able to get in running via PyInstaller, neither on Linux nor 
on Windows.

The first problem appears when you have PyQt and PySide on the same 
machine. The traceback is essentiallly the same on Windows and Linux:

Traceback (most recent call last):
  File "<string>", line 24, in <module>
  File "F:\program files\pyinstaller\iu.py", line 436, in importHook
  File "F:\program files\pyinstaller\iu.py", line 521, in doimport
  File "/usr/lib/python2.7/site-packages/PySide/__init__.py", line 2, in 
<module>
    import private
  File "F:\program files\pyinstaller\iu.py", line 436, in importHook
  File "F:\program files\pyinstaller\iu.py", line 521, in doimport
  File "/usr/lib/python2.7/site-packages/PySide/private.py", line 2, in 
<module>
    from QtCore import __moduleShutdown
  File "F:\program files\pyinstaller\iu.py", line 436, in importHook
  File "F:\program files\pyinstaller\iu.py", line 495, in doimport
  File "F:\program files\pyinstaller\iu.py", line 297, in getmod
  File "F:\program files\pyinstaller\archive.py", line 468, in getmod
  File "F:\program files\pyinstaller\iu.py", line 109, in getmod
RuntimeError: the sip module has already registered a module called 
PyQt4.QtCore

When I remove the calle to pyi_rth_qt4plugins.py in rthooks.dat, I get:
Traceback (most recent call last):
  File "<string>", line 24, in <module>
  File "F:\program files\pyinstaller\iu.py", line 436, in importHook
  File "F:\program files\pyinstaller\iu.py", line 521, in doimport
  File "/usr/lib/python2.7/site-packages/PySide/__init__.py", line 2, in 
<module>
    import private
  File "F:\program files\pyinstaller\iu.py", line 436, in importHook
  File "F:\program files\pyinstaller\iu.py", line 521, in doimport
  File "/usr/lib/python2.7/site-packages/PySide/private.py", line 2, in 
<module>
    from QtCore import __moduleShutdown
  File "F:\program files\pyinstaller\iu.py", line 436, in importHook
  File "F:\program files\pyinstaller\iu.py", line 495, in doimport
  File "F:\program files\pyinstaller\iu.py", line 297, in getmod
  File "F:\program files\pyinstaller\archive.py", line 468, in getmod
  File "F:\program files\pyinstaller\iu.py", line 109, in getmod
SystemError: dynamic module not initialized properly

Thorsten

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to