[PyQt] PyQt and cx_Freeze
Tobias Rzepka
tobias.rzepka at gmail.com
Sun Jun 23 12:25:46 BST 2013
Hello Michael,
goto C:\Python27\Lib\site-packages\PyQt4\uic\ and rename the dictionary
"port_v3" into something else like "port_v3_". Now it should work.
Tobias
Constantin, Michael schrieb am 21.06.2013 23:28:
>
> Hi,
>
> I'm trying to build an app written with PyQt and ran into this error,
> see below.
>
> It seems the same issue that was reported here:
> http://www.riverbankcomputing.com/pipermail/pyqt/2010-September/027896.html
>
> But I don't see a resolution. It says that is a cx_Freeze bug... is
> there any workaround to this?
>
> BTW, I'm also using the python_qt_binding package as described in
> http://qt-project.org/wiki/Differences_Between_PySide_and_PyQt under
> "Supporting Both APIs":
>
> https://github.com/ros-visualization/python_qt_binding
>
> although I don't think is important as far as this error is concerned.
>
> Thanks,
>
> Michael
>
> Building standalone executable...
>
> running install
>
> running build
>
> running build_py
>
> running build_scripts
>
> running build_exe
>
> Traceback (most recent call last):
>
> _File
> "C:\Users\constantinm\.eclipse\org.eclipse.platform_3.7.0_849111498\plugins\org.python.pydev_2.7.1.2012100913\pysrc\pydevd.py",
> line 1397, in <module>_
>
> debugger.run(setup['file'], None, None)
>
> _File
> "C:\Users\constantinm\.eclipse\org.eclipse.platform_3.7.0_849111498\plugins\org.python.pydev_2.7.1.2012100913\pysrc\pydevd.py",
> line 1090, in run_
>
> pydev_imports.execfile(file, globals, locals) #execute the script
>
> _File "C:\gitrepo\nuxeo-drive\setup.py", line 292, in <module>_
>
> **freeze_options
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\dist.py", line 361, in
> setup_
>
> distutils.core.setup(**attrs)
>
> _File "C:\Python27\lib\distutils\core.py", line 152, in setup_
>
> dist.run_commands()
>
> _File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands_
>
> self.run_command(cmd)
>
> _File "C:\Python27\lib\distutils\dist.py", line 972, in run_command_
>
> cmd_obj.run()
>
> _File "C:\Python27\lib\distutils\command\install.py", line 563, in run_
>
> self.run_command('build')
>
> _File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command_
>
> self.distribution.run_command(command)
>
> _File "C:\Python27\lib\distutils\dist.py", line 972, in run_command_
>
> cmd_obj.run()
>
> _File "C:\Python27\lib\distutils\command\build.py", line 127, in run_
>
> self.run_command(cmd_name)
>
> _File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command_
>
> self.distribution.run_command(command)
>
> _File "C:\Python27\lib\distutils\dist.py", line 972, in run_command_
>
> cmd_obj.run()
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\dist.py", line 231, in run_
>
> freezer.Freeze()
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\freezer.py", line 518,
> in Freeze_
>
> self.finder = self._GetModuleFinder()
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\freezer.py", line 304,
> in _GetModuleFinder_
>
> finder.IncludePackage(name)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 533,
> in IncludePackage_
>
> self._ImportAllSubModules(module, deferredImports)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 202,
> in _ImportAllSubModules_
>
> deferredImports)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 317,
> in _InternalImportModule_
>
> parentModule, namespace)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 329,
> in _LoadModule_
>
> namespace)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 374,
> in _LoadPackage_
>
> self._LoadModule(name, fp, path, info, deferredImports, parent)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 364,
> in _LoadModule_
>
> self._ScanCode(module.code, module, deferredImports)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 452,
> in _ScanCode_
>
> module, relativeImportIndex)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 246,
> in _ImportModule_
>
> deferredImports, namespace = namespace)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 317,
> in _InternalImportModule_
>
> parentModule, namespace)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 364,
> in _LoadModule_
>
> self._ScanCode(module.code, module, deferredImports)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 452,
> in _ScanCode_
>
> module, relativeImportIndex)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 246,
> in _ImportModule_
>
> deferredImports, namespace = namespace)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 317,
> in _InternalImportModule_
>
> parentModule, namespace)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 329,
> in _LoadModule_
>
> namespace)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 374,
> in _LoadPackage_
>
> self._LoadModule(name, fp, path, info, deferredImports, parent)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 364,
> in _LoadModule_
>
> self._ScanCode(module.code, module, deferredImports)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 452,
> in _ScanCode_
>
> module, relativeImportIndex)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 246,
> in _ImportModule_
>
> deferredImports, namespace = namespace)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 317,
> in _InternalImportModule_
>
> parentModule, namespace)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 364,
> in _LoadModule_
>
> self._ScanCode(module.code, module, deferredImports)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 452,
> in _ScanCode_
>
> module, relativeImportIndex)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 246,
> in _ImportModule_
>
> deferredImports, namespace = namespace)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 301,
> in _InternalImportModule_
>
> namespace = namespace)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 317,
> in _InternalImportModule_
>
> parentModule, namespace)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 329,
> in _LoadModule_
>
> namespace)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 374,
> in _LoadPackage_
>
> self._LoadModule(name, fp, path, info, deferredImports, parent)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 364,
> in _LoadModule_
>
> self._ScanCode(module.code, module, deferredImports)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 452,
> in _ScanCode_
>
> module, relativeImportIndex)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 266,
> in _ImportModule_
>
> deferredImports, namespace = namespace)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 317,
> in _InternalImportModule_
>
> parentModule, namespace)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 364,
> in _LoadModule_
>
> self._ScanCode(module.code, module, deferredImports)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 489,
> in _ScanCode_
>
> topLevel = False)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 489,
> in _ScanCode_
>
> topLevel = False)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 457,
> in _ScanCode_
>
> fromList, deferredImports)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 128,
> in _EnsureFromList_
>
> self._ImportModule(subModuleName, deferredImports, caller)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 230,
> in _ImportModule_
>
> deferredImports, namespace = namespace)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 317,
> in _InternalImportModule_
>
> parentModule, namespace)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 329,
> in _LoadModule_
>
> namespace)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 374,
> in _LoadPackage_
>
> self._LoadModule(name, fp, path, info, deferredImports, parent)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 364,
> in _LoadModule_
>
> self._ScanCode(module.code, module, deferredImports)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 457,
> in _ScanCode_
>
> fromList, deferredImports)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 128,
> in _EnsureFromList_
>
> self._ImportModule(subModuleName, deferredImports, caller)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 230,
> in _ImportModule_
>
> deferredImports, namespace = namespace)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 317,
> in _InternalImportModule_
>
> parentModule, namespace)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 364,
> in _LoadModule_
>
> self._ScanCode(module.code, module, deferredImports)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 457,
> in _ScanCode_
>
> fromList, deferredImports)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 128,
> in _EnsureFromList_
>
> self._ImportModule(subModuleName, deferredImports, caller)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 230,
> in _ImportModule_
>
> deferredImports, namespace = namespace)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 317,
> in _InternalImportModule_
>
> parentModule, namespace)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 364,
> in _LoadModule_
>
> self._ScanCode(module.code, module, deferredImports)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 452,
> in _ScanCode_
>
> module, relativeImportIndex)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 246,
> in _ImportModule_
>
> deferredImports, namespace = namespace)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 317,
> in _InternalImportModule_
>
> parentModule, namespace)
>
> _File "C:\Python27\Lib\site-packages\cx_Freeze\finder.py", line 342,
> in _LoadModule_
>
> module.code = compile(codeString, path, "exec")
>
> _File "C:\Python27\Lib\site-packages\PyQt4\uic\port_v3\proxy_base.py",
> line 31_
>
> class ProxyBase(metaclass=ProxyMetaclass):
>
> ^
>
> SyntaxError: invalid syntax
>
>
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20130623/e28fd1c5/attachment-0001.html>
More information about the PyQt
mailing list