On Mon, Nov 21, 2011 at 4:51 PM, Jason <jason.harri...@gmail.com> wrote: > It looks like even when not using the notebook, I can't even import > numpy. All I did was uncompress the lzma download and put it in my > home directory. I don't see any caveats in the readme: > http://boxen.math.washington.edu/sage/linux/32bit/README.txt > > So two questions: is server_pool needed
No, it is not needed, but it is safer if you plan to have many users of your server, especially users you do not trust. To figure out what is wrong, you need to type: "sage -sh" on the command line, then type the thing from the error message, which may be this: sage-native-execute ssh -t sage1@localhost "/home/engineer/sage-4.7.2-linux-32bit-ubuntu_10.04_lts-i686-Linux/sage -python" This can't possibly work if you have not created an account called "sage1" and set up password login from your normal account to sage1@localhost using ssh keys. Setting that up involves using the command "ssh-keygen -t rsa -b 1024" and editing the file $HOME/.ssh/authorized_keys in the sage1 account. > and what's wrong with my installation. Evidently (based on the error message), you need to install gfortran. Do something like sudo apt-get install gfortran > > > > sage: import numpy as np > --------------------------------------------------------------------------- > ImportError Traceback (most recent call > last) > > /home/engineer/Desktop/<ipython console> in <module>() > > /home/engineer/sage-4.7.2-linux-32bit-ubuntu_10.04_lts-i686-Linux/ > local/lib/python2.6/site-packages/numpy/__init__.pyc in <module>() > 134 return loader(*packages, **options) > 135 > --> 136 import add_newdocs > 137 __all__ = ['add_newdocs'] > 138 > > /home/engineer/sage-4.7.2-linux-32bit-ubuntu_10.04_lts-i686-Linux/ > local/lib/python2.6/site-packages/numpy/add_newdocs.py in <module>() > 7 # core/fromnumeric.py, core/defmatrix.py up-to-date. > 8 > ----> 9 from numpy.lib import add_newdoc > 10 > 11 > ############################################################################### > > /home/engineer/sage-4.7.2-linux-32bit-ubuntu_10.04_lts-i686-Linux/ > local/lib/python2.6/site-packages/numpy/lib/__init__.py in <module>() > 11 > 12 import scimath as emath > ---> 13 from polynomial import * > 14 #import convertcode > 15 from utils import * > > /home/engineer/sage-4.7.2-linux-32bit-ubuntu_10.04_lts-i686-Linux/ > local/lib/python2.6/site-packages/numpy/lib/polynomial.py in > <module>() > 15 from numpy.lib.function_base import trim_zeros, sort_complex > 16 from numpy.lib.type_check import iscomplex, real, imag > ---> 17 from numpy.linalg import eigvals, lstsq > 18 > 19 class RankWarning(UserWarning): > > /home/engineer/sage-4.7.2-linux-32bit-ubuntu_10.04_lts-i686-Linux/ > local/lib/python2.6/site-packages/numpy/linalg/__init__.py in > <module>() > 46 from info import __doc__ > 47 > ---> 48 from linalg import * > 49 > 50 from numpy.testing import Tester > > /home/engineer/sage-4.7.2-linux-32bit-ubuntu_10.04_lts-i686-Linux/ > local/lib/python2.6/site-packages/numpy/linalg/linalg.py in <module>() > 21 isfinite, size, finfo, absolute, log, exp > 22 from numpy.lib import triu > ---> 23 from numpy.linalg import lapack_lite > 24 from numpy.matrixlib.defmatrix import matrix_power > 25 from numpy.compat import asbytes > > ImportError: libgfortran.so.3: cannot open shared object file: No such > file or directory > sage: > > On Nov 21, 2:41 pm, Jason <jason.harri...@gmail.com> wrote: >> Thanks! I was able to import and use a worksheet by removing the >> server_pool option. However, the documentation here says that it >> specifies that worksheet processes run as separate users, not that >> there are multiple >> servers:http://www.sagemath.org/doc/reference/sagenb/notebook/notebook_object... >> >> Another problem I'm having is that if I try to run anything beyond >> basic python, for example, if I type "import numpy as np" I get the >> error: >> Traceback (click to the left of this block for traceback) >> ... >> AttributeError: 'module' object has no attribute 'core' >> >> On Nov 21, 2:26 pm, Renan Birck Pinheiro <renan.ee.u...@gmail.com> >> wrote: >> >> >> >> >> >> >> >> > 2011/11/21 Jason <jason.harri...@gmail.com> >> >> > > I did a fresh install of Ubuntu 10.04, and placed the precompiled sage >> > > 4.7.2 folder in my home folder. >> >> > > I run sage in a terminal then use this command to start the server: >> > > notebook(interface='', server_pool=['sage1@localhost'], ulimit='-v >> > > 500000', accounts=True) >> >> > > I'm able to access it and create a user account from the web >> > > interface, but whenever I try to create or add a worksheet I get an >> > > error: >> > > exceptions.RuntimeError: unable to start subprocess using command >> > > 'sage-native-execute ssh -t sage1@localhost "/home/engineer/sage-4.7.2- >> > > linux-32bit-ubuntu_10.04_lts-i686-Linux/sage -python" >> >> > > How can I fix this? (I'm only a basic linux user) >> >> > You don't need server_pool parameter, it is used only when one has many >> > servers running Sage. >> >> > -- >> > Renan Birck Pinheiro - Grupo de Microeletrônica >> > <http://www.ufsm.br/gmicro>- Engenharia >> > Elétrica <http://www.ufsm.br/cee>/UFSM <http://www.ufsm.br> >> >> >http://renanbirck.blogspot.com/skype: renan.ee.ufsm / (55) 91433210 > > -- > 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 > URL: http://www.sagemath.org > -- William Stein Professor of Mathematics University of Washington http://wstein.org -- 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 URL: http://www.sagemath.org