Error upgrading py2app from 0.6.3 to 0.6.4, and building with AppKit import

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Error upgrading py2app from 0.6.3 to 0.6.4, and building with AppKit import

Paul Wiseman
After upgrading from py2app 0.6.3 to 0.6.4 when I run my build script I get the
following error:

creating python loader for extension 'wx._controls_'
error: /Users/testadmin/Source/PythonApp/build/bdist.macosx-10.3-fat/
python2.7-standalone/app/temp/wx/_controls_.py: No such file or directory

If I switch back to 0.6.3 everything works fine again.

The reason I was trying 0.6.4 is I have an odd problem where I've added some
imports from the AppKit module (from AppKit import NSApp,NSApplication)
and it works fine when running the program straight through python, but
after building with py2app when I run it I get a "quit unexpectedly" error, with
EXC_BAD_ACCESS (SIGBUS) as the reason with the following traceback in
console:

Traceback (most recent call last):
  File "/Applications/ZipCloud.app/Contents/Resources/__boot__.py", line 187,
in <module> _run('mainframe.py')
  File "/Applications/ZipCloud.app/Contents/Resources/__boot__.py", line 184,
in _run execfile(path, globals(), globals())
  File "/Applications/ZipCloud.app/Contents/Resources/mainframe.py", line 1,
in <module>  
    import PythonApp.mainframe_main_new
  File "PythonApp/mainframe_main_new.pyc", line 122, in <module>
  File "PythonApp/mainframe_mac.pyc", line 18, in <module>
  File "PythonApp/backup.pyc", line 49, in <module>
  File "PythonApp/popups.pyc", line 17, in <module>
  File "PythonApp/newpops.pyc", line 6, in <module>
  File "AppKit/__init__.pyc", line 9, in <module>
  File "Foundation/__init__.pyc", line 10, in <module>
  File "CoreFoundation/__init__.pyc", line 19, in <module>
  File "objc/_bridgesupport.pyc", line 140, in initFrameworkWrapper
  File "objc/_bridgesupport.pyc", line 42, in _parseBridgeSupport
ValueError: Don't know CF type for typestr '^{__CFAllocator=}', cannot create
special wrapper

I'm guessing this must be something is getting left out when the
dependancies are being pulled in? but I'm really not sure!

_______________________________________________
Pythonmac-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG