New to list with issues….

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

New to list with issues….

Daniel Rahenkamp
Hi,

I am new to the list and of course I have issues... I have run into a problem of which I find that I am a bit out of my depth in solving. I have upgraded to lion and python 2.7.2 and I have several scripts that I have been running for over a year as dameons are now crashing with errors that I cannot interpret. Any help will be GREATLY appreciated as I am dead in the water in terms of using Python. Below is the error and full problem report. Thanks so much.

d

Me transmitte sursum, Caledoni!


Process:         Python [282]
Path:            /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier:      Python
Version:         ??? (???)
Code Type:       X86-64 (Native)
Parent Process:  Python [242]

Date/Time:       2011-12-22 09:33:46.551 -0500
OS Version:      Mac OS X 10.7.2 (11C74)
Report Version:  9

Interval Since Last Report:          371206 sec
Crashes Since Last Report:           17
Per-App Crashes Since Last Report:   799
Anonymous UUID:                      3C387DB7-0AA3-4F34-A100-31D1736D2668

Crashed Thread:  0

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000108

VM Regions Near 0x108:
--> 
    __TEXT                 0000000100285000-0000000100286000 [    4K] r-x/rwx SM=COW  /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python

Application Specific Information:
objc[221]: garbage collection is OFF

Thread 0 Crashed:
0   libdispatch.dylib             0x00007fff8b14ace9 _dispatch_wakeup + 108
1   libdispatch.dylib             0x00007fff8b14d876 _dispatch_resume_slow + 20
2   com.apple.CoreFoundation       0x00007fff8af8262c -[NSXPCConnection start] + 92
3   com.apple.CoreFoundation       0x00007fff8af84ca3 __CFXNotificationCenterSetupConnection + 387
4   com.apple.CoreFoundation       0x00007fff8af84b11 __CFXNotificationCenterCreate + 273
5   com.apple.CoreFoundation       0x00007fff8af849ea __CFNotificationCenterGetDistributedCenter_block_invoke_1 + 26
6   libdispatch.dylib             0x00007fff8b14d224 dispatch_once_f + 53
7   com.apple.CoreFoundation       0x00007fff8af73e0a CFNotificationCenterGetDistributedCenter + 74
8   com.apple.CoreFoundation       0x00007fff8afb2eb8 ____CFXPreferencesGetSourceForTriplet_block_invoke_1 + 40
9   libdispatch.dylib             0x00007fff8b14d224 dispatch_once_f + 53
10  com.apple.CoreFoundation       0x00007fff8af7fa4a __CFXPreferencesGetSourceForTriplet + 58
11  com.apple.CoreFoundation       0x00007fff8af8be67 __CFXPreferencesGetSearchListForBundleID + 215
12  com.apple.CoreFoundation       0x00007fff8af8bd48 ___CFXPreferencesCopyAppValue_block_invoke_1 + 24
13  com.apple.CoreFoundation       0x00007fff8af8bcea CFPreferencesCopyAppValue + 218
14  com.apple.SystemConfiguration 0x00007fff928f388c SCDynamicStoreCopyProxies + 43
15  _scproxy.so                   0x0000000100a6e9ba 0x100a6e000 + 2490
16  org.python.python             0x0000000100317b58 PyEval_EvalFrameEx + 13318
17  org.python.python             0x000000010031adf7 0x100290000 + 568823
18  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
19  org.python.python             0x000000010031adf7 0x100290000 + 568823
20  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
21  org.python.python             0x000000010031acd8 PyEval_EvalCodeEx + 1996
22  org.python.python             0x00000001002b8abf 0x100290000 + 166591
23  org.python.python             0x0000000100297d32 PyObject_Call + 97
24  org.python.python             0x00000001002a66e9 0x100290000 + 91881
25  org.python.python             0x0000000100297d32 PyObject_Call + 97
26  org.python.python             0x0000000100313c40 PyEval_CallObjectWithKeywords + 180
27  org.python.python             0x00000001002a3489 PyInstance_New + 273
28  org.python.python             0x0000000100297d32 PyObject_Call + 97
29  org.python.python             0x0000000100317f63 PyEval_EvalFrameEx + 14353
30  org.python.python             0x000000010031acd8 PyEval_EvalCodeEx + 1996
31  org.python.python             0x000000010031ae6c 0x100290000 + 568940
32  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
33  org.python.python             0x000000010031acd8 PyEval_EvalCodeEx + 1996
34  org.python.python             0x000000010031ae6c 0x100290000 + 568940
35  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
36  org.python.python             0x000000010031acd8 PyEval_EvalCodeEx + 1996
37  org.python.python             0x00000001002b8abf 0x100290000 + 166591
38  org.python.python             0x0000000100297d32 PyObject_Call + 97
39  org.python.python             0x00000001003185ec PyEval_EvalFrameEx + 16026
40  org.python.python             0x000000010031adf7 0x100290000 + 568823
41  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
42  org.python.python             0x000000010031adf7 0x100290000 + 568823
43  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
44  org.python.python             0x000000010031acd8 PyEval_EvalCodeEx + 1996
45  org.python.python             0x00000001002b8abf 0x100290000 + 166591
46  org.python.python             0x0000000100297d32 PyObject_Call + 97
47  org.python.python             0x00000001002a66e9 0x100290000 + 91881
48  org.python.python             0x0000000100297d32 PyObject_Call + 97
49  org.python.python             0x00000001002e2484 0x100290000 + 337028
50  org.python.python             0x00000001002dcb7a 0x100290000 + 314234
51  org.python.python             0x0000000100297d32 PyObject_Call + 97
52  org.python.python             0x0000000100317f63 PyEval_EvalFrameEx + 14353
53  org.python.python             0x000000010031adf7 0x100290000 + 568823
54  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
55  org.python.python             0x000000010031adf7 0x100290000 + 568823
56  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
57  org.python.python             0x000000010031acd8 PyEval_EvalCodeEx + 1996
58  org.python.python             0x00000001002b8abf 0x100290000 + 166591
59  org.python.python             0x0000000100297d32 PyObject_Call + 97
60  org.python.python             0x00000001003185ec PyEval_EvalFrameEx + 16026
61  org.python.python             0x000000010031adf7 0x100290000 + 568823
62  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
63  org.python.python             0x000000010031adf7 0x100290000 + 568823
64  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
65  org.python.python             0x000000010031acd8 PyEval_EvalCodeEx + 1996
66  org.python.python             0x00000001002b8abf 0x100290000 + 166591
67  org.python.python             0x0000000100297d32 PyObject_Call + 97
68  org.python.python             0x00000001002a66e9 0x100290000 + 91881
69  org.python.python             0x0000000100297d32 PyObject_Call + 97
70  org.python.python             0x0000000100313c40 PyEval_CallObjectWithKeywords + 180
71  org.python.python             0x000000010034540d 0x100290000 + 742413
72  libsystem_c.dylib             0x00007fff978098bf _pthread_start + 335
73  libsystem_c.dylib             0x00007fff9780cb75 thread_start + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000100  rbx: 0x00007f810a124e50  rcx: 0x00007f810a124e68  rdx: 0x0000000000000001
  rdi: 0x00007f810a124e60  rsi: 0x00007fff8c3d6c40  rbp: 0x0000000101039080  rsp: 0x0000000101039070
   r8: 0x00007f810a083878   r9: 0x0000000000000852  r10: 0x0000000000000081  r11: 0x00007fff8af825d0
  r12: 0x0000000000000000  r13: 0x0000000000000000  r14: 0x00007fff7ad93180  r15: 0x00007f81096fa408
  rip: 0x00007fff8b14ace9  rfl: 0x0000000000010206  cr2: 0x0000000000000108
Logical CPU: 1

Binary Images:
       0x100285000 -        0x100285fff  org.python.python (2.7.1 - 2.7.1) <E2C46621-158F-349B-9131-263E8958B23A> /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
       0x100290000 -        0x1003abff7  org.python.python (2.7.1 - 2.7.1) <A7E34EB5-24D2-3B8F-A26B-4A5B28CD2C60> /System/Library/Frameworks/Python.framework/Versions/2.7/Python
       0x1004ec000 -        0x1004edfff  _locale.so (??? - ???) <FCAE62F7-D07F-3F5F-8057-18224582F344> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_locale.so
       0x1004f1000 -        0x1004fdfff  cPickle.so (??? - ???) <FE1D948F-998C-350E-8002-224D3DCDE8B5> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cPickle.so
       0x100503000 -        0x100503fff  grp.so (??? - ???) <563EC9A6-F38F-3518-9BBB-912E9F01FDA1> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/grp.so
       0x100507000 -        0x10050afff  _multiprocessing.so (??? - ???) <CFAE1A97-134D-3A6D-9646-D5109117D153> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_multiprocessing.so
       0x10050f000 -        0x100511fff  select.so (??? - ???) <FEC6A324-8D3E-3439-9315-BC2AF15A0514> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/select.so
       0x1009dc000 -        0x1009e0fff  _struct.so (??? - ???) <A871A47E-0BF6-3A21-BF66-A5438C54B237> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_struct.so
       0x1009e6000 -        0x1009e8ff7  binascii.so (??? - ???) <9B353DAC-B0E8-3B4B-91A1-50F6F86AA928> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/binascii.so
       0x1009ec000 -        0x1009edfff  _hashlib.so (??? - ???) <C6196B8C-5451-3875-BCD9-2942C6A32FCF> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_hashlib.so
       0x1009f1000 -        0x1009f6fff  array.so (??? - ???) <177F1D09-ACEE-3E39-8F1E-3EE8BA8A7AC6> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/array.so
       0x1009fc000 -        0x100a02ff7  _socket.so (??? - ???) <CB2B2DF1-46C2-3491-A737-4522C807F5A2> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_socket.so
       0x100a0a000 -        0x100a0bfff  _functools.so (??? - ???) <D4679747-9993-34F6-B702-3946FA5BF171> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_functools.so
       0x100a0f000 -        0x100a13fff  _ssl.so (??? - ???) <50FC05D5-0434-3054-9C09-CA8923FED0C0> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_ssl.so
       0x100a19000 -        0x100a1afff  cStringIO.so (??? - ???) <AE5A2A12-8E57-3FE2-B998-C175083B27F7> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cStringIO.so
       0x100a1f000 -        0x100a22fff  _collections.so (??? - ???) <62C1B5B7-654D-397A-8840-7EBB907DBCA1> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_collections.so
       0x100a28000 -        0x100a2bfff  operator.so (??? - ???) <59A152D0-52ED-354C-9C2D-D7390E3EC216> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/operator.so
       0x100a31000 -        0x100a37fff  itertools.so (??? - ???) <7C8350B9-8DD3-377A-A5C1-1103A6C955A6> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/itertools.so
       0x100a40000 -        0x100a40fff  _bisect.so (??? - ???) <CD57DCA1-74B4-37F8-B338-ABDDB1750F22> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_bisect.so
       0x100a44000 -        0x100a45fff  _heapq.so (??? - ???) <A3448C7E-3268-32A5-B4C5-859372FFA7E6> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_heapq.so
       0x100a4a000 -        0x100a4ffff  math.so (??? - ???) <BC93F501-541B-3BA8-B1D7-2644AAD6D6CE> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/math.so
       0x100a55000 -        0x100a56ff7  _random.so (??? - ???) <3C7A7C17-1698-32D0-BF09-F50A19F75E4B> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_random.so
       0x100a5a000 -        0x100a5bfff  fcntl.so (??? - ???) <D2F4AAAE-3C27-3134-84AE-021647AEB1C4> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/fcntl.so
       0x100a5f000 -        0x100a60fff  time.so (??? - ???) <DA274462-B33A-33EB-90F7-BB9FB8120A5D> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/time.so
       0x100a66000 -        0x100a69fff  strop.so (??? - ???) <A317730F-EDDF-3998-8A22-0E632B3E67A4> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/strop.so
       0x100a6e000 -        0x100a6efff  _scproxy.so (??? - ???) <F392F576-344C-3CCB-B93C-E11205241E1D> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_scproxy.so
       0x100b32000 -        0x100b3dff7  datetime.so (??? - ???) <9EC1E3BD-3BD3-3B39-AE19-448CCEEA747A> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/datetime.so
       0x100b46000 -        0x100b4ffff  _sqlite3.so (??? - ???) <4F97C26B-1A2D-33D9-A7B4-C791FA3F645B> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_sqlite3.so
       0x100d9c000 -        0x100da0fff  _json.so (??? - ???) <A8E3EEA8-354B-35C6-A3C5-653928D7419D> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_json.so
       0x100da5000 -        0x100db6fff  _io.so (??? - ???) <5451CA4B-98A0-3F70-9322-DBE6B7D93CF1> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so
       0x100dc5000 -        0x100dcdfff  parser.so (??? - ???) <2E88032A-DFD4-38F0-BE83-03DA706702B1> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/parser.so
       0x100dd2000 -        0x100dd4fff  zlib.so (??? - ???) <81E54FCE-EEAC-3E97-BB05-1143EB6AECA6> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/zlib.so
       0x100f1c000 -        0x100f2dfff  _ctypes.so (??? - ???) <2D2AE6AF-704A-3CBB-954B-33BA49B78254> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_ctypes.so
    0x7fff5fe85000 -     0x7fff5feb9ac7  dyld (195.5 - ???) <4A6E2B28-C7A2-3528-ADB7-4076B9836041> /usr/lib/dyld
    0x7fff8ace9000 -     0x7fff8ad22fe7  libssl.0.9.8.dylib (44.0.0 - compatibility 0.9.8) <79AAEC98-1258-3DA4-B1C0-4120049D390B> /usr/lib/libssl.0.9.8.dylib
    0x7fff8ae97000 -     0x7fff8aeb7fff  libsystem_kernel.dylib (1699.22.73 - compatibility 1.0.0) <69F2F501-72D8-3B3B-8357-F4418B3E1348> /usr/lib/system/libsystem_kernel.dylib
    0x7fff8af21000 -     0x7fff8af23fff  libquarantine.dylib (36.0.0 - compatibility 1.0.0) <4C3BFBC7-E592-3939-B376-1C2E2D7C5389> /usr/lib/system/libquarantine.dylib
    0x7fff8af37000 -     0x7fff8b10bfff  com.apple.CoreFoundation (6.7.1 - 635.15) <FE4A86C2-3599-3CF8-AD1A-822F1FEA820F> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff8b10c000 -     0x7fff8b147ff7  libsystem_info.dylib (??? - ???) <9C8C2DCB-96DB-3471-9DCE-ADCC26BE2DD4> /usr/lib/system/libsystem_info.dylib
    0x7fff8b148000 -     0x7fff8b156fff  libdispatch.dylib (187.7.0 - compatibility 1.0.0) <712AAEAC-AD90-37F7-B71F-293FF8AE8723> /usr/lib/system/libdispatch.dylib
    0x7fff8c79d000 -     0x7fff8c7a2fff  libcache.dylib (47.0.0 - compatibility 1.0.0) <B7757E2E-5A7D-362E-AB71-785FE79E1527> /usr/lib/system/libcache.dylib
    0x7fff8d64a000 -     0x7fff8d64bff7  libremovefile.dylib (21.0.0 - compatibility 1.0.0) <C6C49FB7-1892-32E4-86B5-25AD165131AA> /usr/lib/system/libremovefile.dylib
    0x7fff8edae000 -     0x7fff8edf0ff7  libcommonCrypto.dylib (55010.0.0 - compatibility 1.0.0) <A5B9778E-11C3-3F61-B740-1F2114E967FB> /usr/lib/system/libcommonCrypto.dylib
    0x7fff8f492000 -     0x7fff8f4afff7  libxpc.dylib (77.17.0 - compatibility 1.0.0) <72A16104-2F23-3C22-B474-1953F06F9376> /usr/lib/system/libxpc.dylib
    0x7fff8f778000 -     0x7fff8f779fff  libsystem_sandbox.dylib (??? - ???) <8D14139B-B671-35F4-9E5A-023B4C523C38> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff90a8c000 -     0x7fff90b70def  libobjc.A.dylib (228.0.0 - compatibility 1.0.0) <C5F2392D-B481-3A9D-91BE-3D039FFF4DEC> /usr/lib/libobjc.A.dylib
    0x7fff911f8000 -     0x7fff91201ff7  libsystem_notify.dylib (80.1.0 - compatibility 1.0.0) <A4D651E3-D1C6-3934-AD49-7A104FD14596> /usr/lib/system/libsystem_notify.dylib
    0x7fff912ac000 -     0x7fff91321ff7  libc++.1.dylib (19.0.0 - compatibility 1.0.0) <C0EFFF1B-0FEB-3F99-BE54-506B35B555A9> /usr/lib/libc++.1.dylib
    0x7fff9132e000 -     0x7fff9132ffff  libunc.dylib (24.0.0 - compatibility 1.0.0) <C67B3B14-866C-314F-87FF-8025BEC2CAAC> /usr/lib/system/libunc.dylib
    0x7fff923c8000 -     0x7fff92416fff  libauto.dylib (??? - ???) <D8AC8458-DDD0-3939-8B96-B6CED81613EF> /usr/lib/libauto.dylib
    0x7fff928da000 -     0x7fff928defff  libdyld.dylib (195.5.0 - compatibility 1.0.0) <F1903B7A-D3FF-3390-909A-B24E09BAD1A5> /usr/lib/system/libdyld.dylib
    0x7fff928df000 -     0x7fff9292aff7  com.apple.SystemConfiguration (1.11.1 - 1.11) <F832FE21-5509-37C6-B1F1-48928F31BE45> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    0x7fff92a44000 -     0x7fff92ab7fff  libstdc++.6.dylib (52.0.0 - compatibility 7.0.0) <6BDD43E4-A4B1-379E-9ED5-8C713653DFF2> /usr/lib/libstdc++.6.dylib
    0x7fff92c68000 -     0x7fff92c73ff7  libc++abi.dylib (14.0.0 - compatibility 1.0.0) <8FF3D766-D678-36F6-84AC-423C878E6D14> /usr/lib/libc++abi.dylib
    0x7fff92c74000 -     0x7fff92c78fff  libmathCommon.A.dylib (2026.0.0 - compatibility 1.0.0) <FF83AFF7-42B2-306E-90AF-D539C51A4542> /usr/lib/system/libmathCommon.A.dylib
    0x7fff92c79000 -     0x7fff92c8bff7  libz.1.dylib (1.2.5 - compatibility 1.0.0) <30CBEF15-4978-3DED-8629-7109880A19D4> /usr/lib/libz.1.dylib
    0x7fff92c8e000 -     0x7fff92c8efff  libkeymgr.dylib (23.0.0 - compatibility 1.0.0) <61EFED6A-A407-301E-B454-CD18314F0075> /usr/lib/system/libkeymgr.dylib
    0x7fff92c8f000 -     0x7fff92c90ff7  libsystem_blocks.dylib (53.0.0 - compatibility 1.0.0) <8BCA214A-8992-34B2-A8B9-B74DEACA1869> /usr/lib/system/libsystem_blocks.dylib
    0x7fff92e7c000 -     0x7fff92e82ff7  libunwind.dylib (30.0.0 - compatibility 1.0.0) <1E9C6C8C-CBE8-3F4B-A5B5-E03E3AB53231> /usr/lib/system/libunwind.dylib
    0x7fff93681000 -     0x7fff93686ff7  libsystem_network.dylib (??? - ???) <5DE7024E-1D2D-34A2-80F4-08326331A75B> /usr/lib/system/libsystem_network.dylib
    0x7fff93687000 -     0x7fff9368cfff  libcompiler_rt.dylib (6.0.0 - compatibility 1.0.0) <98ECD5F6-E85C-32A5-98CD-8911230CB66A> /usr/lib/system/libcompiler_rt.dylib
    0x7fff936ce000 -     0x7fff938d0fff  libicucore.A.dylib (46.1.0 - compatibility 1.0.0) <38CD6ED3-C8E4-3CCD-89AC-9C3198803101> /usr/lib/libicucore.A.dylib
    0x7fff95141000 -     0x7fff95149fff  libsystem_dnssd.dylib (??? - ???) <7749128E-D0C5-3832-861C-BC9913F774FA> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff95396000 -     0x7fff95397fff  libffi.dylib (??? - ???) <DB96CC4B-0D38-3102-80AA-91DDE9AF3886> /usr/lib/libffi.dylib
    0x7fff95c12000 -     0x7fff95d1efff  libcrypto.0.9.8.dylib (44.0.0 - compatibility 0.9.8) <3A8E1F89-5E26-3C8B-B538-81F5D61DBF8A> /usr/lib/libcrypto.0.9.8.dylib
    0x7fff95e42000 -     0x7fff95e43fff  libdnsinfo.dylib (395.6.0 - compatibility 1.0.0) <718A135F-6349-354A-85D5-430B128EFD57> /usr/lib/system/libdnsinfo.dylib
    0x7fff9653c000 -     0x7fff96543fff  libcopyfile.dylib (85.1.0 - compatibility 1.0.0) <172B1985-F24A-34E9-8D8B-A2403C9A0399> /usr/lib/system/libcopyfile.dylib
    0x7fff96544000 -     0x7fff96546fff  com.apple.TrustEvaluationAgent (2.0 - 1) <1F31CAFF-C1C6-33D3-94E9-11B721761DDF> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
    0x7fff96547000 -     0x7fff9654dfff  libmacho.dylib (800.0.0 - compatibility 1.0.0) <D86F63EC-D2BD-32E0-8955-08B5EAFAD2CC> /usr/lib/system/libmacho.dylib
    0x7fff96845000 -     0x7fff96948fff  libsqlite3.dylib (9.6.0 - compatibility 9.0.0) <7F60B0FF-4946-3639-89AB-B540D318B249> /usr/lib/libsqlite3.dylib
    0x7fff96949000 -     0x7fff96976fe7  libSystem.B.dylib (159.1.0 - compatibility 1.0.0) <095FDD3C-3961-3865-A59B-A5B0A4B8B923> /usr/lib/libSystem.B.dylib
    0x7fff977b9000 -     0x7fff977bafff  libDiagnosticMessagesClient.dylib (??? - ???) <3DCF577B-F126-302B-BCE2-4DB9A95B8598> /usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff977bb000 -     0x7fff97898fef  libsystem_c.dylib (763.12.0 - compatibility 1.0.0) <FF69F06E-0904-3C08-A5EF-536FAFFFDC22> /usr/lib/system/libsystem_c.dylib
    0x7fff978b6000 -     0x7fff978c0ff7  liblaunch.dylib (392.18.0 - compatibility 1.0.0) <39EF04F2-7F0C-3435-B785-BF283727FFBD> /usr/lib/system/liblaunch.dylib

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 235
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=60.9M resident=39.6M(65%) swapped_out_or_unallocated=21.3M(35%)
Writable regions: Total=49.7M written=2308K(5%) resident=19.9M(40%) swapped_out=0K(0%) unallocated=29.8M(60%)
 
REGION TYPE                      VIRTUAL
===========                      =======
MALLOC                             34.6M
MALLOC guard page                    48K
SQLite page cache                    96K
STACK GUARD                           4K
Stack                              70.6M
VM_ALLOCATE                           8K
__DATA                             1780K
__LINKEDIT                         48.0M
__TEXT                             12.9M
__UNICODE                           544K
shared memory                        12K
===========                      =======
TOTAL                             168.6M

Model: Macmini3,1, BootROM MM31.0081.B06, 2 processors, Intel Core 2 Duo, 2 GHz, 4 GB, SMC 1.35f0
Graphics: NVIDIA GeForce 9400, NVIDIA GeForce 9400, PCI, 256 MB
Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1067 MHz, 0x802C, 0x31364A53463235363634485A2D3147314631
Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1067 MHz, 0x802C, 0x31364A53463235363634485A2D3147314631
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x90), Broadcom BCM43xx 1.0 (5.10.131.36.11)
Bluetooth: Version 4.0.1f4, 2 service, 18 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en1
Network Service: Ethernet, Ethernet, en0
Serial ATA Device: Hitachi HTS543212L9SA02, 120.03 GB
Serial ATA Device: PIONEER DVD-RW  DVRTS08
USB Device: Mac OS X Install Disk, apple_vendor_id, 0x1502, 0x26200000 / 2
USB Device: IR Receiver, apple_vendor_id, 0x8242, 0x04500000 / 2
USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x06100000 / 2
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8216, 0x06110000 / 3
FireWire Device: Rev2, Drobo, 400mbit_speed


_______________________________________________
Pythonmac-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
Reply | Threaded
Open this post in threaded view
|

Re: New to list with issues….

Ronald Oussoren

On 22 Dec, 2011, at 15:45, Daniel Rahenkamp wrote:

Hi,

I am new to the list and of course I have issues... I have run into a problem of which I find that I am a bit out of my depth in solving. I have upgraded to lion and python 2.7.2 and I have several scripts that I have been running for over a year as dameons are now crashing with errors that I cannot interpret. Any help will be GREATLY appreciated as I am dead in the water in terms of using Python. Below is the error and full problem report. Thanks so much.

The crash log doesn't contain enoug information to be certain of what's going on, but does give some hints. The crash occurs in a module that is used by the urllib library to fetch the system configuration related to proxy servers.    Does your system have a proxy system configured in its network settings?  If so, can you reproduce the issue with a simple script that uses urllib to fetch a webpage?

BTW. You are using the system copy of python, which is 2.7.1 on Lion. If you've installed python 2.7.2 using the python.org installer the binary is Library/Frameworks/Python.framework/Versions/2.7/bin/python.  The directory the binary is in is added to the shell's search path by the installer, but only for the user that ran the installer and only for interactive shells in the terminal. This means that '#!/usr/bin/env python' won't find python 2.7.2 when used in a script that's started from launchd or a startup item.

Ronald


d

Me transmitte sursum, Caledoni!


Process:         Python [282]
Path:            /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier:      Python
Version:         ??? (???)
Code Type:       X86-64 (Native)
Parent Process:  Python [242]

Date/Time:       2011-12-22 09:33:46.551 -0500
OS Version:      Mac OS X 10.7.2 (11C74)
Report Version:  9

Interval Since Last Report:          371206 sec
Crashes Since Last Report:           17
Per-App Crashes Since Last Report:   799
Anonymous UUID:                      3C387DB7-0AA3-4F34-A100-31D1736D2668

Crashed Thread:  0

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000108

VM Regions Near 0x108:
--> 
    __TEXT                 0000000100285000-0000000100286000 [    4K] r-x/rwx SM=COW  /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python

Application Specific Information:
objc[221]: garbage collection is OFF

Thread 0 Crashed:
0   libdispatch.dylib             0x00007fff8b14ace9 _dispatch_wakeup + 108
1   libdispatch.dylib             0x00007fff8b14d876 _dispatch_resume_slow + 20
2   com.apple.CoreFoundation       0x00007fff8af8262c -[NSXPCConnection start] + 92
3   com.apple.CoreFoundation       0x00007fff8af84ca3 __CFXNotificationCenterSetupConnection + 387
4   com.apple.CoreFoundation       0x00007fff8af84b11 __CFXNotificationCenterCreate + 273
5   com.apple.CoreFoundation       0x00007fff8af849ea __CFNotificationCenterGetDistributedCenter_block_invoke_1 + 26
6   libdispatch.dylib             0x00007fff8b14d224 dispatch_once_f + 53
7   com.apple.CoreFoundation       0x00007fff8af73e0a CFNotificationCenterGetDistributedCenter + 74
8   com.apple.CoreFoundation       0x00007fff8afb2eb8 ____CFXPreferencesGetSourceForTriplet_block_invoke_1 + 40
9   libdispatch.dylib             0x00007fff8b14d224 dispatch_once_f + 53
10  com.apple.CoreFoundation       0x00007fff8af7fa4a __CFXPreferencesGetSourceForTriplet + 58
11  com.apple.CoreFoundation       0x00007fff8af8be67 __CFXPreferencesGetSearchListForBundleID + 215
12  com.apple.CoreFoundation       0x00007fff8af8bd48 ___CFXPreferencesCopyAppValue_block_invoke_1 + 24
13  com.apple.CoreFoundation       0x00007fff8af8bcea CFPreferencesCopyAppValue + 218
14  com.apple.SystemConfiguration 0x00007fff928f388c SCDynamicStoreCopyProxies + 43
15  _scproxy.so                   0x0000000100a6e9ba 0x100a6e000 + 2490
16  org.python.python             0x0000000100317b58 PyEval_EvalFrameEx + 13318
17  org.python.python             0x000000010031adf7 0x100290000 + 568823
18  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
19  org.python.python             0x000000010031adf7 0x100290000 + 568823
20  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
21  org.python.python             0x000000010031acd8 PyEval_EvalCodeEx + 1996
22  org.python.python             0x00000001002b8abf 0x100290000 + 166591
23  org.python.python             0x0000000100297d32 PyObject_Call + 97
24  org.python.python             0x00000001002a66e9 0x100290000 + 91881
25  org.python.python             0x0000000100297d32 PyObject_Call + 97
26  org.python.python             0x0000000100313c40 PyEval_CallObjectWithKeywords + 180
27  org.python.python             0x00000001002a3489 PyInstance_New + 273
28  org.python.python             0x0000000100297d32 PyObject_Call + 97
29  org.python.python             0x0000000100317f63 PyEval_EvalFrameEx + 14353
30  org.python.python             0x000000010031acd8 PyEval_EvalCodeEx + 1996
31  org.python.python             0x000000010031ae6c 0x100290000 + 568940
32  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
33  org.python.python             0x000000010031acd8 PyEval_EvalCodeEx + 1996
34  org.python.python             0x000000010031ae6c 0x100290000 + 568940
35  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
36  org.python.python             0x000000010031acd8 PyEval_EvalCodeEx + 1996
37  org.python.python             0x00000001002b8abf 0x100290000 + 166591
38  org.python.python             0x0000000100297d32 PyObject_Call + 97
39  org.python.python             0x00000001003185ec PyEval_EvalFrameEx + 16026
40  org.python.python             0x000000010031adf7 0x100290000 + 568823
41  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
42  org.python.python             0x000000010031adf7 0x100290000 + 568823
43  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
44  org.python.python             0x000000010031acd8 PyEval_EvalCodeEx + 1996
45  org.python.python             0x00000001002b8abf 0x100290000 + 166591
46  org.python.python             0x0000000100297d32 PyObject_Call + 97
47  org.python.python             0x00000001002a66e9 0x100290000 + 91881
48  org.python.python             0x0000000100297d32 PyObject_Call + 97
49  org.python.python             0x00000001002e2484 0x100290000 + 337028
50  org.python.python             0x00000001002dcb7a 0x100290000 + 314234
51  org.python.python             0x0000000100297d32 PyObject_Call + 97
52  org.python.python             0x0000000100317f63 PyEval_EvalFrameEx + 14353
53  org.python.python             0x000000010031adf7 0x100290000 + 568823
54  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
55  org.python.python             0x000000010031adf7 0x100290000 + 568823
56  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
57  org.python.python             0x000000010031acd8 PyEval_EvalCodeEx + 1996
58  org.python.python             0x00000001002b8abf 0x100290000 + 166591
59  org.python.python             0x0000000100297d32 PyObject_Call + 97
60  org.python.python             0x00000001003185ec PyEval_EvalFrameEx + 16026
61  org.python.python             0x000000010031adf7 0x100290000 + 568823
62  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
63  org.python.python             0x000000010031adf7 0x100290000 + 568823
64  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
65  org.python.python             0x000000010031acd8 PyEval_EvalCodeEx + 1996
66  org.python.python             0x00000001002b8abf 0x100290000 + 166591
67  org.python.python             0x0000000100297d32 PyObject_Call + 97
68  org.python.python             0x00000001002a66e9 0x100290000 + 91881
69  org.python.python             0x0000000100297d32 PyObject_Call + 97
70  org.python.python             0x0000000100313c40 PyEval_CallObjectWithKeywords + 180
71  org.python.python             0x000000010034540d 0x100290000 + 742413
72  libsystem_c.dylib             0x00007fff978098bf _pthread_start + 335
73  libsystem_c.dylib             0x00007fff9780cb75 thread_start + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000100  rbx: 0x00007f810a124e50  rcx: 0x00007f810a124e68  rdx: 0x0000000000000001
  rdi: 0x00007f810a124e60  rsi: 0x00007fff8c3d6c40  rbp: 0x0000000101039080  rsp: 0x0000000101039070
   r8: 0x00007f810a083878   r9: 0x0000000000000852  r10: 0x0000000000000081  r11: 0x00007fff8af825d0
  r12: 0x0000000000000000  r13: 0x0000000000000000  r14: 0x00007fff7ad93180  r15: 0x00007f81096fa408
  rip: 0x00007fff8b14ace9  rfl: 0x0000000000010206  cr2: 0x0000000000000108
Logical CPU: 1

Binary Images:
       0x100285000 -        0x100285fff  org.python.python (2.7.1 - 2.7.1) <E2C46621-158F-349B-9131-263E8958B23A> /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
       0x100290000 -        0x1003abff7  org.python.python (2.7.1 - 2.7.1) <A7E34EB5-24D2-3B8F-A26B-4A5B28CD2C60> /System/Library/Frameworks/Python.framework/Versions/2.7/Python
       0x1004ec000 -        0x1004edfff  _locale.so (??? - ???) <FCAE62F7-D07F-3F5F-8057-18224582F344> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_locale.so
       0x1004f1000 -        0x1004fdfff  cPickle.so (??? - ???) <FE1D948F-998C-350E-8002-224D3DCDE8B5> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cPickle.so
       0x100503000 -        0x100503fff  grp.so (??? - ???) <563EC9A6-F38F-3518-9BBB-912E9F01FDA1> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/grp.so
       0x100507000 -        0x10050afff  _multiprocessing.so (??? - ???) <CFAE1A97-134D-3A6D-9646-D5109117D153> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_multiprocessing.so
       0x10050f000 -        0x100511fff  select.so (??? - ???) <FEC6A324-8D3E-3439-9315-BC2AF15A0514> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/select.so
       0x1009dc000 -        0x1009e0fff  _struct.so (??? - ???) <A871A47E-0BF6-3A21-BF66-A5438C54B237> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_struct.so
       0x1009e6000 -        0x1009e8ff7  binascii.so (??? - ???) <9B353DAC-B0E8-3B4B-91A1-50F6F86AA928> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/binascii.so
       0x1009ec000 -        0x1009edfff  _hashlib.so (??? - ???) <C6196B8C-5451-3875-BCD9-2942C6A32FCF> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_hashlib.so
       0x1009f1000 -        0x1009f6fff  array.so (??? - ???) <177F1D09-ACEE-3E39-8F1E-3EE8BA8A7AC6> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/array.so
       0x1009fc000 -        0x100a02ff7  _socket.so (??? - ???) <CB2B2DF1-46C2-3491-A737-4522C807F5A2> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_socket.so
       0x100a0a000 -        0x100a0bfff  _functools.so (??? - ???) <D4679747-9993-34F6-B702-3946FA5BF171> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_functools.so
       0x100a0f000 -        0x100a13fff  _ssl.so (??? - ???) <50FC05D5-0434-3054-9C09-CA8923FED0C0> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_ssl.so
       0x100a19000 -        0x100a1afff  cStringIO.so (??? - ???) <AE5A2A12-8E57-3FE2-B998-C175083B27F7> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cStringIO.so
       0x100a1f000 -        0x100a22fff  _collections.so (??? - ???) <62C1B5B7-654D-397A-8840-7EBB907DBCA1> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_collections.so
       0x100a28000 -        0x100a2bfff  operator.so (??? - ???) <59A152D0-52ED-354C-9C2D-D7390E3EC216> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/operator.so
       0x100a31000 -        0x100a37fff  itertools.so (??? - ???) <7C8350B9-8DD3-377A-A5C1-1103A6C955A6> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/itertools.so
       0x100a40000 -        0x100a40fff  _bisect.so (??? - ???) <CD57DCA1-74B4-37F8-B338-ABDDB1750F22> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_bisect.so
       0x100a44000 -        0x100a45fff  _heapq.so (??? - ???) <A3448C7E-3268-32A5-B4C5-859372FFA7E6> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_heapq.so
       0x100a4a000 -        0x100a4ffff  math.so (??? - ???) <BC93F501-541B-3BA8-B1D7-2644AAD6D6CE> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/math.so
       0x100a55000 -        0x100a56ff7  _random.so (??? - ???) <3C7A7C17-1698-32D0-BF09-F50A19F75E4B> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_random.so
       0x100a5a000 -        0x100a5bfff  fcntl.so (??? - ???) <D2F4AAAE-3C27-3134-84AE-021647AEB1C4> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/fcntl.so
       0x100a5f000 -        0x100a60fff  time.so (??? - ???) <DA274462-B33A-33EB-90F7-BB9FB8120A5D> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/time.so
       0x100a66000 -        0x100a69fff  strop.so (??? - ???) <A317730F-EDDF-3998-8A22-0E632B3E67A4> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/strop.so
       0x100a6e000 -        0x100a6efff  _scproxy.so (??? - ???) <F392F576-344C-3CCB-B93C-E11205241E1D> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_scproxy.so
       0x100b32000 -        0x100b3dff7  datetime.so (??? - ???) <9EC1E3BD-3BD3-3B39-AE19-448CCEEA747A> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/datetime.so
       0x100b46000 -        0x100b4ffff  _sqlite3.so (??? - ???) <4F97C26B-1A2D-33D9-A7B4-C791FA3F645B> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_sqlite3.so
       0x100d9c000 -        0x100da0fff  _json.so (??? - ???) <A8E3EEA8-354B-35C6-A3C5-653928D7419D> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_json.so
       0x100da5000 -        0x100db6fff  _io.so (??? - ???) <5451CA4B-98A0-3F70-9322-DBE6B7D93CF1> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so
       0x100dc5000 -        0x100dcdfff  parser.so (??? - ???) <2E88032A-DFD4-38F0-BE83-03DA706702B1> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/parser.so
       0x100dd2000 -        0x100dd4fff  zlib.so (??? - ???) <81E54FCE-EEAC-3E97-BB05-1143EB6AECA6> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/zlib.so
       0x100f1c000 -        0x100f2dfff  _ctypes.so (??? - ???) <2D2AE6AF-704A-3CBB-954B-33BA49B78254> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_ctypes.so
    0x7fff5fe85000 -     0x7fff5feb9ac7  dyld (195.5 - ???) <4A6E2B28-C7A2-3528-ADB7-4076B9836041> /usr/lib/dyld
    0x7fff8ace9000 -     0x7fff8ad22fe7  libssl.0.9.8.dylib (44.0.0 - compatibility 0.9.8) <79AAEC98-1258-3DA4-B1C0-4120049D390B> /usr/lib/libssl.0.9.8.dylib
    0x7fff8ae97000 -     0x7fff8aeb7fff  libsystem_kernel.dylib (1699.22.73 - compatibility 1.0.0) <69F2F501-72D8-3B3B-8357-F4418B3E1348> /usr/lib/system/libsystem_kernel.dylib
    0x7fff8af21000 -     0x7fff8af23fff  libquarantine.dylib (36.0.0 - compatibility 1.0.0) <4C3BFBC7-E592-3939-B376-1C2E2D7C5389> /usr/lib/system/libquarantine.dylib
    0x7fff8af37000 -     0x7fff8b10bfff  com.apple.CoreFoundation (6.7.1 - 635.15) <FE4A86C2-3599-3CF8-AD1A-822F1FEA820F> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff8b10c000 -     0x7fff8b147ff7  libsystem_info.dylib (??? - ???) <9C8C2DCB-96DB-3471-9DCE-ADCC26BE2DD4> /usr/lib/system/libsystem_info.dylib
    0x7fff8b148000 -     0x7fff8b156fff  libdispatch.dylib (187.7.0 - compatibility 1.0.0) <712AAEAC-AD90-37F7-B71F-293FF8AE8723> /usr/lib/system/libdispatch.dylib
    0x7fff8c79d000 -     0x7fff8c7a2fff  libcache.dylib (47.0.0 - compatibility 1.0.0) <B7757E2E-5A7D-362E-AB71-785FE79E1527> /usr/lib/system/libcache.dylib
    0x7fff8d64a000 -     0x7fff8d64bff7  libremovefile.dylib (21.0.0 - compatibility 1.0.0) <C6C49FB7-1892-32E4-86B5-25AD165131AA> /usr/lib/system/libremovefile.dylib
    0x7fff8edae000 -     0x7fff8edf0ff7  libcommonCrypto.dylib (55010.0.0 - compatibility 1.0.0) <A5B9778E-11C3-3F61-B740-1F2114E967FB> /usr/lib/system/libcommonCrypto.dylib
    0x7fff8f492000 -     0x7fff8f4afff7  libxpc.dylib (77.17.0 - compatibility 1.0.0) <72A16104-2F23-3C22-B474-1953F06F9376> /usr/lib/system/libxpc.dylib
    0x7fff8f778000 -     0x7fff8f779fff  libsystem_sandbox.dylib (??? - ???) <8D14139B-B671-35F4-9E5A-023B4C523C38> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff90a8c000 -     0x7fff90b70def  libobjc.A.dylib (228.0.0 - compatibility 1.0.0) <C5F2392D-B481-3A9D-91BE-3D039FFF4DEC> /usr/lib/libobjc.A.dylib
    0x7fff911f8000 -     0x7fff91201ff7  libsystem_notify.dylib (80.1.0 - compatibility 1.0.0) <A4D651E3-D1C6-3934-AD49-7A104FD14596> /usr/lib/system/libsystem_notify.dylib
    0x7fff912ac000 -     0x7fff91321ff7  libc++.1.dylib (19.0.0 - compatibility 1.0.0) <C0EFFF1B-0FEB-3F99-BE54-506B35B555A9> /usr/lib/libc++.1.dylib
    0x7fff9132e000 -     0x7fff9132ffff  libunc.dylib (24.0.0 - compatibility 1.0.0) <C67B3B14-866C-314F-87FF-8025BEC2CAAC> /usr/lib/system/libunc.dylib
    0x7fff923c8000 -     0x7fff92416fff  libauto.dylib (??? - ???) <D8AC8458-DDD0-3939-8B96-B6CED81613EF> /usr/lib/libauto.dylib
    0x7fff928da000 -     0x7fff928defff  libdyld.dylib (195.5.0 - compatibility 1.0.0) <F1903B7A-D3FF-3390-909A-B24E09BAD1A5> /usr/lib/system/libdyld.dylib
    0x7fff928df000 -     0x7fff9292aff7  com.apple.SystemConfiguration (1.11.1 - 1.11) <F832FE21-5509-37C6-B1F1-48928F31BE45> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    0x7fff92a44000 -     0x7fff92ab7fff  libstdc++.6.dylib (52.0.0 - compatibility 7.0.0) <6BDD43E4-A4B1-379E-9ED5-8C713653DFF2> /usr/lib/libstdc++.6.dylib
    0x7fff92c68000 -     0x7fff92c73ff7  libc++abi.dylib (14.0.0 - compatibility 1.0.0) <8FF3D766-D678-36F6-84AC-423C878E6D14> /usr/lib/libc++abi.dylib
    0x7fff92c74000 -     0x7fff92c78fff  libmathCommon.A.dylib (2026.0.0 - compatibility 1.0.0) <FF83AFF7-42B2-306E-90AF-D539C51A4542> /usr/lib/system/libmathCommon.A.dylib
    0x7fff92c79000 -     0x7fff92c8bff7  libz.1.dylib (1.2.5 - compatibility 1.0.0) <30CBEF15-4978-3DED-8629-7109880A19D4> /usr/lib/libz.1.dylib
    0x7fff92c8e000 -     0x7fff92c8efff  libkeymgr.dylib (23.0.0 - compatibility 1.0.0) <61EFED6A-A407-301E-B454-CD18314F0075> /usr/lib/system/libkeymgr.dylib
    0x7fff92c8f000 -     0x7fff92c90ff7  libsystem_blocks.dylib (53.0.0 - compatibility 1.0.0) <8BCA214A-8992-34B2-A8B9-B74DEACA1869> /usr/lib/system/libsystem_blocks.dylib
    0x7fff92e7c000 -     0x7fff92e82ff7  libunwind.dylib (30.0.0 - compatibility 1.0.0) <1E9C6C8C-CBE8-3F4B-A5B5-E03E3AB53231> /usr/lib/system/libunwind.dylib
    0x7fff93681000 -     0x7fff93686ff7  libsystem_network.dylib (??? - ???) <5DE7024E-1D2D-34A2-80F4-08326331A75B> /usr/lib/system/libsystem_network.dylib
    0x7fff93687000 -     0x7fff9368cfff  libcompiler_rt.dylib (6.0.0 - compatibility 1.0.0) <98ECD5F6-E85C-32A5-98CD-8911230CB66A> /usr/lib/system/libcompiler_rt.dylib
    0x7fff936ce000 -     0x7fff938d0fff  libicucore.A.dylib (46.1.0 - compatibility 1.0.0) <38CD6ED3-C8E4-3CCD-89AC-9C3198803101> /usr/lib/libicucore.A.dylib
    0x7fff95141000 -     0x7fff95149fff  libsystem_dnssd.dylib (??? - ???) <7749128E-D0C5-3832-861C-BC9913F774FA> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff95396000 -     0x7fff95397fff  libffi.dylib (??? - ???) <DB96CC4B-0D38-3102-80AA-91DDE9AF3886> /usr/lib/libffi.dylib
    0x7fff95c12000 -     0x7fff95d1efff  libcrypto.0.9.8.dylib (44.0.0 - compatibility 0.9.8) <3A8E1F89-5E26-3C8B-B538-81F5D61DBF8A> /usr/lib/libcrypto.0.9.8.dylib
    0x7fff95e42000 -     0x7fff95e43fff  libdnsinfo.dylib (395.6.0 - compatibility 1.0.0) <718A135F-6349-354A-85D5-430B128EFD57> /usr/lib/system/libdnsinfo.dylib
    0x7fff9653c000 -     0x7fff96543fff  libcopyfile.dylib (85.1.0 - compatibility 1.0.0) <172B1985-F24A-34E9-8D8B-A2403C9A0399> /usr/lib/system/libcopyfile.dylib
    0x7fff96544000 -     0x7fff96546fff  com.apple.TrustEvaluationAgent (2.0 - 1) <1F31CAFF-C1C6-33D3-94E9-11B721761DDF> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
    0x7fff96547000 -     0x7fff9654dfff  libmacho.dylib (800.0.0 - compatibility 1.0.0) <D86F63EC-D2BD-32E0-8955-08B5EAFAD2CC> /usr/lib/system/libmacho.dylib
    0x7fff96845000 -     0x7fff96948fff  libsqlite3.dylib (9.6.0 - compatibility 9.0.0) <7F60B0FF-4946-3639-89AB-B540D318B249> /usr/lib/libsqlite3.dylib
    0x7fff96949000 -     0x7fff96976fe7  libSystem.B.dylib (159.1.0 - compatibility 1.0.0) <095FDD3C-3961-3865-A59B-A5B0A4B8B923> /usr/lib/libSystem.B.dylib
    0x7fff977b9000 -     0x7fff977bafff  libDiagnosticMessagesClient.dylib (??? - ???) <3DCF577B-F126-302B-BCE2-4DB9A95B8598> /usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff977bb000 -     0x7fff97898fef  libsystem_c.dylib (763.12.0 - compatibility 1.0.0) <FF69F06E-0904-3C08-A5EF-536FAFFFDC22> /usr/lib/system/libsystem_c.dylib
    0x7fff978b6000 -     0x7fff978c0ff7  liblaunch.dylib (392.18.0 - compatibility 1.0.0) <39EF04F2-7F0C-3435-B785-BF283727FFBD> /usr/lib/system/liblaunch.dylib

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 235
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=60.9M resident=39.6M(65%) swapped_out_or_unallocated=21.3M(35%)
Writable regions: Total=49.7M written=2308K(5%) resident=19.9M(40%) swapped_out=0K(0%) unallocated=29.8M(60%)
 
REGION TYPE                      VIRTUAL
===========                      =======
MALLOC                             34.6M
MALLOC guard page                    48K
SQLite page cache                    96K
STACK GUARD                           4K
Stack                              70.6M
VM_ALLOCATE                           8K
__DATA                             1780K
__LINKEDIT                         48.0M
__TEXT                             12.9M
__UNICODE                           544K
shared memory                        12K
===========                      =======
TOTAL                             168.6M

Model: Macmini3,1, BootROM MM31.0081.B06, 2 processors, Intel Core 2 Duo, 2 GHz, 4 GB, SMC 1.35f0
Graphics: NVIDIA GeForce 9400, NVIDIA GeForce 9400, PCI, 256 MB
Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1067 MHz, 0x802C, 0x31364A53463235363634485A2D3147314631
Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1067 MHz, 0x802C, 0x31364A53463235363634485A2D3147314631
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x90), Broadcom BCM43xx 1.0 (5.10.131.36.11)
Bluetooth: Version 4.0.1f4, 2 service, 18 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en1
Network Service: Ethernet, Ethernet, en0
Serial ATA Device: Hitachi HTS543212L9SA02, 120.03 GB
Serial ATA Device: PIONEER DVD-RW  DVRTS08
USB Device: Mac OS X Install Disk, apple_vendor_id, 0x1502, 0x26200000 / 2
USB Device: IR Receiver, apple_vendor_id, 0x8242, 0x04500000 / 2
USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x06100000 / 2
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8216, 0x06110000 / 3
FireWire Device: Rev2, Drobo, 400mbit_speed

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


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

smime.p7s (6K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: New to list with issues….

Henning Hraban Ramm
In reply to this post by Daniel Rahenkamp

Am 2011-12-22 um 15:45 schrieb Daniel Rahenkamp:

> Hi,
>
> I am new to the list and of course I have issues... I have run into  
> a problem of which I find that I am a bit out of my depth in  
> solving. I have upgraded to lion and python 2.7.2 and I have several  
> scripts that I have been running for over a year as dameons are now  
> crashing with errors that I cannot interpret. Any help will be  
> GREATLY appreciated as I am dead in the water in terms of using  
> Python. Below is the error and full problem report. Thanks so much.

Apple’s crash report is probably useless (but maybe there are greater  
wizards than me on this list that can make any sense from it) - try to  
get a proper Python traceback!
Maybe it’s in the console.log
Did you try to run your scripts on the command line, i.e. not as  
daemons?
Can you show us (parts of) the scripts? Probably there are modules  
missing.
Did you run from a system Python before?


Best Greetlings!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)





_______________________________________________
Pythonmac-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
Reply | Threaded
Open this post in threaded view
|

Re: New to list with issues….

Ronald Oussoren
In reply to this post by Daniel Rahenkamp
(according to my mailbox and the list archives this didn't get through on my first attempt)

On 22 Dec, 2011, at 15:45, Daniel Rahenkamp wrote:

Hi,

I am new to the list and of course I have issues... I have run into a problem of which I find that I am a bit out of my depth in solving. I have upgraded to lion and python 2.7.2 and I have several scripts that I have been running for over a year as dameons are now crashing with errors that I cannot interpret. Any help will be GREATLY appreciated as I am dead in the water in terms of using Python. Below is the error and full problem report. Thanks so much.

The crash log doesn't contain enoug information to be certain of what's going on, but does give some hints. The crash occurs in a module that is used by the urllib library to fetch the system configuration related to proxy servers.    Does your system have a proxy system configured in its network settings?  If so, can you reproduce the issue with a simple script that uses urllib to fetch a webpage?

BTW. You are using the system copy of python, which is 2.7.1 on Lion. If you've installed python 2.7.2 using the python.org installer the binary is Library/Frameworks/Python.framework/Versions/2.7/bin/python.  The directory the binary is in is added to the shell's search path by the installer, but only for the user that ran the installer and only for interactive shells in the terminal. This means that '#!/usr/bin/env python' won't find python 2.7.2 when used in a script that's started from launchd or a startup item.

Ronald


d

Me transmitte sursum, Caledoni!


Process:         Python [282]
Path:            /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier:      Python
Version:         ??? (???)
Code Type:       X86-64 (Native)
Parent Process:  Python [242]

Date/Time:       2011-12-22 09:33:46.551 -0500
OS Version:      Mac OS X 10.7.2 (11C74)
Report Version:  9

Interval Since Last Report:          371206 sec
Crashes Since Last Report:           17
Per-App Crashes Since Last Report:   799
Anonymous UUID:                      3C387DB7-0AA3-4F34-A100-31D1736D2668

Crashed Thread:  0

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000108

VM Regions Near 0x108:
--> 
    __TEXT                 0000000100285000-0000000100286000 [    4K] r-x/rwx SM=COW  /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python

Application Specific Information:
objc[221]: garbage collection is OFF

Thread 0 Crashed:
0   libdispatch.dylib             0x00007fff8b14ace9 _dispatch_wakeup + 108
1   libdispatch.dylib             0x00007fff8b14d876 _dispatch_resume_slow + 20
2   com.apple.CoreFoundation       0x00007fff8af8262c -[NSXPCConnection start] + 92
3   com.apple.CoreFoundation       0x00007fff8af84ca3 __CFXNotificationCenterSetupConnection + 387
4   com.apple.CoreFoundation       0x00007fff8af84b11 __CFXNotificationCenterCreate + 273
5   com.apple.CoreFoundation       0x00007fff8af849ea __CFNotificationCenterGetDistributedCenter_block_invoke_1 + 26
6   libdispatch.dylib             0x00007fff8b14d224 dispatch_once_f + 53
7   com.apple.CoreFoundation       0x00007fff8af73e0a CFNotificationCenterGetDistributedCenter + 74
8   com.apple.CoreFoundation       0x00007fff8afb2eb8 ____CFXPreferencesGetSourceForTriplet_block_invoke_1 + 40
9   libdispatch.dylib             0x00007fff8b14d224 dispatch_once_f + 53
10  com.apple.CoreFoundation       0x00007fff8af7fa4a __CFXPreferencesGetSourceForTriplet + 58
11  com.apple.CoreFoundation       0x00007fff8af8be67 __CFXPreferencesGetSearchListForBundleID + 215
12  com.apple.CoreFoundation       0x00007fff8af8bd48 ___CFXPreferencesCopyAppValue_block_invoke_1 + 24
13  com.apple.CoreFoundation       0x00007fff8af8bcea CFPreferencesCopyAppValue + 218
14  com.apple.SystemConfiguration 0x00007fff928f388c SCDynamicStoreCopyProxies + 43
15  _scproxy.so                   0x0000000100a6e9ba 0x100a6e000 + 2490
16  org.python.python             0x0000000100317b58 PyEval_EvalFrameEx + 13318
17  org.python.python             0x000000010031adf7 0x100290000 + 568823
18  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
19  org.python.python             0x000000010031adf7 0x100290000 + 568823
20  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
21  org.python.python             0x000000010031acd8 PyEval_EvalCodeEx + 1996
22  org.python.python             0x00000001002b8abf 0x100290000 + 166591
23  org.python.python             0x0000000100297d32 PyObject_Call + 97
24  org.python.python             0x00000001002a66e9 0x100290000 + 91881
25  org.python.python             0x0000000100297d32 PyObject_Call + 97
26  org.python.python             0x0000000100313c40 PyEval_CallObjectWithKeywords + 180
27  org.python.python             0x00000001002a3489 PyInstance_New + 273
28  org.python.python             0x0000000100297d32 PyObject_Call + 97
29  org.python.python             0x0000000100317f63 PyEval_EvalFrameEx + 14353
30  org.python.python             0x000000010031acd8 PyEval_EvalCodeEx + 1996
31  org.python.python             0x000000010031ae6c 0x100290000 + 568940
32  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
33  org.python.python             0x000000010031acd8 PyEval_EvalCodeEx + 1996
34  org.python.python             0x000000010031ae6c 0x100290000 + 568940
35  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
36  org.python.python             0x000000010031acd8 PyEval_EvalCodeEx + 1996
37  org.python.python             0x00000001002b8abf 0x100290000 + 166591
38  org.python.python             0x0000000100297d32 PyObject_Call + 97
39  org.python.python             0x00000001003185ec PyEval_EvalFrameEx + 16026
40  org.python.python             0x000000010031adf7 0x100290000 + 568823
41  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
42  org.python.python             0x000000010031adf7 0x100290000 + 568823
43  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
44  org.python.python             0x000000010031acd8 PyEval_EvalCodeEx + 1996
45  org.python.python             0x00000001002b8abf 0x100290000 + 166591
46  org.python.python             0x0000000100297d32 PyObject_Call + 97
47  org.python.python             0x00000001002a66e9 0x100290000 + 91881
48  org.python.python             0x0000000100297d32 PyObject_Call + 97
49  org.python.python             0x00000001002e2484 0x100290000 + 337028
50  org.python.python             0x00000001002dcb7a 0x100290000 + 314234
51  org.python.python             0x0000000100297d32 PyObject_Call + 97
52  org.python.python             0x0000000100317f63 PyEval_EvalFrameEx + 14353
53  org.python.python             0x000000010031adf7 0x100290000 + 568823
54  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
55  org.python.python             0x000000010031adf7 0x100290000 + 568823
56  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
57  org.python.python             0x000000010031acd8 PyEval_EvalCodeEx + 1996
58  org.python.python             0x00000001002b8abf 0x100290000 + 166591
59  org.python.python             0x0000000100297d32 PyObject_Call + 97
60  org.python.python             0x00000001003185ec PyEval_EvalFrameEx + 16026
61  org.python.python             0x000000010031adf7 0x100290000 + 568823
62  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
63  org.python.python             0x000000010031adf7 0x100290000 + 568823
64  org.python.python             0x0000000100317e0a PyEval_EvalFrameEx + 14008
65  org.python.python             0x000000010031acd8 PyEval_EvalCodeEx + 1996
66  org.python.python             0x00000001002b8abf 0x100290000 + 166591
67  org.python.python             0x0000000100297d32 PyObject_Call + 97
68  org.python.python             0x00000001002a66e9 0x100290000 + 91881
69  org.python.python             0x0000000100297d32 PyObject_Call + 97
70  org.python.python             0x0000000100313c40 PyEval_CallObjectWithKeywords + 180
71  org.python.python             0x000000010034540d 0x100290000 + 742413
72  libsystem_c.dylib             0x00007fff978098bf _pthread_start + 335
73  libsystem_c.dylib             0x00007fff9780cb75 thread_start + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000100  rbx: 0x00007f810a124e50  rcx: 0x00007f810a124e68  rdx: 0x0000000000000001
  rdi: 0x00007f810a124e60  rsi: 0x00007fff8c3d6c40  rbp: 0x0000000101039080  rsp: 0x0000000101039070
   r8: 0x00007f810a083878   r9: 0x0000000000000852  r10: 0x0000000000000081  r11: 0x00007fff8af825d0
  r12: 0x0000000000000000  r13: 0x0000000000000000  r14: 0x00007fff7ad93180  r15: 0x00007f81096fa408
  rip: 0x00007fff8b14ace9  rfl: 0x0000000000010206  cr2: 0x0000000000000108
Logical CPU: 1

Binary Images:
       0x100285000 -        0x100285fff  org.python.python (2.7.1 - 2.7.1) <E2C46621-158F-349B-9131-263E8958B23A> /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
       0x100290000 -        0x1003abff7  org.python.python (2.7.1 - 2.7.1) <A7E34EB5-24D2-3B8F-A26B-4A5B28CD2C60> /System/Library/Frameworks/Python.framework/Versions/2.7/Python
       0x1004ec000 -        0x1004edfff  _locale.so (??? - ???) <FCAE62F7-D07F-3F5F-8057-18224582F344> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_locale.so
       0x1004f1000 -        0x1004fdfff  cPickle.so (??? - ???) <FE1D948F-998C-350E-8002-224D3DCDE8B5> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cPickle.so
       0x100503000 -        0x100503fff  grp.so (??? - ???) <563EC9A6-F38F-3518-9BBB-912E9F01FDA1> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/grp.so
       0x100507000 -        0x10050afff  _multiprocessing.so (??? - ???) <CFAE1A97-134D-3A6D-9646-D5109117D153> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_multiprocessing.so
       0x10050f000 -        0x100511fff  select.so (??? - ???) <FEC6A324-8D3E-3439-9315-BC2AF15A0514> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/select.so
       0x1009dc000 -        0x1009e0fff  _struct.so (??? - ???) <A871A47E-0BF6-3A21-BF66-A5438C54B237> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_struct.so
       0x1009e6000 -        0x1009e8ff7  binascii.so (??? - ???) <9B353DAC-B0E8-3B4B-91A1-50F6F86AA928> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/binascii.so
       0x1009ec000 -        0x1009edfff  _hashlib.so (??? - ???) <C6196B8C-5451-3875-BCD9-2942C6A32FCF> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_hashlib.so
       0x1009f1000 -        0x1009f6fff  array.so (??? - ???) <177F1D09-ACEE-3E39-8F1E-3EE8BA8A7AC6> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/array.so
       0x1009fc000 -        0x100a02ff7  _socket.so (??? - ???) <CB2B2DF1-46C2-3491-A737-4522C807F5A2> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_socket.so
       0x100a0a000 -        0x100a0bfff  _functools.so (??? - ???) <D4679747-9993-34F6-B702-3946FA5BF171> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_functools.so
       0x100a0f000 -        0x100a13fff  _ssl.so (??? - ???) <50FC05D5-0434-3054-9C09-CA8923FED0C0> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_ssl.so
       0x100a19000 -        0x100a1afff  cStringIO.so (??? - ???) <AE5A2A12-8E57-3FE2-B998-C175083B27F7> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cStringIO.so
       0x100a1f000 -        0x100a22fff  _collections.so (??? - ???) <62C1B5B7-654D-397A-8840-7EBB907DBCA1> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_collections.so
       0x100a28000 -        0x100a2bfff  operator.so (??? - ???) <59A152D0-52ED-354C-9C2D-D7390E3EC216> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/operator.so
       0x100a31000 -        0x100a37fff  itertools.so (??? - ???) <7C8350B9-8DD3-377A-A5C1-1103A6C955A6> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/itertools.so
       0x100a40000 -        0x100a40fff  _bisect.so (??? - ???) <CD57DCA1-74B4-37F8-B338-ABDDB1750F22> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_bisect.so
       0x100a44000 -        0x100a45fff  _heapq.so (??? - ???) <A3448C7E-3268-32A5-B4C5-859372FFA7E6> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_heapq.so
       0x100a4a000 -        0x100a4ffff  math.so (??? - ???) <BC93F501-541B-3BA8-B1D7-2644AAD6D6CE> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/math.so
       0x100a55000 -        0x100a56ff7  _random.so (??? - ???) <3C7A7C17-1698-32D0-BF09-F50A19F75E4B> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_random.so
       0x100a5a000 -        0x100a5bfff  fcntl.so (??? - ???) <D2F4AAAE-3C27-3134-84AE-021647AEB1C4> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/fcntl.so
       0x100a5f000 -        0x100a60fff  time.so (??? - ???) <DA274462-B33A-33EB-90F7-BB9FB8120A5D> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/time.so
       0x100a66000 -        0x100a69fff  strop.so (??? - ???) <A317730F-EDDF-3998-8A22-0E632B3E67A4> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/strop.so
       0x100a6e000 -        0x100a6efff  _scproxy.so (??? - ???) <F392F576-344C-3CCB-B93C-E11205241E1D> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_scproxy.so
       0x100b32000 -        0x100b3dff7  datetime.so (??? - ???) <9EC1E3BD-3BD3-3B39-AE19-448CCEEA747A> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/datetime.so
       0x100b46000 -        0x100b4ffff  _sqlite3.so (??? - ???) <4F97C26B-1A2D-33D9-A7B4-C791FA3F645B> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_sqlite3.so
       0x100d9c000 -        0x100da0fff  _json.so (??? - ???) <A8E3EEA8-354B-35C6-A3C5-653928D7419D> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_json.so
       0x100da5000 -        0x100db6fff  _io.so (??? - ???) <5451CA4B-98A0-3F70-9322-DBE6B7D93CF1> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so
       0x100dc5000 -        0x100dcdfff  parser.so (??? - ???) <2E88032A-DFD4-38F0-BE83-03DA706702B1> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/parser.so
       0x100dd2000 -        0x100dd4fff  zlib.so (??? - ???) <81E54FCE-EEAC-3E97-BB05-1143EB6AECA6> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/zlib.so
       0x100f1c000 -        0x100f2dfff  _ctypes.so (??? - ???) <2D2AE6AF-704A-3CBB-954B-33BA49B78254> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_ctypes.so
    0x7fff5fe85000 -     0x7fff5feb9ac7  dyld (195.5 - ???) <4A6E2B28-C7A2-3528-ADB7-4076B9836041> /usr/lib/dyld
    0x7fff8ace9000 -     0x7fff8ad22fe7  libssl.0.9.8.dylib (44.0.0 - compatibility 0.9.8) <79AAEC98-1258-3DA4-B1C0-4120049D390B> /usr/lib/libssl.0.9.8.dylib
    0x7fff8ae97000 -     0x7fff8aeb7fff  libsystem_kernel.dylib (1699.22.73 - compatibility 1.0.0) <69F2F501-72D8-3B3B-8357-F4418B3E1348> /usr/lib/system/libsystem_kernel.dylib
    0x7fff8af21000 -     0x7fff8af23fff  libquarantine.dylib (36.0.0 - compatibility 1.0.0) <4C3BFBC7-E592-3939-B376-1C2E2D7C5389> /usr/lib/system/libquarantine.dylib
    0x7fff8af37000 -     0x7fff8b10bfff  com.apple.CoreFoundation (6.7.1 - 635.15) <FE4A86C2-3599-3CF8-AD1A-822F1FEA820F> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff8b10c000 -     0x7fff8b147ff7  libsystem_info.dylib (??? - ???) <9C8C2DCB-96DB-3471-9DCE-ADCC26BE2DD4> /usr/lib/system/libsystem_info.dylib
    0x7fff8b148000 -     0x7fff8b156fff  libdispatch.dylib (187.7.0 - compatibility 1.0.0) <712AAEAC-AD90-37F7-B71F-293FF8AE8723> /usr/lib/system/libdispatch.dylib
    0x7fff8c79d000 -     0x7fff8c7a2fff  libcache.dylib (47.0.0 - compatibility 1.0.0) <B7757E2E-5A7D-362E-AB71-785FE79E1527> /usr/lib/system/libcache.dylib
    0x7fff8d64a000 -     0x7fff8d64bff7  libremovefile.dylib (21.0.0 - compatibility 1.0.0) <C6C49FB7-1892-32E4-86B5-25AD165131AA> /usr/lib/system/libremovefile.dylib
    0x7fff8edae000 -     0x7fff8edf0ff7  libcommonCrypto.dylib (55010.0.0 - compatibility 1.0.0) <A5B9778E-11C3-3F61-B740-1F2114E967FB> /usr/lib/system/libcommonCrypto.dylib
    0x7fff8f492000 -     0x7fff8f4afff7  libxpc.dylib (77.17.0 - compatibility 1.0.0) <72A16104-2F23-3C22-B474-1953F06F9376> /usr/lib/system/libxpc.dylib
    0x7fff8f778000 -     0x7fff8f779fff  libsystem_sandbox.dylib (??? - ???) <8D14139B-B671-35F4-9E5A-023B4C523C38> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff90a8c000 -     0x7fff90b70def  libobjc.A.dylib (228.0.0 - compatibility 1.0.0) <C5F2392D-B481-3A9D-91BE-3D039FFF4DEC> /usr/lib/libobjc.A.dylib
    0x7fff911f8000 -     0x7fff91201ff7  libsystem_notify.dylib (80.1.0 - compatibility 1.0.0) <A4D651E3-D1C6-3934-AD49-7A104FD14596> /usr/lib/system/libsystem_notify.dylib
    0x7fff912ac000 -     0x7fff91321ff7  libc++.1.dylib (19.0.0 - compatibility 1.0.0) <C0EFFF1B-0FEB-3F99-BE54-506B35B555A9> /usr/lib/libc++.1.dylib
    0x7fff9132e000 -     0x7fff9132ffff  libunc.dylib (24.0.0 - compatibility 1.0.0) <C67B3B14-866C-314F-87FF-8025BEC2CAAC> /usr/lib/system/libunc.dylib
    0x7fff923c8000 -     0x7fff92416fff  libauto.dylib (??? - ???) <D8AC8458-DDD0-3939-8B96-B6CED81613EF> /usr/lib/libauto.dylib
    0x7fff928da000 -     0x7fff928defff  libdyld.dylib (195.5.0 - compatibility 1.0.0) <F1903B7A-D3FF-3390-909A-B24E09BAD1A5> /usr/lib/system/libdyld.dylib
    0x7fff928df000 -     0x7fff9292aff7  com.apple.SystemConfiguration (1.11.1 - 1.11) <F832FE21-5509-37C6-B1F1-48928F31BE45> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    0x7fff92a44000 -     0x7fff92ab7fff  libstdc++.6.dylib (52.0.0 - compatibility 7.0.0) <6BDD43E4-A4B1-379E-9ED5-8C713653DFF2> /usr/lib/libstdc++.6.dylib
    0x7fff92c68000 -     0x7fff92c73ff7  libc++abi.dylib (14.0.0 - compatibility 1.0.0) <8FF3D766-D678-36F6-84AC-423C878E6D14> /usr/lib/libc++abi.dylib
    0x7fff92c74000 -     0x7fff92c78fff  libmathCommon.A.dylib (2026.0.0 - compatibility 1.0.0) <FF83AFF7-42B2-306E-90AF-D539C51A4542> /usr/lib/system/libmathCommon.A.dylib
    0x7fff92c79000 -     0x7fff92c8bff7  libz.1.dylib (1.2.5 - compatibility 1.0.0) <30CBEF15-4978-3DED-8629-7109880A19D4> /usr/lib/libz.1.dylib
    0x7fff92c8e000 -     0x7fff92c8efff  libkeymgr.dylib (23.0.0 - compatibility 1.0.0) <61EFED6A-A407-301E-B454-CD18314F0075> /usr/lib/system/libkeymgr.dylib
    0x7fff92c8f000 -     0x7fff92c90ff7  libsystem_blocks.dylib (53.0.0 - compatibility 1.0.0) <8BCA214A-8992-34B2-A8B9-B74DEACA1869> /usr/lib/system/libsystem_blocks.dylib
    0x7fff92e7c000 -     0x7fff92e82ff7  libunwind.dylib (30.0.0 - compatibility 1.0.0) <1E9C6C8C-CBE8-3F4B-A5B5-E03E3AB53231> /usr/lib/system/libunwind.dylib
    0x7fff93681000 -     0x7fff93686ff7  libsystem_network.dylib (??? - ???) <5DE7024E-1D2D-34A2-80F4-08326331A75B> /usr/lib/system/libsystem_network.dylib
    0x7fff93687000 -     0x7fff9368cfff  libcompiler_rt.dylib (6.0.0 - compatibility 1.0.0) <98ECD5F6-E85C-32A5-98CD-8911230CB66A> /usr/lib/system/libcompiler_rt.dylib
    0x7fff936ce000 -     0x7fff938d0fff  libicucore.A.dylib (46.1.0 - compatibility 1.0.0) <38CD6ED3-C8E4-3CCD-89AC-9C3198803101> /usr/lib/libicucore.A.dylib
    0x7fff95141000 -     0x7fff95149fff  libsystem_dnssd.dylib (??? - ???) <7749128E-D0C5-3832-861C-BC9913F774FA> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff95396000 -     0x7fff95397fff  libffi.dylib (??? - ???) <DB96CC4B-0D38-3102-80AA-91DDE9AF3886> /usr/lib/libffi.dylib
    0x7fff95c12000 -     0x7fff95d1efff  libcrypto.0.9.8.dylib (44.0.0 - compatibility 0.9.8) <3A8E1F89-5E26-3C8B-B538-81F5D61DBF8A> /usr/lib/libcrypto.0.9.8.dylib
    0x7fff95e42000 -     0x7fff95e43fff  libdnsinfo.dylib (395.6.0 - compatibility 1.0.0) <718A135F-6349-354A-85D5-430B128EFD57> /usr/lib/system/libdnsinfo.dylib
    0x7fff9653c000 -     0x7fff96543fff  libcopyfile.dylib (85.1.0 - compatibility 1.0.0) <172B1985-F24A-34E9-8D8B-A2403C9A0399> /usr/lib/system/libcopyfile.dylib
    0x7fff96544000 -     0x7fff96546fff  com.apple.TrustEvaluationAgent (2.0 - 1) <1F31CAFF-C1C6-33D3-94E9-11B721761DDF> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
    0x7fff96547000 -     0x7fff9654dfff  libmacho.dylib (800.0.0 - compatibility 1.0.0) <D86F63EC-D2BD-32E0-8955-08B5EAFAD2CC> /usr/lib/system/libmacho.dylib
    0x7fff96845000 -     0x7fff96948fff  libsqlite3.dylib (9.6.0 - compatibility 9.0.0) <7F60B0FF-4946-3639-89AB-B540D318B249> /usr/lib/libsqlite3.dylib
    0x7fff96949000 -     0x7fff96976fe7  libSystem.B.dylib (159.1.0 - compatibility 1.0.0) <095FDD3C-3961-3865-A59B-A5B0A4B8B923> /usr/lib/libSystem.B.dylib
    0x7fff977b9000 -     0x7fff977bafff  libDiagnosticMessagesClient.dylib (??? - ???) <3DCF577B-F126-302B-BCE2-4DB9A95B8598> /usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff977bb000 -     0x7fff97898fef  libsystem_c.dylib (763.12.0 - compatibility 1.0.0) <FF69F06E-0904-3C08-A5EF-536FAFFFDC22> /usr/lib/system/libsystem_c.dylib
    0x7fff978b6000 -     0x7fff978c0ff7  liblaunch.dylib (392.18.0 - compatibility 1.0.0) <39EF04F2-7F0C-3435-B785-BF283727FFBD> /usr/lib/system/liblaunch.dylib

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 235
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=60.9M resident=39.6M(65%) swapped_out_or_unallocated=21.3M(35%)
Writable regions: Total=49.7M written=2308K(5%) resident=19.9M(40%) swapped_out=0K(0%) unallocated=29.8M(60%)
 
REGION TYPE                      VIRTUAL
===========                      =======
MALLOC                             34.6M
MALLOC guard page                    48K
SQLite page cache                    96K
STACK GUARD                           4K
Stack                              70.6M
VM_ALLOCATE                           8K
__DATA                             1780K
__LINKEDIT                         48.0M
__TEXT                             12.9M
__UNICODE                           544K
shared memory                        12K
===========                      =======
TOTAL                             168.6M

Model: Macmini3,1, BootROM MM31.0081.B06, 2 processors, Intel Core 2 Duo, 2 GHz, 4 GB, SMC 1.35f0
Graphics: NVIDIA GeForce 9400, NVIDIA GeForce 9400, PCI, 256 MB
Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1067 MHz, 0x802C, 0x31364A53463235363634485A2D3147314631
Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1067 MHz, 0x802C, 0x31364A53463235363634485A2D3147314631
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x90), Broadcom BCM43xx 1.0 (5.10.131.36.11)
Bluetooth: Version 4.0.1f4, 2 service, 18 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en1
Network Service: Ethernet, Ethernet, en0
Serial ATA Device: Hitachi HTS543212L9SA02, 120.03 GB
Serial ATA Device: PIONEER DVD-RW  DVRTS08
USB Device: Mac OS X Install Disk, apple_vendor_id, 0x1502, 0x26200000 / 2
USB Device: IR Receiver, apple_vendor_id, 0x8242, 0x04500000 / 2
USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x06100000 / 2
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8216, 0x06110000 / 3
FireWire Device: Rev2, Drobo, 400mbit_speed

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


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

smime.p7s (6K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

compiling python extension

michael ferraro

I am trying to compile a python extension that uses
        Quicktime Video Output Components

as shown in the Mac Developers Library
        SimpleVideoOutXcode.xodeproj


i am building the extension using the setup.py script attached below
I need to run python in 32-bit because Quicktime has not been upgraded to 64-bit
I am running 10.7.2  and the Apple installed python 2.7.1

/usr/bin/python: Mach-O universal binary with 2 architectures
/usr/bin/python (for architecture x86_64): Mach-O 64-bit executable x86_64
/usr/bin/python (for architecture i386): Mach-O executable i386


this is an excerpt of the output i am getting when I try to build the extension
NOTE: this line
        KVoutModule.c:44: error: expected specifier-qualifier-list before ‘QTVideoOutputComponent’
seems to indicate that I am not including the Quicktime/QuicktimeComponents.h header (which I am)
as shown in the excerpt from the KVout.c source.

relavent setup.py line:
include_dirs = ['.', '/System/Library/Frameworks/Quicktime.framework/Headers/']


------------------------------------
-----------------> output from : arch -i386 /usr/bin/python setup.py build
-----------------------------------


running build
running build_ext
building 'KVout' extension
creating build
creating build/temp.macosx-10.7-intel-2.7
llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -DMAJOR_VERSION=1 -DMINOR_VERSION=0 -I. -I/System/Library/Frameworks/Quicktime.framework/Headers/ -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c KVoutModule.c -o build/temp.macosx-10.7-intel-2.7/KVoutModule.o -m32 -framework Quicktime
KVoutModule.c: In function ‘KVout_Begin’:
KVoutModule.c:197: warning: ‘ComponentFunctionImplemented’ is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Components.h:1216)
KVoutModule.c: At top level:
KVoutModule.c:537: warning: initialization from incompatible pointer type
i686-apple-darwin11-llvm-gcc-4.2: -framework: linker input file unused because linking not done
i686-apple-darwin11-llvm-gcc-4.2: Quicktime: linker input file unused because linking not done
KVoutModule.c:44: error: expected specifier-qualifier-list before ‘QTVideoOutputComponent’
KVoutModule.c:91: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘KVoutComponent_GetInstance’
KVoutModule.c:93: error: expected ‘)’ before ‘container’
KVoutModule.c:94: error: expected declaration specifiers or ‘...’ before ‘QTAtom’
KVoutModule.c:94: error: expected declaration specifiers or ‘...’ before ‘QTAtomContainer’
KVoutModule.c: In function ‘KVout_Open’:
KVoutModule.c:142: warning: implicit declaration of function ‘KVoutComponent_GetInstance’
KVoutModule.c:142: warning: assignment makes pointer from integer without a cast
KVoutModule.c:148: warning: implicit declaration of function ‘QTVideoOutputSetClientName’
KVoutModule.c:151: warning: implicit declaration of function ‘QTVideoOutputSetDisplayMode’
KVoutModule.c: In function ‘KVout_Begin’:
KVoutModule.c:188: warning: assignment makes pointer from integer without a cast
KVoutModule.c:191: warning: implicit declaration of function ‘QTVideoOutputBegin’
KVoutModule.c:197: warning: implicit declaration of function ‘ComponentFunctionImplemented’
KVoutModule.c:197: error: ‘kQTVideoOutputSetEchoPortSelect’ undeclared (first use in this function)
KVoutModule.c:197: error: (Each undeclared identifier is reported only once
KVoutModule.c:197: error: for each function it appears in.)
KVoutModule.c:201: warning: implicit declaration of function ‘QTVideoOutputGetGWorld’



QUESTION:
Is there something more I need to do (or am I doing something wrong) that is keeping this from compiling

 


------------------------------------
-----------------> excerpt from my KVout.c
-----------------------------------



#include <Python/Python.h>
#include <Carbon/Carbon.h>

#include <OpenGL/OpenGL.h>
#include <QuickTime/QuickTime.h>
#include <QuickTime/QuickTimeComponents.h>
       
#include <Python/structmember.h>

static PyObject *ErrorObject; /* loacal exceptions */
#define ErrorExit(msg) \
        { PyErr_SetString (ErrorObject, msg); return NULL; }


extern void initKVout(void);

static int kMaxNumberOfComponents = 10;

typedef struct {
        long width, height; // pixels of the display
        Fixed hRes, vRes; // pixels per inch
        Fixed refreshRate; // refresh rate
        OSType pixelType; // type of pixel used by display format:
                                                        // 1,2,4,8,16,24,32 :: standard bit depths
                                                        // 33,34,36,40 :: gray-scale pixel depths
                                                        //      of 1,2,4,8
        char name[50]; // name of display mode
} DisplayModeAtomRecord, *DisplayModeAtomPtr;


typedef struct {
        Handle hName;
        OSType   subType;
        UInt8 numberOfModes;
        DisplayModeAtomPtr pDisplayModeList;
} ComponentListRecord, *ComponentListPtr;



typedef struct {
                Component component;
                QTVideoOutputComponent  componentInstance;
                ComponentListPtr componentList;
                UInt8 totalNumOfComponents;
                UInt8 whichComponentIndex;
                UInt8 whichModeIndex;
} KVoutComponent, *KVoutComponentPtr;


------------------------------------
-----------------> my setup.py
-----------------------------------

from distutils.core import setup, Extension

module1 = Extension('KVout',
                    define_macros = [('MAJOR_VERSION', '1'),
                                     ('MINOR_VERSION', '0')],
                                        extra_compile_args = ['-m32', '-framework', 'Quicktime'],
                    include_dirs = ['.', '/System/Library/Frameworks/Quicktime.framework/Headers/'],
                    libraries    = [],
                    library_dirs = [],
                    sources = ['KVoutModule.c'])

setup (name = 'KVout',
       version = '1.0',
       description = 'Output Kabuki to Quicktime Video Component',
       author = 'Michael Ferraro',
       author_email = '[hidden email]',
       url = 'http://www.python.org/doc/current/ext/building.html',
       long_description = '''
This is really just a demo package.
''',
       ext_modules = [module1])
_______________________________________________
Pythonmac-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG