Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Trouble running Sage in terminal

Hi all,

So I start up Sage using the command:

'/Applications/Sage-6.2.app/Contents/Resources/sage'/sage

I'm trying to load this file:

mod.sage

precision = 30

m = ModularForms(Gamma0(12),10,prec = precision)

p = m.basis()

Unfortunately I get a very large error when I run the following command: attach("mod.sage")


IOError Traceback (most recent call last) <ipython-input-2-909b5a17cf48> in <module>() ----> 1 sage.misc.preparser.load(sage.misc.preparser.base64.b64decode("bW9kLnNhZ2U="),globals(),True)

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/misc/preparser.pyc in load(filename, globals, attach) 1753 else: 1754 raise IOError('did not find file %r in load / attach search path' \ -> 1755 % filename) 1756 1757 if fpath.endswith('.py'):

IOError: did not find file 'mod.sage' in load / attach search path sage: cd /Users/brandonrayhaun/Desktop/Code/Sage /Users/brandonrayhaun/Desktop/Code/Sage

sage: attach("mod.sage")

ImportError Traceback (most recent call last) <ipython-input-4-909b5a17cf48> in <module>() ----> 1 sage.misc.preparser.load(sage.misc.preparser.base64.b64decode("bW9kLnNhZ2U="),globals(),True)

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/misc/preparser.pyc in load(filename, globals, attach) 1767 # See Trac 11812. 1768 exec_file_is(fpath) -> 1769 execfile(preparse_file_named(fpath), globals) 1770 else: 1771 # Preparse in memory only for speed.

/Users/brandonrayhaun/.sage/temp/anlwl151-059.wl.anl.gov/13637/mod.sageZRRz8A.py in <module>() 6 precision = _sage_const_30 7 ----> 8 m = ModularForms(Gamma0(_sage_const_12 ),_sage_const_10 ,prec = precision) 9 # p = m.basis()

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/modform/constructor.pyc in ModularForms(group, weight, base_ring, use_cache, prec) 317 M = None 318 if arithgroup.is_Gamma0(group): --> 319 M = ambient_g0.ModularFormsAmbient_g0_Q(group.level(), weight) 320 if base_ring != rings.QQ: 321 M = ambient_R.ModularFormsAmbient_R(M, base_ring)

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/modform/ambient_g0.pyc in __init__(self, level, weight) 41 <class 'sage.modular.modform.ambient_g0.modularformsambient_g0_q_with_category'=""> 42 """ ---> 43 ambient.ModularFormsAmbient.__init__(self, arithgroup.Gamma0(level), weight, rings.QQ) 44 45 ####################################################################

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/modform/ambient.pyc in __init__(self, group, weight, base_ring, character) 110 111 if character is None and arithgroup.is_Gamma0(group): --> 112 character = dirichlet.TrivialCharacter(group.level(), base_ring) 113 114 space.ModularFormsSpace.__init__(self, group, weight, character, base_ring)

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/dirichlet.pyc in trivial_character(N, base_ring) 100 Ring of integers modulo 3 101 """ --> 102 return DirichletGroup(N, base_ring)(1) 103 104 TrivialCharacter = trivial_character

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/structure/factory.so in sage.structure.factory.UniqueFactory.__call__ (sage/structure/factory.c:1308)()

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/structure/factory.so in sage.structure.factory.UniqueFactory.get_object (sage/structure/factory.c:1510)()

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/dirichlet.pyc in create_object(self, version, key, **extra_args) 1812 """ 1813 base_ring, modulus, zeta, zeta_order = key -> 1814 return DirichletGroup_class(modulus, zeta, zeta_order) 1815 1816 DirichletGroup = DirichletGroupFactory("DirichletGroup")

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/dirichlet.pyc in __init__(self, modulus, zeta, zeta_order) 1862 self._zeta_dlog = v # dictionary that computes log_{zeta}(power of zeta). 1863 self._module = free_module.FreeModule(rings.IntegerModRing(zeta_order), -> 1864 len(self._integers.unit_gens())) 1865 1866 def change_ring(self, R, zeta=None, zeta_order=None):

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/structure/factory.so in sage.structure.factory.UniqueFactory.__call__ (sage/structure/factory.c:1308)()

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/structure/factory.so in sage.structure.factory.UniqueFactory.get_object (sage/structure/factory.c:1510)()

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in create_object(self, version, key) 377 378 elif base_ring.is_field(): --> 379 return FreeModule_ambient_field(base_ring, rank, sparse=sparse) 380 381 elif base_ring in PrincipalIdealDomains():

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in __init__(self, base_field, dimension, sparse) 4940 Vector space of dimension 3 over Rational Field 4941 """ -> 4942 FreeModule_ambient_pid.__init__(self, base_field, dimension, sparse=sparse) 4943 4944 def _repr_(self):

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in __init__(self, base_ring, rank, sparse) 4861 Ambient free module of rank 3 over the principal ideal domain Integer Ring 4862 """ -> 4863 FreeModule_ambient_domain.__init__(self, base_ring=base_ring, rank=rank, sparse=sparse) 4864 4865 def _repr_(self):

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in __init__(self, base_ring, rank, sparse) 4677 Univariate Polynomial Ring in x over Finite Field of size 5 4678 """ -> 4679 FreeModule_ambient.__init__(self, base_ring, rank, sparse) 4680 4681 def _repr_(self):

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in __init__(self, base_ring, rank, sparse) 4152 Ambient free module of rank 4 over the principal ideal domain Integer Ring 4153 """ -> 4154 FreeModule_generic.__init__(self, base_ring, rank=rank, degree=rank, sparse=sparse) 4155 4156 def __hash__(self):

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in __init__(self, base_ring, rank, degree, sparse) 711 self.__is_sparse = sparse 712 self._gram_matrix = None --> 713 self.element_class() 714 715 def construction(self):

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in element_class(self) 893 except AttributeError: 894 pass --> 895 C = element_class(self.base_ring(), self.is_sparse()) 896 self._element_class = C 897 return C

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in element_class(R, is_sparse) 6689 <type 'sage.modules.free_module_element.freemoduleelement_generic_dense'=""> 6690 """ -> 6691 import sage.modules.vector_real_double_dense 6692 import sage.modules.vector_complex_double_dense 6693

/Users/brandonrayhaun/Desktop/Code/Sage/vector_real_double_dense.pyx in init sage.modules.vector_real_double_dense (sage/modules/vector_real_double_dense.c:5611)()

/Users/brandonrayhaun/Desktop/Code/Sage/__init__.pxd in init sage.modules.vector_double_dense (sage/modules/vector_double_dense.c:11813)()

/Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/__init__.py in <module>() 141 return loader(packages, *options) 142 --> 143 import add_newdocs 144 __all__ = ['add_newdocs'] 145

/Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/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 ###############################################################################

/Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/lib/__init__.py in <module>() 2 from numpy.version import version as __version__ 3 ----> 4 from type_check import * 5 from index_tricks import * 6 from function_base import *

/Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/lib/type_check.py in <module>() 6 'common_type'] 7 ----> 8 import numpy.core.numeric as _nx 9 from numpy.core.numeric import asarray, asanyarray, array, isnan, \ 10 obj2sctype, zeros

/Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/core/__init__.py in <module>() 3 from numpy.version import version as __version__ 4 ----> 5 import multiarray 6 import umath 7 import _internal # for freeze programs

ImportError: dlopen(/Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/core/multiarray.so, 2): Symbol not found: _PyUnicodeUCS2_AsASCIIString Referenced from: /Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/core/multiarray.so Expected in: flat namespace in /Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/core/multiarray.so

Any ideas on how to fix this would be greatly appreciated. Sorry for the sloppy formatting!

Trouble running Sage in terminal

Hi all,

So I start up Sage using the command:

'/Applications/Sage-6.2.app/Contents/Resources/sage'/sage

I'm trying to load this file:

mod.sage

precision = 30

m = ModularForms(Gamma0(12),10,prec = precision)

p = m.basis()

Unfortunately I get a very large error when I run the following command: attach("mod.sage")


IOError Traceback (most recent call last) <ipython-input-2-909b5a17cf48> in <module>() ----> 1 sage.misc.preparser.load(sage.misc.preparser.base64.b64decode("bW9kLnNhZ2U="),globals(),True)

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/misc/preparser.pyc in load(filename, globals, attach) 1753 else: 1754 raise IOError('did not find file %r in load / attach search path' \ -> 1755 % filename) 1756 1757 if fpath.endswith('.py'):

IOError: did not find file 'mod.sage' in load / attach search path sage: cd /Users/brandonrayhaun/Desktop/Code/Sage /Users/brandonrayhaun/Desktop/Code/Sage

sage: attach("mod.sage")

ImportError Traceback (most recent call last) <ipython-input-4-909b5a17cf48> in <module>() ----> 1 sage.misc.preparser.load(sage.misc.preparser.base64.b64decode("bW9kLnNhZ2U="),globals(),True)

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/misc/preparser.pyc in load(filename, globals, attach) 1767 # See Trac 11812. 1768 exec_file_is(fpath) -> 1769 execfile(preparse_file_named(fpath), globals) 1770 else: 1771 # Preparse in memory only for speed.

/Users/brandonrayhaun/.sage/temp/anlwl151-059.wl.anl.gov/13637/mod.sageZRRz8A.py in <module>() 6 precision = _sage_const_30 7 ----> 8 m = ModularForms(Gamma0(_sage_const_12 ),_sage_const_10 ,prec = precision) 9 # attach("mod.sage") However when I comment out the line p = m.basis()

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/modform/constructor.pyc in ModularForms(group, weight, base_ring, use_cache, prec) 317 M = None 318 if arithgroup.is_Gamma0(group): --> 319 M = ambient_g0.ModularFormsAmbient_g0_Q(group.level(), weight) 320 if base_ring != rings.QQ: 321 M = ambient_R.ModularFormsAmbient_R(M, base_ring)

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/modform/ambient_g0.pyc in __init__(self, level, weight) 41 <class 'sage.modular.modform.ambient_g0.modularformsambient_g0_q_with_category'=""> 42 """ ---> 43 ambient.ModularFormsAmbient.__init__(self, arithgroup.Gamma0(level), weight, rings.QQ) 44 45 ####################################################################

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/modform/ambient.pyc in __init__(self, group, weight, base_ring, character) 110 111 if character is None and arithgroup.is_Gamma0(group): --> 112 character = dirichlet.TrivialCharacter(group.level(), base_ring) 113 114 space.ModularFormsSpace.__init__(self, group, weight, character, base_ring)

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/dirichlet.pyc in trivial_character(N, base_ring) 100 Ring of integers modulo 3 101 """ --> 102 return DirichletGroup(N, base_ring)(1) 103 104 TrivialCharacter = trivial_character

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/structure/factory.so in sage.structure.factory.UniqueFactory.__call__ (sage/structure/factory.c:1308)()

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/structure/factory.so in sage.structure.factory.UniqueFactory.get_object (sage/structure/factory.c:1510)()

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/dirichlet.pyc in create_object(self, version, key, **extra_args) 1812 """ 1813 base_ring, modulus, zeta, zeta_order = key -> 1814 return DirichletGroup_class(modulus, zeta, zeta_order) 1815 1816 DirichletGroup = DirichletGroupFactory("DirichletGroup")

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/dirichlet.pyc in __init__(self, modulus, zeta, zeta_order) 1862 self._zeta_dlog = v # dictionary that computes log_{zeta}(power of zeta). 1863 self._module = free_module.FreeModule(rings.IntegerModRing(zeta_order), -> 1864 len(self._integers.unit_gens())) 1865 1866 def change_ring(self, R, zeta=None, zeta_order=None):

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/structure/factory.so in sage.structure.factory.UniqueFactory.__call__ (sage/structure/factory.c:1308)()

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/structure/factory.so in sage.structure.factory.UniqueFactory.get_object (sage/structure/factory.c:1510)()

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in create_object(self, version, key) 377 378 elif base_ring.is_field(): --> 379 return FreeModule_ambient_field(base_ring, rank, sparse=sparse) 380 381 elif base_ring in PrincipalIdealDomains():

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in __init__(self, base_field, dimension, sparse) 4940 Vector space of dimension 3 over Rational Field 4941 """ -> 4942 FreeModule_ambient_pid.__init__(self, base_field, dimension, sparse=sparse) 4943 4944 def _repr_(self):

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in __init__(self, base_ring, rank, sparse) 4861 Ambient free module of rank 3 over m.basis(), the principal ideal domain Integer Ring 4862 """ -> 4863 FreeModule_ambient_domain.__init__(self, base_ring=base_ring, rank=rank, sparse=sparse) 4864 4865 def _repr_(self):

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in __init__(self, base_ring, rank, sparse) 4677 Univariate Polynomial Ring in x over Finite Field of size 5 4678 """ -> 4679 FreeModule_ambient.__init__(self, base_ring, rank, sparse) 4680 4681 def _repr_(self):

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in __init__(self, base_ring, rank, sparse) 4152 Ambient free module of rank 4 over error goes away. I'm attaching the principal ideal domain Integer Ring 4153 """ -> 4154 FreeModule_generic.__init__(self, base_ring, rank=rank, degree=rank, sparse=sparse) 4155 4156 def __hash__(self):

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in __init__(self, base_ring, rank, degree, sparse) 711 self.__is_sparse = sparse 712 self._gram_matrix = None --> 713 self.element_class() 714 715 def construction(self):

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in element_class(self) 893 except AttributeError: 894 pass --> 895 C = element_class(self.base_ring(), self.is_sparse()) 896 self._element_class = C 897 return C

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in element_class(R, is_sparse) 6689 <type 'sage.modules.free_module_element.freemoduleelement_generic_dense'=""> 6690 """ -> 6691 import sage.modules.vector_real_double_dense 6692 import sage.modules.vector_complex_double_dense 6693

/Users/brandonrayhaun/Desktop/Code/Sage/vector_real_double_dense.pyx in init sage.modules.vector_real_double_dense (sage/modules/vector_real_double_dense.c:5611)()

/Users/brandonrayhaun/Desktop/Code/Sage/__init__.pxd in init sage.modules.vector_double_dense (sage/modules/vector_double_dense.c:11813)()

/Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/__init__.py in <module>() 141 return loader(packages, *options) 142 --> 143 import add_newdocs 144 __all__ = ['add_newdocs'] 145

/Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/add_newdocs.py in <module>() 7 # core/fromnumeric.py, core/defmatrix.py up-to-date. 8 ----> 9 text from numpy.lib import add_newdoc 10 11 ###############################################################################

/Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/lib/__init__.py in <module>() 2 from numpy.version import version as __version__ 3 ----> 4 from type_check import * 5 from index_tricks import * 6 from function_base import *

/Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/lib/type_check.py in <module>() 6 'common_type'] 7 ----> 8 import numpy.core.numeric as _nx 9 from numpy.core.numeric import asarray, asanyarray, array, isnan, \ 10 obj2sctype, zeros

/Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/core/__init__.py in <module>() 3 from numpy.version import version as __version__ 4 ----> 5 import multiarray 6 import umath 7 import _internal # for freeze programs

ImportError: dlopen(/Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/core/multiarray.so, 2): Symbol not found: _PyUnicodeUCS2_AsASCIIString Referenced from: /Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/core/multiarray.so Expected in: flat namespace in /Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/core/multiarray.so

the error message below. Any ideas on how to fix this would be greatly appreciated. Sorry for the sloppy formatting!


IOError Traceback (most recent call last) <ipython-input-2-909b5a17cf48> in <module>() ----> 1 sage.misc.preparser.load(sage.misc.preparser.base64.b64decode("bW9kLnNhZ2U="),globals(),True)

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/misc/preparser.pyc in load(filename, globals, attach) 1753 else: 1754 raise IOError('did not find file %r in load / attach search path' \ -> 1755 % filename) 1756 1757 if fpath.endswith('.py'):

IOError: did not find file 'mod.sage' in load / attach search path sage: cd /Users/brandonrayhaun/Desktop/Code/Sage /Users/brandonrayhaun/Desktop/Code/Sage

sage: attach("mod.sage")

ImportError Traceback (most recent call last) <ipython-input-4-909b5a17cf48> in <module>() ----> 1 sage.misc.preparser.load(sage.misc.preparser.base64.b64decode("bW9kLnNhZ2U="),globals(),True)

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/misc/preparser.pyc in load(filename, globals, attach) 1767 # See Trac 11812. 1768 exec_file_is(fpath) -> 1769 execfile(preparse_file_named(fpath), globals) 1770 else: 1771 # Preparse in memory only for speed.

/Users/brandonrayhaun/.sage/temp/anlwl151-059.wl.anl.gov/13637/mod.sageZRRz8A.py in <module>() 6 precision = _sage_const_30 7 ----> 8 m = ModularForms(Gamma0(_sage_const_12 ),_sage_const_10 ,prec = precision) 9 # p = m.basis()

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/modform/constructor.pyc in ModularForms(group, weight, base_ring, use_cache, prec) 317 M = None 318 if arithgroup.is_Gamma0(group): --> 319 M = ambient_g0.ModularFormsAmbient_g0_Q(group.level(), weight) 320 if base_ring != rings.QQ: 321 M = ambient_R.ModularFormsAmbient_R(M, base_ring)

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/modform/ambient_g0.pyc in __init__(self, level, weight) 41 <class 'sage.modular.modform.ambient_g0.modularformsambient_g0_q_with_category'=""> 42 """ ---> 43 ambient.ModularFormsAmbient.__init__(self, arithgroup.Gamma0(level), weight, rings.QQ) 44 45 ####################################################################

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/modform/ambient.pyc in __init__(self, group, weight, base_ring, character) 110 111 if character is None and arithgroup.is_Gamma0(group): --> 112 character = dirichlet.TrivialCharacter(group.level(), base_ring) 113 114 space.ModularFormsSpace.__init__(self, group, weight, character, base_ring)

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/dirichlet.pyc in trivial_character(N, base_ring) 100 Ring of integers modulo 3 101 """ --> 102 return DirichletGroup(N, base_ring)(1) 103 104 TrivialCharacter = trivial_character

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/structure/factory.so in sage.structure.factory.UniqueFactory.__call__ (sage/structure/factory.c:1308)()

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/structure/factory.so in sage.structure.factory.UniqueFactory.get_object (sage/structure/factory.c:1510)()

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/dirichlet.pyc in create_object(self, version, key, **extra_args) 1812 """ 1813 base_ring, modulus, zeta, zeta_order = key -> 1814 return DirichletGroup_class(modulus, zeta, zeta_order) 1815 1816 DirichletGroup = DirichletGroupFactory("DirichletGroup")

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/dirichlet.pyc in __init__(self, modulus, zeta, zeta_order) 1862 self._zeta_dlog = v # dictionary that computes log_{zeta}(power of zeta). 1863 self._module = free_module.FreeModule(rings.IntegerModRing(zeta_order), -> 1864 len(self._integers.unit_gens())) 1865 1866 def change_ring(self, R, zeta=None, zeta_order=None):

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/structure/factory.so in sage.structure.factory.UniqueFactory.__call__ (sage/structure/factory.c:1308)()

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/structure/factory.so in sage.structure.factory.UniqueFactory.get_object (sage/structure/factory.c:1510)()

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in create_object(self, version, key) 377 378 elif base_ring.is_field(): --> 379 return FreeModule_ambient_field(base_ring, rank, sparse=sparse) 380 381 elif base_ring in PrincipalIdealDomains():

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in __init__(self, base_field, dimension, sparse) 4940 Vector space of dimension 3 over Rational Field 4941 """ -> 4942 FreeModule_ambient_pid.__init__(self, base_field, dimension, sparse=sparse) 4943 4944 def _repr_(self):

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in __init__(self, base_ring, rank, sparse) 4861 Ambient free module of rank 3 over the principal ideal domain Integer Ring 4862 """ -> 4863 FreeModule_ambient_domain.__init__(self, base_ring=base_ring, rank=rank, sparse=sparse) 4864 4865 def _repr_(self):

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in __init__(self, base_ring, rank, sparse) 4677 Univariate Polynomial Ring in x over Finite Field of size 5 4678 """ -> 4679 FreeModule_ambient.__init__(self, base_ring, rank, sparse) 4680 4681 def _repr_(self):

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in __init__(self, base_ring, rank, sparse) 4152 Ambient free module of rank 4 over the principal ideal domain Integer Ring 4153 """ -> 4154 FreeModule_generic.__init__(self, base_ring, rank=rank, degree=rank, sparse=sparse) 4155 4156 def __hash__(self):

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in __init__(self, base_ring, rank, degree, sparse) 711 self.__is_sparse = sparse 712 self._gram_matrix = None --> 713 self.element_class() 714 715 def construction(self):

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in element_class(self) 893 except AttributeError: 894 pass --> 895 C = element_class(self.base_ring(), self.is_sparse()) 896 self._element_class = C 897 return C

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in element_class(R, is_sparse) 6689 <type 'sage.modules.free_module_element.freemoduleelement_generic_dense'=""> 6690 """ -> 6691 import sage.modules.vector_real_double_dense 6692 import sage.modules.vector_complex_double_dense 6693

/Users/brandonrayhaun/Desktop/Code/Sage/vector_real_double_dense.pyx in init sage.modules.vector_real_double_dense (sage/modules/vector_real_double_dense.c:5611)()

/Users/brandonrayhaun/Desktop/Code/Sage/__init__.pxd in init sage.modules.vector_double_dense (sage/modules/vector_double_dense.c:11813)()

/Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/__init__.py in <module>() 141 return loader(packages, *options) 142 --> 143 import add_newdocs 144 __all__ = ['add_newdocs'] 145

/Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/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 ###############################################################################

/Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/lib/__init__.py in <module>() 2 from numpy.version import version as __version__ 3 ----> 4 from type_check import * 5 from index_tricks import * 6 from function_base import *

/Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/lib/type_check.py in <module>() 6 'common_type'] 7 ----> 8 import numpy.core.numeric as _nx 9 from numpy.core.numeric import asarray, asanyarray, array, isnan, \ 10 obj2sctype, zeros

/Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/core/__init__.py in <module>() 3 from numpy.version import version as __version__ 4 ----> 5 import multiarray 6 import umath 7 import _internal # for freeze programs

ImportError: dlopen(/Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/core/multiarray.so, 2): Symbol not found: _PyUnicodeUCS2_AsASCIIString Referenced from: /Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/core/multiarray.so Expected in: flat namespace in /Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/core/multiarray.so

click to hide/show revision 3
No.3 Revision

Trouble running Sage in terminal

Hi all,

So I start up Sage using the command:

'/Applications/Sage-6.2.app/Contents/Resources/sage'/sage

I'm trying to load this file:

mod.sage

#mod.sage
precision = 30

30 m = ModularForms(Gamma0(12),10,prec = precision)

precision) p = m.basis()

m.basis()

Unfortunately I get a very large error when I run the following command: attach("mod.sage") However when I comment out the line p = m.basis(), the error goes away. I'm attaching the text from the error message below. Any ideas on how to fix this would be greatly appreciated. Sorry for the sloppy formatting!


---------------------------------------------------------------------------
IOError                                   Traceback (most recent call last)
<ipython-input-2-909b5a17cf48> in <module>()
----> 1 sage.misc.preparser.load(sage.misc.preparser.base64.b64decode("bW9kLnNhZ2U="),globals(),True)

sage.misc.preparser.load(sage.misc.preparser.base64.b64decode("bW9kLnNhZ2U="),globals(),True) /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/misc/preparser.pyc in load(filename, globals, attach) 1753 else: 1754 raise IOError('did not find file %r in load / attach search path' \ -> 1755 % filename) 1756 1757 if fpath.endswith('.py'):

fpath.endswith('.py'): IOError: did not find file 'mod.sage' in load / attach search path sage: cd /Users/brandonrayhaun/Desktop/Code/Sage /Users/brandonrayhaun/Desktop/Code/Sage

/Users/brandonrayhaun/Desktop/Code/Sage sage: attach("mod.sage")

attach("mod.sage") --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-4-909b5a17cf48> in <module>() ----> 1 sage.misc.preparser.load(sage.misc.preparser.base64.b64decode("bW9kLnNhZ2U="),globals(),True)

sage.misc.preparser.load(sage.misc.preparser.base64.b64decode("bW9kLnNhZ2U="),globals(),True) /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/misc/preparser.pyc in load(filename, globals, attach) 1767 # See Trac 11812. 1768 exec_file_is(fpath) -> 1769 execfile(preparse_file_named(fpath), globals) 1770 else: 1771 # Preparse in memory only for speed.

speed. /Users/brandonrayhaun/.sage/temp/anlwl151-059.wl.anl.gov/13637/mod.sageZRRz8A.py in <module>() 6 precision = _sage_const_30 7 ----> 8 m = ModularForms(Gamma0(_sage_const_12 ),_sage_const_10 ,prec = precision) 9 # p = m.basis()

m.basis() /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/modform/constructor.pyc in ModularForms(group, weight, base_ring, use_cache, prec) 317 M = None 318 if arithgroup.is_Gamma0(group): --> 319 M = ambient_g0.ModularFormsAmbient_g0_Q(group.level(), weight) 320 if base_ring != rings.QQ: 321 M = ambient_R.ModularFormsAmbient_R(M, base_ring)

base_ring) /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/modform/ambient_g0.pyc in __init__(self, level, weight) 41 <class 'sage.modular.modform.ambient_g0.modularformsambient_g0_q_with_category'=""> 'sage.modular.modform.ambient_g0.ModularFormsAmbient_g0_Q_with_category'> 42 """ ---> 43 ambient.ModularFormsAmbient.__init__(self, arithgroup.Gamma0(level), weight, rings.QQ) 44 45 ####################################################################

#################################################################### /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/modform/ambient.pyc in __init__(self, group, weight, base_ring, character) 110 111 if character is None and arithgroup.is_Gamma0(group): --> 112 character = dirichlet.TrivialCharacter(group.level(), base_ring) 113 114 space.ModularFormsSpace.__init__(self, group, weight, character, base_ring)

base_ring) /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/dirichlet.pyc in trivial_character(N, base_ring) 100 Ring of integers modulo 3 101 """ --> 102 return DirichletGroup(N, base_ring)(1) 103 104 TrivialCharacter = trivial_character

trivial_character /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/structure/factory.so in sage.structure.factory.UniqueFactory.__call__ (sage/structure/factory.c:1308)()

(sage/structure/factory.c:1308)() /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/structure/factory.so in sage.structure.factory.UniqueFactory.get_object (sage/structure/factory.c:1510)()

(sage/structure/factory.c:1510)() /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/dirichlet.pyc in create_object(self, version, key, **extra_args) 1812 """ 1813 base_ring, modulus, zeta, zeta_order = key -> 1814 return DirichletGroup_class(modulus, zeta, zeta_order) 1815 1816 DirichletGroup = DirichletGroupFactory("DirichletGroup")

DirichletGroupFactory("DirichletGroup") /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/dirichlet.pyc in __init__(self, modulus, zeta, zeta_order) 1862 self._zeta_dlog = v # dictionary that computes log_{zeta}(power of zeta). 1863 self._module = free_module.FreeModule(rings.IntegerModRing(zeta_order), -> 1864 len(self._integers.unit_gens())) 1865 1866 def change_ring(self, R, zeta=None, zeta_order=None):

zeta_order=None): /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/structure/factory.so in sage.structure.factory.UniqueFactory.__call__ (sage/structure/factory.c:1308)()

(sage/structure/factory.c:1308)() /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/structure/factory.so in sage.structure.factory.UniqueFactory.get_object (sage/structure/factory.c:1510)()

(sage/structure/factory.c:1510)() /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in create_object(self, version, key) 377 378 elif base_ring.is_field(): --> 379 return FreeModule_ambient_field(base_ring, rank, sparse=sparse) 380 381 elif base_ring in PrincipalIdealDomains():

PrincipalIdealDomains(): /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in __init__(self, base_field, dimension, sparse) 4940 Vector space of dimension 3 over Rational Field 4941 """ -> 4942 FreeModule_ambient_pid.__init__(self, base_field, dimension, sparse=sparse) 4943 4944 def _repr_(self):

_repr_(self): /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in __init__(self, base_ring, rank, sparse) 4861 Ambient free module of rank 3 over the principal ideal domain Integer Ring 4862 """ -> 4863 FreeModule_ambient_domain.__init__(self, base_ring=base_ring, rank=rank, sparse=sparse) 4864 4865 def _repr_(self):

_repr_(self): /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in __init__(self, base_ring, rank, sparse) 4677 Univariate Polynomial Ring in x over Finite Field of size 5 4678 """ -> 4679 FreeModule_ambient.__init__(self, base_ring, rank, sparse) 4680 4681 def _repr_(self):

_repr_(self): /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in __init__(self, base_ring, rank, sparse) 4152 Ambient free module of rank 4 over the principal ideal domain Integer Ring 4153 """ -> 4154 FreeModule_generic.__init__(self, base_ring, rank=rank, degree=rank, sparse=sparse) 4155 4156 def __hash__(self):

__hash__(self): /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in __init__(self, base_ring, rank, degree, sparse) 711 self.__is_sparse = sparse 712 self._gram_matrix = None --> 713 self.element_class() 714 715 def construction(self):

construction(self): /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in element_class(self) 893 except AttributeError: 894 pass --> 895 C = element_class(self.base_ring(), self.is_sparse()) 896 self._element_class = C 897 return C

C /Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in element_class(R, is_sparse) 6689 <type 'sage.modules.free_module_element.freemoduleelement_generic_dense'=""> 'sage.modules.free_module_element.FreeModuleElement_generic_dense'> 6690 """ -> 6691 import sage.modules.vector_real_double_dense 6692 import sage.modules.vector_complex_double_dense 6693

/Users/brandonrayhaun/Desktop/Code/Sage/vector_real_double_dense.pyx in init sage.modules.vector_real_double_dense (sage/modules/vector_real_double_dense.c:5611)()

(sage/modules/vector_real_double_dense.c:5611)() /Users/brandonrayhaun/Desktop/Code/Sage/__init__.pxd in init sage.modules.vector_double_dense (sage/modules/vector_double_dense.c:11813)()

(sage/modules/vector_double_dense.c:11813)() /Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/__init__.py in <module>() 141 return loader(packages, *options) loader(*packages, **options) 142 --> 143 import add_newdocs 144 __all__ = ['add_newdocs'] 145

/Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/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 ###############################################################################

############################################################################### /Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/lib/__init__.py in <module>() 2 from numpy.version import version as __version__ 3 ----> 4 from type_check import * 5 from index_tricks import * 6 from function_base import *

* /Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/lib/type_check.py in <module>() 6 'common_type'] 7 ----> 8 import numpy.core.numeric as _nx 9 from numpy.core.numeric import asarray, asanyarray, array, isnan, \ 10 obj2sctype, zeros

zeros /Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/core/__init__.py in <module>() 3 from numpy.version import version as __version__ 4 ----> 5 import multiarray 6 import umath 7 import _internal # for freeze programs

programs ImportError: dlopen(/Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/core/multiarray.so, 2): Symbol not found: _PyUnicodeUCS2_AsASCIIString Referenced from: /Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/core/multiarray.so Expected in: flat namespace in /Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/core/multiarray.so

/Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/core/multiarray.so

Trouble running Sage in terminal

Hi all,

So I start up Sage using the command:

'/Applications/Sage-6.2.app/Contents/Resources/sage'/sage

I'm trying to load this file:

#mod.sage
precision = 30

m = ModularForms(Gamma0(12),10,prec = precision)

p = m.basis()

Unfortunately I get a very large error when I run the following command: attach("mod.sage") However when I comment out the line p = m.basis(), the error goes away. I'm attaching the text from the error message below. Any ideas on how to fix this would be greatly appreciated. Sorry for the sloppy formatting!

---------------------------------------------------------------------------
IOError                                   Traceback (most recent call last)
<ipython-input-2-909b5a17cf48> in <module>()
----> 1 sage.misc.preparser.load(sage.misc.preparser.base64.b64decode("bW9kLnNhZ2U="),globals(),True)

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/misc/preparser.pyc in load(filename, globals, attach)
   1753         else:
   1754             raise IOError('did not find file %r in load / attach search path' \
-> 1755                 % filename)
   1756 
   1757     if fpath.endswith('.py'):

IOError: did not find file 'mod.sage' in load / attach search path
sage: cd /Users/brandonrayhaun/Desktop/Code/Sage
/Users/brandonrayhaun/Desktop/Code/Sage
sage: attach("mod.sage")
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-4-909b5a17cf48> in <module>()
----> 1 sage.misc.preparser.load(sage.misc.preparser.base64.b64decode("bW9kLnNhZ2U="),globals(),True)

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/misc/preparser.pyc in load(filename, globals, attach)
   1767             # See Trac 11812.
   1768             exec_file_is(fpath)
-> 1769             execfile(preparse_file_named(fpath), globals)
   1770         else:
   1771             # Preparse in memory only for speed.

/Users/brandonrayhaun/.sage/temp/anlwl151-059.wl.anl.gov/13637/mod.sageZRRz8A.py in <module>()
      6 precision = _sage_const_30
      7 
----> 8 m = ModularForms(Gamma0(_sage_const_12 ),_sage_const_10 ,prec = precision)
      9 # p = m.basis()

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/modform/constructor.pyc in ModularForms(group, weight, base_ring, use_cache, prec)
    317     M = None
    318     if arithgroup.is_Gamma0(group):
--> 319         M = ambient_g0.ModularFormsAmbient_g0_Q(group.level(), weight)
    320         if base_ring != rings.QQ:
    321             M = ambient_R.ModularFormsAmbient_R(M, base_ring)

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/modform/ambient_g0.pyc in __init__(self, level, weight)
     41             <class 'sage.modular.modform.ambient_g0.ModularFormsAmbient_g0_Q_with_category'>
     42         """
---> 43         ambient.ModularFormsAmbient.__init__(self, arithgroup.Gamma0(level), weight, rings.QQ)
     44 
     45     ####################################################################

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/modform/ambient.pyc in __init__(self, group, weight, base_ring, character)
    110 
    111         if character is None and arithgroup.is_Gamma0(group):
--> 112             character = dirichlet.TrivialCharacter(group.level(), base_ring)
    113 
    114         space.ModularFormsSpace.__init__(self, group, weight, character, base_ring)

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/dirichlet.pyc in trivial_character(N, base_ring)
    100         Ring of integers modulo 3
    101     """
--> 102     return DirichletGroup(N, base_ring)(1)
    103 
    104 TrivialCharacter = trivial_character

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/structure/factory.so in sage.structure.factory.UniqueFactory.__call__ (sage/structure/factory.c:1308)()

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/structure/factory.so in sage.structure.factory.UniqueFactory.get_object (sage/structure/factory.c:1510)()

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/dirichlet.pyc in create_object(self, version, key, **extra_args)
   1812         """
   1813         base_ring, modulus, zeta, zeta_order = key
-> 1814         return DirichletGroup_class(modulus, zeta, zeta_order)
   1815 
   1816 DirichletGroup = DirichletGroupFactory("DirichletGroup")

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modular/dirichlet.pyc in __init__(self, modulus, zeta, zeta_order)
   1862         self._zeta_dlog = v    # dictionary that computes log_{zeta}(power of zeta).
   1863         self._module = free_module.FreeModule(rings.IntegerModRing(zeta_order),
-> 1864                                               len(self._integers.unit_gens()))
   1865 
   1866     def change_ring(self, R, zeta=None, zeta_order=None):

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/structure/factory.so in sage.structure.factory.UniqueFactory.__call__ (sage/structure/factory.c:1308)()

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/structure/factory.so in sage.structure.factory.UniqueFactory.get_object (sage/structure/factory.c:1510)()

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in create_object(self, version, key)
    377 
    378             elif base_ring.is_field():
--> 379                 return FreeModule_ambient_field(base_ring, rank, sparse=sparse)
    380 
    381             elif base_ring in PrincipalIdealDomains():

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in __init__(self, base_field, dimension, sparse)
   4940             Vector space of dimension 3 over Rational Field
   4941         """
-> 4942         FreeModule_ambient_pid.__init__(self, base_field, dimension, sparse=sparse)
   4943 
   4944     def _repr_(self):

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in __init__(self, base_ring, rank, sparse)
   4861             Ambient free module of rank 3 over the principal ideal domain Integer Ring
   4862         """
-> 4863         FreeModule_ambient_domain.__init__(self, base_ring=base_ring, rank=rank, sparse=sparse)
   4864 
   4865     def _repr_(self):

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in __init__(self, base_ring, rank, sparse)
   4677             Univariate Polynomial Ring in x over Finite Field of size 5
   4678         """
-> 4679         FreeModule_ambient.__init__(self, base_ring, rank, sparse)
   4680 
   4681     def _repr_(self):

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in __init__(self, base_ring, rank, sparse)
   4152             Ambient free module of rank 4 over the principal ideal domain Integer Ring
   4153         """
-> 4154         FreeModule_generic.__init__(self, base_ring, rank=rank, degree=rank, sparse=sparse)
   4155 
   4156     def __hash__(self):

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in __init__(self, base_ring, rank, degree, sparse)
    711         self.__is_sparse = sparse
    712         self._gram_matrix = None
--> 713         self.element_class()
    714 
    715     def construction(self):

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in element_class(self)
    893         except AttributeError:
    894             pass
--> 895         C = element_class(self.base_ring(), self.is_sparse())
    896         self._element_class = C
    897         return C

/Applications/Sage-6.2.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/modules/free_module.pyc in element_class(R, is_sparse)
   6689         <type 'sage.modules.free_module_element.FreeModuleElement_generic_dense'>
   6690     """
-> 6691     import sage.modules.vector_real_double_dense
   6692     import sage.modules.vector_complex_double_dense
   6693 

/Users/brandonrayhaun/Desktop/Code/Sage/vector_real_double_dense.pyx in init sage.modules.vector_real_double_dense (sage/modules/vector_real_double_dense.c:5611)()

/Users/brandonrayhaun/Desktop/Code/Sage/__init__.pxd in init sage.modules.vector_double_dense (sage/modules/vector_double_dense.c:11813)()

/Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/__init__.py in <module>()
    141         return loader(*packages, **options)
    142 
--> 143     import add_newdocs
    144     __all__ = ['add_newdocs']
    145 

/Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/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 ###############################################################################

/Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/lib/__init__.py in <module>()
      2 from numpy.version import version as __version__
      3 
----> 4 from type_check import *
      5 from index_tricks import *
      6 from function_base import *

/Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/lib/type_check.py in <module>()
      6            'common_type']
      7 
----> 8 import numpy.core.numeric as _nx
      9 from numpy.core.numeric import asarray, asanyarray, array, isnan, \
     10                 obj2sctype, zeros

/Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/core/__init__.py in <module>()
      3 from numpy.version import version as __version__
      4 
----> 5 import multiarray
      6 import umath
      7 import _internal # for freeze programs

ImportError: dlopen(/Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/core/multiarray.so, 2): Symbol not found: _PyUnicodeUCS2_AsASCIIString
  Referenced from: /Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/core/multiarray.so
  Expected in: flat namespace
 in /Users/brandonrayhaun/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/core/multiarray.so