I've got a headless, 32-bit VPS running Arch Linux. It's got a fresh
install of Sage 4.7.1 on it from the Arch repos. However, when I start
it with `sage -n`, I get this:

===PASTE===
emhs@li334-28 ~ % sage -n
----------------------------------------------------------------------
| Sage Version 4.7.1, Release Date: 2011-08-11                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------

Please wait while the Sage Notebook server starts...
Traceback (most recent call last):
  File "/opt/sage/local/bin/sage-notebook", line 9, in <module>
    from sage.server.notebook.all import notebook
  File "/opt/sage/local/lib/python2.6/site-packages/sage/server/
notebook/all.py", line 22, in <module>
    from sagenb.notebook.all import *
  File "/opt/sage/devel/sagenb/sagenb/notebook/all.py", line 16, in
<module>
    from notebook_object import notebook, inotebook
  File "/opt/sage/devel/sagenb/sagenb/notebook/notebook_object.py",
line 17, in <module>
    import notebook as _notebook
  File "/opt/sage/devel/sagenb/sagenb/notebook/notebook.py", line 35,
in <module>
    from sagenb.misc.misc import (pad_zeros, cputime, tmp_dir, load,
save,
  File "/opt/sage/devel/sagenb/sagenb/misc/misc.py", line 183, in
<module>
    import sage.all
  File "/opt/sage/local/lib/python2.6/site-packages/sage/all.py", line
75, in <module>
    from sage.misc.all       import *         # takes a while
  File "/opt/sage/local/lib/python2.6/site-packages/sage/misc/all.py",
line 79, in <module>
    from functional import (additive_order,
  File "/opt/sage/local/lib/python2.6/site-packages/sage/misc/
functional.py", line 38, in <module>
    from sage.rings.complex_double import CDF
  File "complex_double.pyx", line 95, in init
sage.rings.complex_double (sage/rings/complex_double.c:14767)
  File "/opt/sage/local/lib/python2.6/site-packages/sage/rings/
complex_field.py", line 89, in ComplexField
    C = ComplexField_class(prec)
  File "/opt/sage/local/lib/python2.6/site-packages/sage/rings/
complex_field.py", line 189, in __init__
 
self._populate_coercion_lists_(coerce_list=[complex_number.RRtoCC(self._real_field(),
self)])
  File "complex_number.pyx", line 2248, in
sage.rings.complex_number.RRtoCC.__init__ (sage/rings/complex_number.c:
14049)
  File "map.pyx", line 123, in sage.categories.map.Map.__init__ (sage/
categories/map.c:2168)
  File "/opt/sage/local/lib/python2.6/site-packages/sage/categories/
homset.py", line 152, in Hom
    H = category.hom_category().parent_class(X, Y, category =
category)
  File "/opt/sage/local/lib/python2.6/site-packages/sage/categories/
rings.py", line 142, in __new__
    from sage.rings.homset import RingHomset
  File "/opt/sage/local/lib/python2.6/site-packages/sage/rings/
homset.py", line 17, in <module>
    import quotient_ring
  File "/opt/sage/local/lib/python2.6/site-packages/sage/rings/
quotient_ring.py", line 32, in <module>
    import sage.rings.polynomial.multi_polynomial_ideal
  File "/opt/sage/local/lib/python2.6/site-packages/sage/rings/
polynomial/multi_polynomial_ideal.py", line 237, in <module>
    from sage.interfaces.all import (singular as singular_default,
  File "/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/
all.py", line 8, in <module>
    from gap import gap, gap_reset_workspace, gap_console,
gap_version, is_GapElement, Gap
  File "/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/
gap.py", line 1189, in <module>
    gap_reset_workspace(verbose=False)
  File "/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/
gap.py", line 1180, in gap_reset_workspace
    g.save_workspace()
  File "/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/
gap.py", line 984, in save_workspace
    self.eval('SaveWorkspace("%s");'%WORKSPACE, allow_use_file=False)
  File "/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/
gap.py", line 375, in eval
    result = Expect.eval(self, input_line, **kwds)
  File "/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/
expect.py", line 1026, in eval
    return '\n'.join([self._eval_line(L, **kwds) for L in
code.split('\n') if L != ''])
  File "/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/
gap.py", line 477, in _eval_line
    self._start()
  File "/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/
gap.py", line 914, in _start
    raise RuntimeError, msg
RuntimeError: Unable to start gap because the command 'gap -r -b -p -T
-o 3900m /opt/sage/data//extcode/gap/sage.g' failed.
===END PASTE===

This is a fresh server, with a fresh sage. When I try to just start
sage directly, I get this:

===PASTE===

emhs@li334-28 ~ % sage
----------------------------------------------------------------------
| Sage Version 4.7.1, Release Date: 2011-08-11                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (80, 0))

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call
last)

/opt/sage/local/lib/python2.6/site-packages/IPython/ipmaker.pyc in
force_import(modname)
     64         reload(sys.modules[modname])
     65     else:
---> 66         __import__(modname)
     67
     68

/opt/sage/local/bin/ipy_profile_sage.py in <module>()
      5     preparser(True)
      6
----> 7     import sage.all_cmdline
      8     sage.all_cmdline._init_cmdline(globals())
      9

/opt/sage/local/lib/python2.6/site-packages/sage/all_cmdline.py in
<module>()
     12 try:
     13
---> 14     from sage.all import *
     15     from sage.calculus.predefined import x
     16     preparser(on=True)

/opt/sage/local/lib/python2.6/site-packages/sage/all.py in <module>()
     73 from time                import sleep
     74
---> 75 from sage.misc.all       import *         # takes a while
     76
     77 from sage.misc.sh import sh

/opt/sage/local/lib/python2.6/site-packages/sage/misc/all.py in
<module>()
     77 from func_persist import func_persist
     78
---> 79 from functional import (additive_order,
     80                         sqrt as numerical_sqrt,
     81                         arg,

/opt/sage/local/lib/python2.6/site-packages/sage/misc/functional.py in
<module>()
     36
     37
---> 38 from sage.rings.complex_double import CDF
     39 from sage.rings.real_double import RDF, RealDoubleElement
     40

/opt/sage/local/bin/complex_double.pyx in init
sage.rings.complex_double (sage/rings/complex_double.c:14767)()

/opt/sage/local/lib/python2.6/site-packages/sage/rings/
complex_field.pyc in ComplexField(prec, names)
     87         if not C is None:
     88             return C
---> 89     C = ComplexField_class(prec)
     90     cache[prec] = weakref.ref(C)
     91     return C

/opt/sage/local/lib/python2.6/site-packages/sage/rings/
complex_field.pyc in __init__(self, prec)
    187         ParentWithGens.__init__(self, self._real_field(),
('I',), False, category = Fields())
    188 #        self._populate_coercion_lists_()

--> 189
self._populate_coercion_lists_(coerce_list=[complex_number.RRtoCC(self._real_field(),
self)])
    190
    191     def __reduce__(self):

/opt/sage/local/lib/python2.6/site-packages/sage/rings/
complex_number.so in sage.rings.complex_number.RRtoCC.__init__ (sage/
rings/complex_number.c:14049)()

/opt/sage/local/lib/python2.6/site-packages/sage/categories/map.so in
sage.categories.map.Map.__init__ (sage/categories/map.c:2168)()

/opt/sage/local/lib/python2.6/site-packages/sage/categories/homset.pyc
in Hom(X, Y, category)
    150     # For the moment, this is the category, for compatibility
with the current implementations

    151     # of Homset in rings, schemes, ...

--> 152     H = category.hom_category().parent_class(X, Y, category =
category)
    153
    154     ##_cache[key] = weakref.ref(H)


/opt/sage/local/lib/python2.6/site-packages/sage/categories/rings.pyc
in __new__(cls, X, Y, category)
    140                     <class
'sage.rings.number_field.morphism.CyclotomicFieldHomset_with_category'>
    141                 """
--> 142                 from sage.rings.homset import RingHomset
    143                 return RingHomset(X, Y, category = category)
    144

/opt/sage/local/lib/python2.6/site-packages/sage/rings/homset.pyc in
<module>()
     15
     16 import morphism
---> 17 import quotient_ring
     18
     19 def is_RingHomset(H):

/opt/sage/local/lib/python2.6/site-packages/sage/rings/
quotient_ring.pyc in <module>()
     30 import commutative_ring
     31 import ideal
---> 32 import sage.rings.polynomial.multi_polynomial_ideal
     33 import sage.structure.parent_gens
     34 from sage.interfaces.all import singular as singular_default,
is_SingularElement

/opt/sage/local/lib/python2.6/site-packages/sage/rings/polynomial/
multi_polynomial_ideal.py in <module>()
    235 from __future__ import with_statement
    236
--> 237 from sage.interfaces.all import (singular as singular_default,
    238                                  macaulay2 as
macaulay2_default,
    239                                  magma as magma_default)

/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/all.py in
<module>()
      6
      7 from expect import is_ExpectElement
----> 8 from gap import gap, gap_reset_workspace, gap_console,
gap_version, is_GapElement, Gap
      9 from gap3 import gap3, gap3_console, gap3_version, Gap3
     10 from genus2reduction import genus2reduction, Genus2reduction

/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/gap.py in
<module>()
   1187     #print "Automatically updating the cached Gap workspace:"

   1188     #print WORKSPACE

-> 1189     gap_reset_workspace(verbose=False)
   1190
   1191     # Delete all gap workspaces that haven't been used in at
least 1


/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/gap.py in
gap_reset_workspace(max_workspace_size, verbose)
   1178             pass
   1179     # end for

-> 1180     g.save_workspace()
   1181
   1182

/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/gap.py in
save_workspace(self)
    982         # be included in the body of a loop or function, or
called from a

    983         # break loop.

--> 984         self.eval('SaveWorkspace("%s");'%WORKSPACE,
allow_use_file=False)
    985
    986     # Todo -- this -- but there is a tricky "when does it end"
issue!


/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/gap.py in
eval(self, x, newlines, strip, split_lines, **kwds)
    373             if not input_line.endswith(';'):
    374                 input_line += ';'
--> 375         result = Expect.eval(self, input_line, **kwds)
    376         if not newlines:
    377             result = result.replace("\\\n","")

/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/expect.pyc
in eval(self, code, strip, synchronize, locals, split_lines, **kwds)
   1024             with gc_disabled():
   1025                 if split_lines:
-> 1026                     return '\n'.join([self._eval_line(L,
**kwds) for L in code.split('\n') if L != ''])
   1027                 else:
   1028                     return self._eval_line(code, **kwds)

/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/gap.py in
_eval_line(self, line, allow_use_file, wait_for_prompt)
    475         try:
    476             if self._expect is None:
--> 477                 self._start()
    478             E = self._expect
    479             #import pdb; pdb.set_trace()


/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/gap.py in
_start(self)
    912                 self._session_number = n
    913                 return
--> 914             raise RuntimeError, msg
    915
    916         if self.__use_workspace_cache and
self.__make_workspace:

RuntimeError: Unable to start gap because the command 'gap -r -b -p -T
-o 3900m /opt/sage/data//extcode/gap/sage.g' failed.

Error importing ipy_profile_sage - perhaps you should run %upgrade?
WARNING: Loading of ipy_profile_sage failed.

sage:
===END PASTE===

What's particularly weird about this is that the same repo package has
been installed for nearly a month on my laptop and works beautifully.
Any suggestions would be appreciated.

Thanks,
Elliott

-- 
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

Reply via email to