Ask Your Question

Revision history [back]

Problem with Sage Macosx and python

I have a question regarding sage on macosx. My problem is that the precompiled binary package of sage doesn't see my python modules installed through macports. I mean sage is working without porblem, but when I try to attach a script which use a module (e.g. scitools) I got : Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/sage/misc/preparser.pyc in load(filename, globals, attach) 1629 1630 if fpath.endswith('.py'): -> 1631 execfile(fpath, globals) 1632 elif fpath.endswith('.sage'): 1633 exec(preparse_file(open(fpath).read()) + "\n", globals) Volumes/Henry/Script_py/plot/example.py in <module>() 2 import time, glob, os 3 4 # clean up old frames: 5 for name in glob.glob('tmp_*.eps'): 6 os.remove(name)

ImportError: No module named scitools.all

But if I try to execute without Sage, I have no problem with loading the modules.

click to hide/show revision 2
No.2 Revision

updated 2012-04-18 04:30:24 -0600

kcrisman gravatar image

Problem with Sage Macosx and system python

I have a question regarding sage on macosx. My problem is that the precompiled binary package of sage doesn't see my python modules installed through macports. I mean sage is working without porblem, but when I try to attach a script which use a module (e.g. scitools) I got : Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/sage/misc/preparser.pyc in load(filename, globals, attach) 1629 1630 if fpath.endswith('.py'): -> 1631 execfile(fpath, globals) 1632 elif fpath.endswith('.sage'): 1633 exec(preparse_file(open(fpath).read()) + "\n", globals) Volumes/Henry/Script_py/plot/example.py in <module>() 2 import time, glob, os 3 4 # clean up old frames: 5 for name in glob.glob('tmp_*.eps'): 6 os.remove(name)

ImportError: No module named scitools.all

But if I try to execute without Sage, I have no problem with loading the modules.