Hi,

I tried running parts of the NumberField tutorial in the latest Mac
OSX build,
    sage-2.5.3-powerpc-osx-PowerMacintosh-Darwin
I have two problems running the tutorial 2.2.

(1) The first line says to define
    x = PolynomialRing(QQ).gen()
This does not work:
---------------------------------------------------------------------------
<type 'exceptions.TypeError'>             Traceback (most recent call
last)

/Users/jackperry/Desktop/sage-2.5.3-powerpc-osx-PowerMacintosh-Darwin/
<ipython console> in <module>()

/Users/jackperry/Desktop/sage-2.5.3-powerpc-osx-PowerMacintosh-Darwin/
local/lib/python2.5/site-packages/sage/rings/polynomial/
polynomial_ring_constructor.py in PolynomialRing(base_ring, arg1,
arg2, sparse, order, names, name)
    221
    222     if arg1 is None:
--> 223         raise TypeError, "You must specify the names of the
variables."
    224
    225     R = None

<type 'exceptions.TypeError'>: You must specify the names of the
variables.

The fix, from what I can tell, is to specify x =
PolynomialRing(QQ,x).gen()

(2) The fifth line has
    K.galois_group()
This gives me an error, too. (Traceback at bottom.) If I read the
error correctly (and I may not) SAGE thinks that the optional GAP
package isn't installed, but in fact a gap package of some sort is in
the "installed" directory of "spkg". Running the tutorial 13.3.1 gives
no trouble at all. Exiting SAGE gives the message "Exiting spawned Gap
process."
    Any ideas what's wrong?

thanks
john perry

---------------------------------------------------------------------------
<type 'exceptions.RuntimeError'>          Traceback (most recent call
last)

/Users/jackperry/Desktop/sage-2.5.3-powerpc-osx-PowerMacintosh-Darwin/
<ipython console> in <module>()

/Users/jackperry/Desktop/sage-2.5.3-powerpc-osx-PowerMacintosh-Darwin/
local/lib/python2.5/site-packages/sage/rings/number_field/
number_field.py in galois_group(self, pari_group, use_kash)
    607             Transitive group number 2 of degree 3
    608         """
--> 609         return self.polynomial().galois_group(pari_group =
pari_group, use_kash = use_kash)
    610
    611

/Users/jackperry/Desktop/sage-2.5.3-powerpc-osx-PowerMacintosh-Darwin/
local/lib/python2.5/site-packages/sage/rings/polynomial/
polynomial_element_generic.py in galois_group(self, pari_group,
use_kash)
    699             return H
    700         else:
--> 701             return PermutationGroup(H)
    702
    703     def quo_rem(self, right):

/Users/jackperry/Desktop/sage-2.5.3-powerpc-osx-PowerMacintosh-Darwin/
local/lib/python2.5/site-packages/sage/groups/perm_gps/permgroup.py in
PermutationGroup(x, from_group, check)
    161     """
    162     if not is_ExpectElement(x) and hasattr(x, '_permgroup_'):
--> 163         return x._permgroup_()
    164     return PermutationGroup_generic(x, from_group, check)
    165

/Users/jackperry/Desktop/sage-2.5.3-powerpc-osx-PowerMacintosh-Darwin/
local/lib/python2.5/site-packages/sage/groups/pari_group.py in
permutation_group(self)
     27         if self.__degree is None:
     28             raise NotImplementedError
---> 29         return permgroup.TransitiveGroup(self.__degree,
self.__x[2])
     30
     31     _permgroup_ = permutation_group

/Users/jackperry/Desktop/sage-2.5.3-powerpc-osx-PowerMacintosh-Darwin/
local/lib/python2.5/site-packages/sage/groups/perm_gps/permgroup.py in
__init__(self, d, n)
   1314             id = 'TransitiveGroup(%s,%s)'%(d,n)
   1315         PermutationGroup_generic.__init__(self, id,
-> 1316                                           from_group=True,
check=False)
   1317         self._d = d
   1318         self._n = n

/Users/jackperry/Desktop/sage-2.5.3-powerpc-osx-PowerMacintosh-Darwin/
local/lib/python2.5/site-packages/sage/groups/perm_gps/permgroup.py in
__init__(self, gens, from_group, check)
    184         if from_group and isinstance(gens, str):
    185             self.__gap = gens
--> 186             self.gens()  # so will check that group can be
defined in GAP (e.g., no missing packages, etc.)
    187             return
    188         if is_GapElement(gens):

/Users/jackperry/Desktop/sage-2.5.3-powerpc-osx-PowerMacintosh-Darwin/
local/lib/python2.5/site-packages/sage/groups/perm_gps/permgroup.py in
gens(self)
    454                 gens = self._gap_().GeneratorsOfGroup()
    455             except TypeError, s:
--> 456                 raise RuntimeError, "(It might be necessary to
install the database_gap optional SAGE package, if you haven't
already.)\n%s"%s
    457             self.__gens =
tuple([PermutationGroupElement(gens[n],
    458                                     self, check = False) for n
in \

<type 'exceptions.RuntimeError'>: (It might be necessary to install
the database_gap optional SAGE package, if you haven't already.)
Gap produced error output
Variable: 'TransitiveGroup' must have a value


   executing $sage4:=TransitiveGroup(3,2);;


--~--~---------~--~----~------------~-------~--~----~
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-forum
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to