no one have any tips on this one?? Is it a known issue on pyside. QtUiTools
not working with py2exe or py2app? no one have tried this before?
-H
blog <http://hradec.blogspot.com/>   home <http://hradec.com/>



On Thu, Aug 25, 2011 at 9:15 AM, Hradec <[email protected]> wrote:

>
>
> I already post this issue on the py2exe list, but as I just found out
> it behaves exactly the same on py2app, it seemed appropriated to post
> here too!
>
> If I include PySide.QtUiTools into my script, the .exe generated by
> py2exe (or the app from py2app) crashes on the spot.
>
> It works fine if I run it as a script on booth windows and osx.
>
> I went into windows event log, and found this:
>
> Faulting application name: test.exe, version: 0.0.0.0, time stamp:
> 0x49180192
> Faulting module name: PYTHON27.DLL, version: 2.7.1150.1013, time
> stamp: 0x4cf1405f
> Exception code: 0xc0000005
> Fault offset: 0x00008876
> Faulting process id: 0x2fd8
> Faulting application start time: 0x01cc629bee40e219
> Faulting application path: D:\Dropbox\gabiguga_hradec.com\snygro
> \software\github\chemshapes\host\dist\test.exe
> Faulting module path: D:\Dropbox\gabiguga_hradec.com\snygro\software
> \github\chemshapes\host\dist\PYTHON27.DLL
> Report Id: 2c246c91-ce8f-11e0-b49f-485b396f7f70
>
> On Osx Lion, I got this from the crash window:
> Process:         test [26860]
> Path:            /Volumes/VOLUME/*/test.app/Contents/MacOS/test
> Identifier:      org.pythonmac.unspecified.test
> Version:         0.0.0 (0.0.0)
> Code Type:       X86-64 (Native)
> Parent Process:  launchd [1216]
> Date/Time:       2011-08-25 08:51:20.358 -0700
> OS Version:      Mac OS X 10.7 (11A511)
> Report Version:  9
> Interval Since Last Report:          39350 sec
> Crashes Since Last Report:           7
> Per-App Interval Since Last Report:  22 sec
> Per-App Crashes Since Last Report:   1
> Anonymous UUID:                      DC6556A2-1A45-4D2B-9562-B5971A2AAF6C
> Crashed Thread:  0  Dispatch queue: com.apple.main-thread
> Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
> Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008
> VM Regions Near 0x8:
> -->
>     __TEXT                 0000000100000000-0000000100006000 [   24K]
> r-x/rwx SM=COW  /Volumes/VOLUME/*/test.app/Contents/MacOS/test
> Application Specific Information:
> objc[26860]: garbage collection is OFF
> Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
> 0   libpython2.7.dylib             0x0000000101859b67
> PyObject_GetAttrString + 23
> 1   libshiboken-python2.7.1.0.dylib 0x0000000101f2ee81
> Shiboken::importModule(char const*, _typeobject***) + 99
> 2   QtUiTools.so                   0x00000001044031e3 initQtUiTools + 131
> 3   libpython2.7.dylib             0x00000001018e3942
> _PyImport_LoadDynamicModule + 178
> 4   libpython2.7.dylib             0x00000001018e3470 imp_load_dynamic + 80
> 5   libpython2.7.dylib             0x00000001018c7a61 PyEval_EvalFrameEx +
> 24081
> 6   libpython2.7.dylib             0x00000001018c82a6 PyEval_EvalFrameEx +
> 26198
> 7   libpython2.7.dylib             0x00000001018c98c5 PyEval_EvalCodeEx +
> 1733
> 8   libpython2.7.dylib             0x00000001018c9bc6 PyEval_EvalCode + 54
> 9   libpython2.7.dylib             0x00000001018dffc1
> PyImport_ExecCodeModuleEx + 209
> 10  libpython2.7.dylib             0x000000010191df36
> zipimporter_load_module + 390
> 11  libpython2.7.dylib             0x000000010180a162 PyObject_Call + 98
> 12  libpython2.7.dylib             0x00000001018103b6 PyObject_CallMethod +
> 246
> 13  libpython2.7.dylib             0x00000001018e178a import_submodule +
> 314
> 14  libpython2.7.dylib             0x00000001018e19da load_next + 234
> 15  libpython2.7.dylib             0x00000001018e23b2
> PyImport_ImportModuleLevel + 418
> 16  libpython2.7.dylib             0x00000001018bb163 builtin___import__ +
> 131
> 17  libpython2.7.dylib             0x000000010180a162 PyObject_Call + 98
> 18  libpython2.7.dylib             0x00000001018c0bd7
> PyEval_CallObjectWithKeywords + 87
> 19  libpython2.7.dylib             0x00000001018c415e PyEval_EvalFrameEx +
> 9486
> 20  libpython2.7.dylib             0x00000001018c98c5 PyEval_EvalCodeEx +
> 1733
> 21  libpython2.7.dylib             0x00000001018c9bc6 PyEval_EvalCode + 54
> 22  libpython2.7.dylib             0x00000001018edc7e PyRun_FileExFlags +
> 174
> 23  libpython2.7.dylib             0x00000001018bc07e builtin_execfile +
> 366
> 24  libpython2.7.dylib             0x00000001018c7a61 PyEval_EvalFrameEx +
> 24081
> 25  libpython2.7.dylib             0x00000001018c98c5 PyEval_EvalCodeEx +
> 1733
> 26  libpython2.7.dylib             0x00000001018c79bf PyEval_EvalFrameEx +
> 23919
> 27  libpython2.7.dylib             0x00000001018c98c5 PyEval_EvalCodeEx +
> 1733
> 28  libpython2.7.dylib             0x00000001018c9bc6 PyEval_EvalCode + 54
> 29  libpython2.7.dylib             0x00000001018edc7e PyRun_FileExFlags +
> 174
> 30  libpython2.7.dylib             0x00000001018eeaa1
> PyRun_SimpleFileExFlags + 817
> 31  org.pythonmac.unspecified.test 0x00000001000043c2 py2app_main + 2610
> 32  org.pythonmac.unspecified.test 0x0000000100004ace main + 1422
> 33  org.pythonmac.unspecified.test 0x0000000100000f54 start + 52
>
> Doesn't seem like theres something wrong with my setup.py script,
> since if I remove the  "import PySide.QtUiTools as QtUiTools"  of my
> test.py script, booth the exe and app work like a charm on win and
> osx.
>
> Sooo... Is this a known issue with QtUiTools? Is there something else
> I'm missing to include on my setup.py (find below after my signature)
> to make it to work? maybe an extra package shared library that neither
> py2exe or py2app can figure out?
>
> I really enjoy the .ui loading system, and rather prefer to keep it
> then revert to the old .ui => .py convertion... But I'm starting to
> consider this as my only option at this stage...
>
> thanks for any help!!
>
> -H
>
> setup.py:
>
> -----------------------------------------------------------------------------------------------------------------
> import os, sys
> sys.path.append(os.path.abspath("."))
> sys.path.append(os.path.abspath("./gletools"))
>
> if sys.platform == 'darwin':
>    from setuptools import setup
>    setup(
>        options = {'py2exe': {
>            "packages": [
>                "ctypes",
>                "logging",
>                "OpenGL",
>                "PySide",
>            ], "excludes": [], "skip_archive":False, 'optimize': 2,
> "unbuffered": True, "bundle_files":2 }
>        },
>        app=["draft.py"],
>        setup_requires=["py2app"],
>    )
>
> else:
>    from distutils.core import setup
>    from glob import glob
>
>    import py2exe
>
>    # pack MSVC libs for python 2.7
>    data_files = [
>        ("Microsoft.VC90.CRT", [os.path.abspath('./__debug_env_w32/
> Python27/msvcr90.dll')]),
>        ("Microsoft.VC90.CRT", [os.path.abspath('./__debug_env_w32/
> Python27/msvcp90.dll')]),
>        "draft.ui",
>    ]
>
>    setup(
>        options = {'py2exe': {
>            "packages": [
>                "ctypes",
>                "logging",
>                "OpenGL",
>                "PySide",
>            ], "excludes": [], "skip_archive":False, 'optimize': 2,
> "unbuffered": True, "bundle_files":2 }
>        },
>        console = [{'script': "test.py"}],
>        zipfile = "shared.lib",
>        data_files=data_files,
>
>    )
>
>
>
>
> -H
> blog <http://hradec.blogspot.com/>   home <http://hradec.com/>
>
>
_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside

Reply via email to