Bugs item #888270, was opened at 2004-01-31 19:38
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=114534&aid=888270&group_id=14534
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Richard Brooksby (rptb1)
Assigned to: Nobody/Anonymous (nobody)
Summary: Deployed project fails with "No module named _objc"
Initial Comment:
I pulled PyObjC down from CVS today (2004-01-31), built
and installed is using "setup.py". I also installed the Xcode
template in "~/Library/Application Support/Apple/
Developer Tools/Project
Templates/Application". I can build a new project and run
it on my machine, but on another without PyObjC installed
I get this traceback.
Lorikeet:~/tmp/Test Python Application.app/Contents/
MacOS rb$ ./Test\ Python\ Application
Traceback (most recent call last):
File "/Users/rb/tmp/Test Python Application.app/
Contents/Resources/__main__.py", line 9, in ?
from PyObjCTools import AppHelper
File "/Users/rb/tmp/Test Python Application.app/
Contents/Resources/PyObjCTools/AppHelper.py", line 10, in
?
from AppKit import NSApplicationMain, NSApp,
NSRunAlertPanel
File "/Users/rb/tmp/Test Python Application.app/
Contents/Resources/AppKit/__init__.py", line 8, in ?
import Foundation
File "/Users/rb/tmp/Test Python Application.app/
Contents/Resources/Foundation/__init__.py", line 1, in ?
import objc as _objc
File "/Users/rb/tmp/Test Python Application.app/
Contents/Resources/objc/__init__.py", line 18, in ?
from _objc import *
ImportError: No module named _objc
2004-01-31 19:01:40.870 Test Python Application[546] ***
Uncaught exception: <NSInternalInconsistencyException> /
Users/rb/tmp/Test Python Application/main-embedded-
interpreter.m:57 pyobjc_main() PyRun_SimpleFile failed
with file '/Users/rb/tmp/Test Python Application.app/
Contents/Resources/__main__.py'. See console for errors.
Trace/BPT trap
I see that "_objc.so" has not been copied to the deployed
application by the build script. I also tried using
bundlebuilder.py and see that it does something quite
different.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=114534&aid=888270&group_id=14534
|