2009/9/2 jjh <j...@42quarks.com> > > On Sep 3, 2:20 am, Tim Lahey <tim.la...@gmail.com> wrote: > > On Sep 2, 2009, at 11:09 AM, jjh wrote: > > > Hi, > > > > > I have recently upgraded to OS X 10.6. This seems to have broken the > > > MATLAB interface. MATLAB crashes on startup when called through > > > matlab.eval() (but runs fine if I run it directly through the > > > Terminal). This occurs for MATLAB 2008b and 2009a. > > > > > The root cause seems to be that this line: > > > os.execv('/Applications/MATLAB_R2009a.app/bin/matlab', ['/ > > > Applications/ > > > MATLAB_R2009a.app/bin/matlab', '-nodisplay']) > > > will happily result in a running version of MATLAB when run through > > > the OS X built-in python (which is version 2.6.1). However, when the > > > same command is issued within Sage the resulting MATLAB process > > > crashes on startup (I've appended the MATLAB output to the end of this > > > message). > > > > According tohttp://snowleopard.wikidot.com/there are some problems > > with > > the command line version of Matlab 2009a on Snow Leopard. I highly > > doubt it's a > > Sage problem. > > As I mentioned, MATLAB 2009a (and 2008b) both work fine for me when > run through Terminal (with or without -nodisplay) and work fine when > run directly. They even work fine using execv from a normal Python > shell. But execv matlab with sage crashes MATLAB on startup. It would > be rather pointless to debate whose "problem" it is, it may well be > MATLAB doing something wrong in the Sage case. But obviously, MATLAB > does run on 10.6 in other cases. I would be interested to try and help > figure out what is going on when started using execv from within Sage > and fix/workaround it. Does anyone have any ideas what to try? > > I'm guessing environment variables / libraries are relevant. What happens when you do:
sage: !sage-native-execute matlab and sage: !matlab Thanks for looking into this and reporting this issue. William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---