id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc,work_issues,upstream,reviewer,author,merged,dependencies,stopgaps
12161,"Make Sage App on Mac work right all the time on OS X 10.7 Lion, and OS X 10.6 Snow Leopard also",kcrisman,tbd,"[http://ask.sagemath.org/question/740/app-installation-problem-on-mac-os-x-lion This ask.sagemath.org question] has no fewer than eight users who have had trouble using the Mac app bundle from Snow Leopard on Lion.

Most of the errors seem to look like
{{{
$ '/Applications/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/sage/'/sage --notebook
Traceback (most recent call last):
  File ""/Applications/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/sage//local/bin/sage-notebook"", line 3, in <module>
    import os, sys, socket
  File ""/Applications/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python/socket.py"", line 46, in <module>
    import _socket
ImportError: No module named _socket
}}}
when the app is started.  Then we told people to try
{{{
/Applications/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/sage/sage
}}}
or the equivalent, and that pretty much uniformly led to an IPython import error.

However, nearly everyone was able to solve the problem by one of 
 * Installing the new Xcode
 * Installing IPython
 * Upgrading the system Python

Note that '''none''' of these things should have anything to do with Sage running from the app!

Anyway, it seems to all be the same or very similar problems, so I'm making this a ticket.    I wouldn't be surprised if it was a deployment target thing, even.

Possible solutions that would close this:
 * Getting the app bundle to build right on Lion with Xcode 4 and distributing that
 * Getting the Xcode 3/Snow Leopard one to work right on Lion

Home base is #11881; we probably shouldn't release a Sage 5.0 that doesn't have a working app bundle on Lion.

Apply trac_12161-re-source-sage-env.patch  to the EXTCODE repository.",defect,closed,blocker,sage-5.0,distribution,fixed,,iandrus was,,N/A,Georg S. Weber,Ivan Andrus,sage-5.0.beta6,,
