I would like to use Gurobi 5.5.0 from python 2.7.5 that is installed via homebrew (OS X 10.8.4) with latest X Code Command Line Tools (CLT).
In /usr/bin folder, there is another python, which might be embedded in X Code CLT:
I put the error message at the end of this post.
It is noteworthy gurobipy can be imported from the older (or OS X preinstalled) python:
As I installed many modules (e.g. numpy, scipy, matplotlib, iPython, etc) via homebrew for python 2.7.5,
it is not willing to call /usr/bin/python only for Gurobi.
Process: Python [44809]
Path: /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: 2.7.5 (2.7.5)
Code Type: X86-64 (Native)
Parent Process: bash [44668]
User ID: 501
Date/Time: 2013-09-05 16:20:22.472 +0900
OS Version: Mac OS X 10.8.4 (12E55)
Report Version: 10
Interval Since Last Report: 3891 sec
Crashes Since Last Report: 21
Per-App Crashes Since Last Report: 7
Anonymous UUID: 5D95BB85-C00E-4467-C7EE-09E68EA59B1A
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
abort() called
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff8765bd46 __kill + 10
1 libsystem_c.dylib 0x00007fff86fe7df0 abort + 177
2 org.python.python 0x0000000104937eaa Py_FatalError + 49
3 org.python.python 0x0000000104936370 PyThreadState_Get + 28
4 org.python.python 0x0000000104931f16 Py_InitModule4_64 + 58
5 gurobipy.so 0x000000010455352f initgurobipy + 511
6 org.python.python 0x0000000104231bab _PyImport_LoadDynamicModule + 150
7 org.python.python 0x00000001042318c2 import_submodule + 274
8 org.python.python 0x00000001042314a1 load_next + 268
9 org.python.python 0x000000010422f597 PyImport_ImportModuleLevel + 596
10 org.python.python 0x0000000104215e16 builtin___import__ + 132
11 org.python.python 0x00000001041a44fd PyObject_Call + 101
12 org.python.python 0x0000000104220274 PyEval_CallObjectWithKeywords + 93
13 org.python.python 0x000000010421d61a PyEval_EvalFrameEx + 11727
14 org.python.python 0x000000010421a721 PyEval_EvalCodeEx + 1638
15 org.python.python 0x000000010421a0b5 PyEval_EvalCode + 54
16 org.python.python 0x000000010422e354 PyImport_ExecCodeModuleEx + 247
17 org.python.python 0x0000000104230e88 load_source_module + 1068
18 org.python.python 0x0000000104231104 load_package + 298
19 org.python.python 0x00000001042318c2 import_submodule + 274
20 org.python.python 0x00000001042314a1 load_next + 268
21 org.python.python 0x000000010422f597 PyImport_ImportModuleLevel + 596
22 org.python.python 0x0000000104215e16 builtin___import__ + 132
23 org.python.python 0x00000001041a44fd PyObject_Call + 101
24 org.python.python 0x0000000104220274 PyEval_CallObjectWithKeywords + 93
25 org.python.python 0x000000010421d61a PyEval_EvalFrameEx + 11727
26 org.python.python 0x000000010421a721 PyEval_EvalCodeEx + 1638
27 org.python.python 0x000000010421a0b5 PyEval_EvalCode + 54
28 org.python.python 0x0000000104238eb8 run_mod + 53
29 org.python.python 0x0000000104238cda PyRun_InteractiveOneFlags + 365
30 org.python.python 0x00000001042387cb PyRun_InteractiveLoopFlags + 188
31 org.python.python 0x000000010423867c PyRun_AnyFileExFlags + 60
32 org.python.python 0x000000010424958b Py_Main + 3039
33 libdyld.dylib 0x00007fff844607e1 start + 1
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x00007fff5ba6d9f0 rcx: 0x00007fff5ba6d9d8 rdx: 0x0000000000000000
rdi: 0x000000000000af09 rsi: 0x0000000000000006 rbp: 0x00007fff5ba6da00 rsp: 0x00007fff5ba6d9d8
r8: 0x00000000000003f5 r9: 0x0000000000000004 r10: 0x00007fff8765d342 r11: 0x0000000000000206
r12: 0x00007fd7c1032200 r13: 0x00000001045fba2c r14: 0x00000000000003f5 r15: 0x0000000000000000
rip: 0x00007fff8765bd46 rfl: 0x0000000000000206 cr2: 0x00007fff729a8ff0
Logical CPU: 0
Binary Images:
0x104191000 - 0x104192fff +org.python.python (2.7.5 - 2.7.5) <400D22E1-C851-3D13-9A3F-C8DF3BBAEDEC> /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
0x10419a000 - 0x1042a4ff7 +org.python.python (2.7.5, [c] 2004-2013 Python Software Foundation. - 2.7.5) <8EB2ADDE-54B8-3F28-B470-06045A804DD9> /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/Python
0x104351000 - 0x10436dff7 libJapaneseConverter.dylib (61) <D0F762C2-5372-3AA2-BBA4-066B8E4B1F8E> /System/Library/CoreServices/Encodings/libJapaneseConverter.dylib
0x104511000 - 0x104513ff7 +readline.so (0) <3766D698-0EB5-3097-BDAA-01875D222336> /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/readline.so
0x104519000 - 0x10453cfff +libreadline.6.2.dylib (6.2) <2131C2A4-E75D-3680-9C8D-E42D78A5E1B9> /usr/local/opt/readline/lib/libreadline.6.2.dylib
0x104551000 - 0x104602fff +gurobipy.so (0) <0B73F953-AF53-3649-8952-D3A896FCE4F8> /Library/Python/2.7/site-packages/gurobipy/gurobipy.so
0x104651000 - 0x1048cbff7 +libgurobi55.so (0) <6010792B-8429-3C0B-9523-2D6CD2B37588> /usr/local/lib/libgurobi55.so
0x1048e6000 - 0x1049f3fff org.python.python (2.7.2 - 2.7.2) <E7F3EED1-E55D-32AF-9649-77C814693F6A> /System/Library/Frameworks/Python.framework/Versions/2.7/Python
0x7fff63d91000 - 0x7fff63dc593f dyld (210.2.3) <36CAA36E-72BC-3E48-96D9-B96A2DF77730> /usr/lib/dyld
0x7fff81dbe000 - 0x7fff81ed692f libobjc.A.dylib (532.2) <90D31928-F48D-3E37-874F-220A51FD9E37> /usr/lib/libobjc.A.dylib
0x7fff81ed7000 - 0x7fff81ed8ff7 libSystem.B.dylib (169.3) <92475A81-385C-32B9-9D6D-38E4BAC90996> /usr/lib/libSystem.B.dylib
0x7fff826e0000 - 0x7fff826e2ff7 libunc.dylib (25) <2FDC94A7-3039-3680-85F3-2164E63B464D> /usr/lib/system/libunc.dylib
0x7fff82763000 - 0x7fff8276bfff liblaunch.dylib (442.26.2) <2F71CAF8-6524-329E-AC56-C506658B4C0C> /usr/lib/system/liblaunch.dylib
0x7fff82849000 - 0x7fff8284efff libcompiler_rt.dylib (30) <08F8731D-5961-39F1-AD00-4590321D24A9> /usr/lib/system/libcompiler_rt.dylib
0x7fff828a6000 - 0x7fff828a8fff libquarantine.dylib (52.1) <143B726E-DF47-37A8-90AA-F059CFD1A2E4> /usr/lib/system/libquarantine.dylib
0x7fff840bb000 - 0x7fff840c3ff7 libsystem_dnssd.dylib (379.38.1) <BDCB8566-0189-34C0-9634-35ABD3EFE25B> /usr/lib/system/libsystem_dnssd.dylib
0x7fff8445e000 - 0x7fff84461ff7 libdyld.dylib (210.2.3) <F59367C9-C110-382B-A695-9035A6DD387E> /usr/lib/system/libdyld.dylib
0x7fff8446e000 - 0x7fff84490ff7 libxpc.dylib (140.43) <70BC645B-6952-3264-930C-C835010CCEF9> /usr/lib/system/libxpc.dylib
0x7fff847eb000 - 0x7fff84823fff libncurses.5.4.dylib (37.3) <68D5B5F5-8252-3F1E-AFF1-C6AFE145DBC1> /usr/lib/libncurses.5.4.dylib
0x7fff84c61000 - 0x7fff84c67ff7 libunwind.dylib (35.1) <21703D36-2DAB-3D8B-8442-EAAB23C060D3> /usr/lib/system/libunwind.dylib
0x7fff84c82000 - 0x7fff84e1dfef com.apple.vImage (6.0 - 6.0) <FAE13169-295A-33A5-8E6B-7C2CC1407FA7> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x7fff84e1e000 - 0x7fff85215fff libLAPACK.dylib (1073.4) <D632EC8B-2BA0-3853-800A-20DA00A1091C> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x7fff85fd0000 - 0x7fff85fdefff libcommonCrypto.dylib (60027) <BAAFE0C9-BB86-3CA7-88C0-E3CBA98DA06F> /usr/lib/system/libcommonCrypto.dylib
0x7fff86225000 - 0x7fff86253ff7 libsystem_m.dylib (3022.6) <11B6081D-6212-3EAB-9975-BED6234BD6A5> /usr/lib/system/libsystem_m.dylib
0x7fff8671b000 - 0x7fff867b5fff libvMisc.dylib (380.6) <714336EA-1C0E-3735-B31C-19DFDAAF6221> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x7fff867fb000 - 0x7fff86820ff7 libc++abi.dylib (26) <D86169F3-9F31-377A-9AF3-DB17142052E4> /usr/lib/libc++abi.dylib
0x7fff86908000 - 0x7fff86908fff libkeymgr.dylib (25) <CC9E3394-BE16-397F-926B-E579B60EE429> /usr/lib/system/libkeymgr.dylib
0x7fff86909000 - 0x7fff8690afff libsystem_blocks.dylib (59) <D92DCBC3-541C-37BD-AADE-ACC75A0C59C8> /usr/lib/system/libsystem_blocks.dylib
0x7fff86f8e000 - 0x7fff8705aff7 libsystem_c.dylib (825.26) <4C9EB006-FE1F-3F8F-8074-DFD94CF2CE7B> /usr/lib/system/libsystem_c.dylib
0x7fff8763b000 - 0x7fff87649ff7 libsystem_network.dylib (77.10) <2AAA67A1-525E-38F0-8028-1D2B64716611> /usr/lib/system/libsystem_network.dylib
0x7fff8764a000 - 0x7fff87665ff7 libsystem_kernel.dylib (2050.24.15) <A9F97289-7985-31D6-AF89-151830684461> /usr/lib/system/libsystem_kernel.dylib
0x7fff87758000 - 0x7fff87942ff7 com.apple.CoreFoundation (6.8 - 744.19) <0F7403CA-2CB8-3D0A-992B-679701DF27CA> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff87b1b000 - 0x7fff87b1cff7 libsystem_sandbox.dylib (220.3) <B739DA63-B675-387A-AD84-412A651143C0> /usr/lib/system/libsystem_sandbox.dylib
0x7fff881cc000 - 0x7fff881cdfff libDiagnosticMessagesClient.dylib (8) <8548E0DC-0D2F-30B6-B045-FE8A038E76D8> /usr/lib/libDiagnosticMessagesClient.dylib
0x7fff88a60000 - 0x7fff88a72ff7 libz.1.dylib (43) <2A1551E8-A272-3DE5-B692-955974FE1416> /usr/lib/libz.1.dylib
0x7fff88ae1000 - 0x7fff88b4afff libstdc++.6.dylib (56) <EAA2B53E-EADE-39CF-A0EF-FB9D4940672A> /usr/lib/libstdc++.6.dylib
0x7fff88dfb000 - 0x7fff88e00fff libcache.dylib (57) <65187C6E-3FBF-3EB8-A1AA-389445E2984D> /usr/lib/system/libcache.dylib
0x7fff89034000 - 0x7fff8906aff7 libsystem_info.dylib (406.17) <C9BA1024-043C-3BD5-908F-AF709E05DEE4> /usr/lib/system/libsystem_info.dylib
0x7fff891e5000 - 0x7fff893e5fff libicucore.A.dylib (491.11.3) <5783D305-04E8-3D17-94F7-1CEAFA975240> /usr/lib/libicucore.A.dylib
0x7fff89510000 - 0x7fff8957eff7 com.apple.framework.IOKit (2.0.1 - 755.24.1) <04BFB138-8AF4-310A-8E8C-045D8A239654> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x7fff895c8000 - 0x7fff89614ff7 libauto.dylib (185.4) <AD5A4CE7-CB53-313C-9FAE-673303CC2D35> /usr/lib/libauto.dylib
0x7fff89703000 - 0x7fff89704ff7 libremovefile.dylib (23.2) <6763BC8E-18B8-3AD9-8FFA-B43713A7264F> /usr/lib/system/libremovefile.dylib
0x7fff8a0c2000 - 0x7fff8a0d5ff7 libbsm.0.dylib (32) <F497D3CE-40D9-3551-84B4-3D5E39600737> /usr/lib/libbsm.0.dylib
0x7fff8a43b000 - 0x7fff8a4a3ff7 libc++.1.dylib (65.1) <E5A0C88E-0837-3015-A987-F8C5A0D35DD6> /usr/lib/libc++.1.dylib
0x7fff8a62c000 - 0x7fff8a62dff7 libdnsinfo.dylib (453.19) <14202FFB-C3CA-3FCC-94B0-14611BF8692D> /usr/lib/system/libdnsinfo.dylib
0x7fff8ac0c000 - 0x7fff8ac13fff libcopyfile.dylib (89) <876573D0-E907-3566-A108-577EAD1B6182> /usr/lib/system/libcopyfile.dylib
0x7fff8ad9d000 - 0x7fff8ada8fff libsystem_notify.dylib (98.5) <C49275CC-835A-3207-AFBA-8C01374927B6> /usr/lib/system/libsystem_notify.dylib
0x7fff8aed4000 - 0x7fff8aed4fff com.apple.Accelerate (1.8 - Accelerate 1.8) <6AD48543-0864-3D40-80CE-01F184F24B45> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x7fff8b4fc000 - 0x7fff8b511ff7 libdispatch.dylib (228.23) <D26996BF-FC57-39EB-8829-F63585561E09> /usr/lib/system/libdispatch.dylib
0x7fff8b57d000 - 0x7fff8b583fff libmacho.dylib (829) <BF332AD9-E89F-387E-92A4-6E1AB74BD4D9> /usr/lib/system/libmacho.dylib
0x7fff8cf05000 - 0x7fff8cf05fff com.apple.Accelerate.vecLib (3.8 - vecLib 3.8) <B5A18EE8-DF81-38DD-ACAF-7076B2A26225> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x7fff8cf26000 - 0x7fff8cf8efff libvDSP.dylib (380.6) <CD4C5EEB-9E63-30C4-8103-7A5EAEA0BE60> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x7fff8cff8000 - 0x7fff8d006ff7 libkxld.dylib (2050.24.15) <A619A9AC-09AF-3FF3-95BF-F07CC530EC31> /usr/lib/system/libkxld.dylib
0x7fff8d84b000 - 0x7fff8d9d1fff libBLAS.dylib (1073.4) <C102C0F6-8CB6-3B49-BA6B-2EB61F0B2784> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x7fff8e536000 - 0x7fff8e585ff7 libcorecrypto.dylib (106.2) <CE0C29A3-C420-339B-ADAA-52F4683233CC> /usr/lib/system/libcorecrypto.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: 8250
thread_create: 2
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=76.0M resident=36.4M(48%) swapped_out_or_unallocated=39.6M(52%)
Writable regions: Total=20.4M written=2272K(11%) resident=2860K(14%) swapped_out=0K(0%) unallocated=17.6M(86%)
REGION TYPE VIRTUAL
=========== =======
MALLOC 12.0M
MALLOC guard page 32K
STACK GUARD 56.0M
Stack 8192K
__DATA 2032K
__LINKEDIT 52.7M
__TEXT 23.3M
__UNICODE 544K
shared memory 12K
=========== =======
TOTAL 154.6M
(Following message is suppressed as it seems not relevant)
=====================================================