jyr/MNPP — Issue #23: MNPP not installing on Lion
Author: benriddell
Created: 2012-01-05 18:11:29+00:00
State: open

Hi,

Not sure what's happening here. The download page made it look simple. I'm not very experienced debugging OSX - if you could let me know the details to pursue here, I'd greatly appreciate it.

I'm running OS X 10.6.8 on a MacBook Pro.

I downloaded the zip file, unzipped it, then moved it into Applications and tried to click MNPP.app (both after navigating to it in the finder and by expanding the "Applications" icon in the dock.

Something flashes very, very briefly on the screen, and then goes away and no discernible changes.

I get the following (changed the name of the laptop - but the "yourcompany.MNPP" is unchanged).

Jan 4 15:27:30 MacBook-Pro [0x0-0x56e56e].com.yourcompany.MNPP[23028]: Traceback (most recent call last):
Jan 4 15:27:30 MacBook-Pro [0x0-0x56e56e].com.yourcompany.MNPP[23028]: File "main.py", line 10, in
Jan 4 15:27:30 MacBook-Pro [0x0-0x56e56e].com.yourcompany.MNPP[23028]: import objc
Jan 4 15:27:30 MacBook-Pro [0x0-0x56e56e].com.yourcompany.MNPP[23028]: ImportError:
Jan 4 15:27:30 MacBook-Pro [0x0-0x56e56e].com.yourcompany.MNPP[23028]: No module named objc
Jan 4 15:27:30 MacBook-Pro MNPP[23028]: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '/Users/jyr/Projects/personal/MNPP-BASE/MNPP/main.m:44 main() PyRun_SimpleFile failed with file '/Applications/MNPP/MNPP.app/Contents/Resources/main.py'. See console for errors.'\n*** Call stack at first throw:\n(\0 CoreFoundation 0x00007fff87464784 __exceptionPreprocess + 180\n	1 libobjc.A.dylib 0x00007fff856a0f03 objc_exception_throw + 45\n	2 CoreFoundation 0x00007fff874645a7 +[NSException raise:format:arguments:] + 103\n	3 CoreFoundation 0x00007fff87464534 +[NSException raise:format:] + 148\n	4 MNPP 0x000000019bd61caa 0x0 + 6909467818\n	5 MNPP 0x000000019bd619fc 0x0 + 6909467132\n)
Jan 4 15:27:30 MacBook-Pro [0x0-0x56e56e].com.yourcompany.MNPP[23028]: terminate called after throwing an instance of 'NSException'
Jan 4 15:27:33 MacBook-Pro com.apple.launchd.peruser.501[86] ([0x0-0x56e56e].com.yourcompany.MNPP[23028]): Job appears to have crashed: Abort trap
Jan 4 15:27:36 MacBook-Pro ReportCrash[23030]: Saved crash report for MNPP[23028] version 1.0 (1.0) to /Users/ben/Library/Logs/DiagnosticReports/MNPP_2012-01-04-152736_MacBook-Pro.crash

The file from the last line there starts with this:

cat MNPP_2012-01-04-152736_MacBook-Pro.crash
Process: MNPP [23028]
Path: /Applications/MNPP/MNPP.app/Contents/MacOS/MNPP
Identifier: com.yourcompany.MNPP
Version: 1.0 (1.0)
Code Type: X86-64 (Native)
Parent Process: launchd [86]

Date/Time: 2012-01-04 15:27:30.142 -0800
OS Version: Mac OS X 10.6.8 (10K549)
Report Version: 6

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Application Specific Information:
abort() called
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '/Users/jyr/Projects/personal/MNPP-BASE/MNPP/main.m:44 main() PyRun_SimpleFile failed with file '/Applications/MNPP/MNPP.app/Contents/Resources/main.py'. See console for errors.'
*** Call stack at first throw:
(
0 CoreFoundation 0x00007fff87464784 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x00007fff856a0f03 objc_exception_throw + 45
2 CoreFoundation 0x00007fff874645a7 +[NSException raise:format:arguments:] + 103
3 CoreFoundation 0x00007fff87464534 +[NSException raise:format:] + 148
4 MNPP 0x000000019bd61caa 0x0 + 6909467818
5 MNPP 0x000000019bd619fc 0x0 + 6909467132
)

Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib	0x00007fff8357c0b6 __kill + 10
1 libSystem.B.dylib	0x00007fff8361c9f6 abort + 83
2 libstdc++.6.dylib	0x00007fff894995d2 __tcf_0 + 0
3 libobjc.A.dylib	0x00007fff856a4b39 _objc_terminate + 100
4 libstdc++.6.dylib	0x00007fff89497ae1 __cxxabiv1::__terminate(void (*)()) + 11
5 libstdc++.6.dylib	0x00007fff89497b16 __cxxabiv1::__unexpected(void (*)()) + 0
6 libstdc++.6.dylib	0x00007fff89497bfc __gxx_exception_cleanup(_Unwind_Reason_Code, _Unwind_Exception*) + 0
7 libobjc.A.dylib	0x00007fff856a0fa2 object_getIvar + 0
8 com.apple.CoreFoundation	0x00007fff874645a7 +[NSException raise:format:arguments:] + 103
9 com.apple.CoreFoundation	0x00007fff87464534 +[NSException raise:format:] + 148
10 com.yourcompany.MNPP	0x000000019bd61caa 0x19bd60000 + 7338
11 com.yourcompany.MNPP	0x000000019bd619fc 0x19bd60000 + 6652

Thread 1: Dispatch queue: com.apple.libdispatch-manager
0 libSystem.B.dylib	0x00007fff83546c0a kevent + 10
1 libSystem.B.dylib	0x00007fff83548add _dispatch_mgr_invoke + 154
2 libSystem.B.dylib	0x00007fff835487b4 _dispatch_queue_invoke + 185
3 libSystem.B.dylib	0x00007fff835482de _dispatch_worker_thread2 + 252
4 libSystem.B.dylib	0x00007fff83547c08 _pthread_wqthread + 353
5 libSystem.B.dylib	0x00007fff83547aa5 start_wqthread + 13

Thread 2:
0 libSystem.B.dylib	0x00007fff83547a2a __workq_kernreturn + 10
1 libSystem.B.dylib	0x00007fff83547e3c _pthread_wqthread + 917
2 libSystem.B.dylib	0x00007fff83547aa5 start_wqthread + 13

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x00007fff707fa2f8 rcx: 0x00007fff5fbff878 rdx: 0x0000000000000000
rdi: 0x00000000000059f4 rsi: 0x0000000000000006 rbp: 0x00007fff5fbff890 rsp: 0x00007fff5fbff878
r8: 0x00007fff707fda60 r9: 0x0000000000000063 r10: 0x00007fff835780fa r11: 0x0000000000000202
r12: 0x00007fff874e9b09 r13: 0x0000000000000000 r14: 0x0000000100600e50 r15: 0x00007fff8569bee4
rip: 0x00007fff8357c0b6 rfl: 0x0000000000000202 cr2: 0x00007fff71109fd0

Thanks for any help or pointers!

Cheers!

-Ben