[Pygui] KeyError: 'CFBundleName' while running PyGUI Cocoa in a VirtualEnv

Georges Martin jrjsmrtn at gmail.com
Wed Feb 22 12:55:52 CET 2012


Hello,

I got a KeyError: 'CFBundleName' exception when running PyGUI in a
VirtualEnv on OS X 10.6.6. PyGUI and the tests are running fine with the
system python.

Here is the session:

$ mkproject pygui

(pygui)
$ easy_install pyobjc-core pyobjc-framework-Cocoa py2app

(pygui)
$ wget
http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/PyGUI-2.5.3.tar.gz

(pygui)
$ pip install PyGUI-2.5.3.tar.gz

(pygui)
$ tar xfz PyGUI-2.5.3.tar.gz && cd PyGUI-2.5.3/Tests

(pygui)
$ python 01-application.py
Traceback (most recent call last):
  File "01-application.py", line 25, in <module>
    app = TestApp()
  File "01-application.py", line 12, in __init__
    Application.__init__(self)
  File
"/_/_/.virtualenvs/pygui/lib/python2.7/site-packages/GUI/Application.py",
line 47, in __init__
    self.ns_init_application_name()
  File
"/_/_/.virtualenvs/pygui/lib/python2.7/site-packages/GUI/Application.py",
line 204, in ns_init_application_name
    if ns_info['CFBundleName'] == "Python":
  File
"/_/_/.virtualenvs/pygui/lib/python2.7/site-packages/pyobjc_core-2.3-py2.7-macosx-10.6-x86_64.egg/objc/_convenience.py",
line 168, in __getitem__objectForKey_
    return container_unwrap(res, KeyError, key)
  File
"/_/_/.virtualenvs/pygui/lib/python2.7/site-packages/pyobjc_core-2.3-py2.7-macosx-10.6-x86_64.egg/objc/_convenience.py",
line 634, in container_unwrap
    raise exc_type(*exc_args)
KeyError: 'CFBundleName'

Any clues ?

Regards,

Georges
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pygui/attachments/20120222/b73677e6/attachment.html>


More information about the Pygui mailing list