On 9 May, 2011, at 0:57, Trevor Bentley wrote:
> Hello,
>
> I know this is more of a question for the PyInstaller mailing list, but
> I wanted to check here and see if anyone has successfully used PyObjC
> with PyInstaller?
I haven't used PyInstaller, and don't even know what it is.
>
> I'm trying to create a PyInstaller package with PyTTSx (text-to-speech
> module), which uses PyObjC, but it seems that some dynamic imports
> related to the PyObjC "bridgesupport" module are failing. The
> PyInstaller package is made successfully, but I get the following
> exception at runtime:
>
> ------------------------------
> File
> "/Users/<path>/pyinstaller/test/build/pyi.darwin/test/outPYZ1.pyz/pyttsx.engine",
> line 45, in __init__
> File
> "/Users/<path>/pyinstaller/test/build/pyi.darwin/test/outPYZ1.pyz/pyttsx.driver",
> line 64, in __init__
> File "/Users/<path>/pyinstaller/PyInstaller/iu.py", line 431, in
> importHook
> mod = _self_doimport(nm, ctx, fqname)
> ...
> ... <lots of iu.py stuff>
> ...
> File
> "/Users/<path>/pyinstaller/test/build/pyi.darwin/test/outPYZ1.pyz/CoreFoundation",
> line 19, in <module>
> File
> "/Users/<path>/pyinstaller/test/build/pyi.darwin/test/outPYZ1.pyz/objc._bridgesupport",
> line 156, in initFrameworkWrapper
> File
> "/Users/<path>/pyinstaller/test/build/pyi.darwin/test/outPYZ1.pyz/objc._bridgesupport",
> line 58, in _parseBridgeSupport
> ValueError: Don't know CF type for typestr '^{__CFAllocator=}', cannot
> create special wrapper
> ------------------------------
>
> Any information on this would help! I'm willing to hack around dynamic
> loading entirely if I can figure out a reasonable way.
Does PyInstaller include package data? There should be bridgesupport files in the python package for Cocoa frameworks, that there should be a file named PyObjC.bridgesupport next to Foundation/__init__.py (and simularly for other frameworks).
Ronald
>
> Thanks,
>
> Trevor
>
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today. Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> Pyobjc-dev mailing list
> Pyo...@li...
> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev
|