Ask Your Question

mikrosvinjo's profile - activity

2021-03-18 23:55:07 +0200 received badge  Notable Question (source)
2021-03-08 14:06:24 +0200 received badge  Taxonomist
2013-07-09 07:25:51 +0200 received badge  Popular Question (source)
2012-04-18 11:57:05 +0200 received badge  Nice Question (source)
2012-04-18 11:29:51 +0200 received badge  Student (source)
2012-04-18 10:45:58 +0200 asked a question Problem with Sage 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.