I have created a new user (test), switched to it I didn't create/modify any configuration file, that is, I got a brand new $HOME environment. Because I also reinstalled ubuntu, I am pretty sure there wasn't any specific configuration added by me, just plain ubuntu 10.10. I built sage, and all went well, sage did start as expected. After this I did a little experiment, I copied the folder '.local/lib' with my local versions of ipython, matplotlib, etc. from my normal user's home directory to the test home directory. The I run sage again, and I had the CrashHandler import error again! So, to me, this has nothing to do with PYTHONPATH, or PATH environment values. It seems as if $HOME/.local/lib/pyhtonx.y/... was a standard place where python looks for modules. In fact, if I start (system) python, I can see that sys.path contains the modules that are inside .local/lib/python2.6/site-packages. Of course, it could be something specific to Ubuntu (in this case, please suggest what should I be looking for). Inside .local/lib/python2.6/site-packages/ there is a file named easy-install.pth, which from what I read, could be used to append paths to sys.path (see http://docs.python.org/library/site.html?#module-site ), although the values of sys.prefix and sys.exec_prefix only contain only '/usr', so that doesn't explain how the modules in .local/... were added. I am not familiar with the way python builds sys.path, and the possible customizations that can be introduced by particular OSes (and particularly ubuntu). The fact that both sage and the system python end up adding the modules in .local/.. to sys.path, suggests to me that this is not something specific to sage, but maybe specific to ubuntu. I'll keep on googling to see if I can clarify all this.
jorges -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
