Re: PyObjC with PyInstaller

Ronald Oussoren <[email protected]>
Newsgroups gmane.comp.python.pyobjc.devel
Message-ID <[email protected]>
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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay

_______________________________________________
Pyobjc-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyobjc-dev
smime.p7s (application/pkcs7-signature, 2.2 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.