Hello,
I'm trying to bundle an exe application from a large Qt project. This
project uses mayavi and ets. Due to project size and complexity, I decided
to start by something small and manageable: the mayavi example available
here
<http://docs.enthought.com/mayavi/mayavi/auto/example_qt_embedding.html>.
The thing is I've been unable to bundle it (correctly)... actually I got an
exe... but I get the following error when I execute it:
File "<string>", line 20, in <module>
File "C:\Python27\Lib\site-packages\PyInstaller\loader\pyi_importers.py",
line 270, in load_module
exec(bytecode, module.__dict__)
File
"C:\Users\Folder\Desktop\PySide+Mayavi\build\qt_embedding\out00-PYZ.pyz\pyface.qt",
line 24, in <module>
File "C:\Python27\Lib\site-packages\PyInstaller\loader\pyi_importers.py",
line 270, in load_module
exec(bytecode, module.__dict__)
File
"C:\Users\Folder\Desktop\PySide+Mayavi\build\qt_embedding\out00-PYZ.pyz\PySide",
line 41, in <module>
File
"C:\Users\Folder\Desktop\PySide+Mayavi\build\qt_embedding\out00-PYZ.pyz\PySide",
line 11, in _setupQtDirectories
File
"C:\Users\Folder\Desktop\PySide+Mayavi\build\qt_embedding\out00-PYZ.pyz\PySide._utils",
line 93, in get_pyside_dir
File "C:\Python27\Lib\site-packages\PyInstaller\loader\pyi_importers.py",
line 409, in load_module
module = imp.load_module(fullname, fp, filename, self._c_ext_tuple)
RuntimeError: the sip module has already registered a module called
PyQt4.QtCore
This is my actual specfile:
# -*- mode: python -*-
a = Analysis(['qt_embedding.py'],
pathex=['C:\\Users\\Folder\\Desktop\\PySide+Mayavi'],
hiddenimports=['PySide.QtCore',
'PySide.QtGui',
'pyface.ui.qt4',
'traits',
'traitsui',
'email',
'vtk',
'tvtk',
'subprocess',
'multiprocessing',
'uuid',
'mayavi',
'traits.api',
'traitsui.api',
'enthought.pyface'],
hookspath=['C:\\Users\\Folder\\Desktop\\PySide+Mayavi\\hooks'],
runtime_hooks=None)
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='qt_embedding.exe',
debug=True,
strip=None,
upx=True,
console=True )
Any help will be very much appreciated.
Regards.
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.