Re: [sage-support] Re: where to put Sage

2011-09-22 Thread D. M. Monarres
It is interesting that nobody recommended using the official way of
installing Sage on windows, by using the virtual box images provided
on the website.

I have run into the problem of how to recommend Sage to students who
will mostly be running windows machines. Still looks like running Sage
on windows is kind of  awkward. Has there been any progress on the
mammoth task of porting Sage to windows?

Regards,

David M. Monarres




On Wed, Sep 21, 2011 at 12:31 PM, kcrisman  wrote:
>> I'd say that if you really want to develop Sage with your students on a
>> joint computer then you need to have direct access to a Linux machine. Its
>
> Or a Mac, if you set up ssh availability or whatever - # 7, Maarten
> says so.  But see # 3,4.
>
>
>> What solution is best for you really depends on how much you expect sage
>> will get used. I definitly advise you to have your own sage notebook server
>> running somewhere. And it would be best if that place was accesible from the
>> WWW so student can also use it from home.
>
> +1 very good idea.
>
>> (3,4) It would not be a large imposition on computer science since sage can
>> be installed without root acces they can just give you an account and the
>> possibility to run a web service. You or one of your students could then
>> install sage yourself, even installing non standard spkgs as you please.
>
> Yes, totally do this.  We have this and it works great.
>
> --
> 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
>

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


Re: [sage-support] Re: urgent plotting question

2011-08-31 Thread D. M. Monarres
The line command also works well.

sage: line([(3,0), (3,1)])

As always, you can type line? to see how to adjust the output. Hope that helps.

Regards,

David M. Monarres




On Wed, Aug 31, 2011 at 10:14 AM, Vince  wrote:
> I've only been working with sage for about a week (very excited about
> my first post on the group!) so please forgive me if this is incorrect
> but one option I believe would be to use a step plot:
>
> plot_step_function([(3,0),(3,8)])
>
> Cheers,
> Vince
>
>
> On Aug 31, 6:03 pm, Ray Collins 
> wrote:
>> I need to know how to plot x=3 in sage.  Thank you for your assistance.
>
> --
> 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
>

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


Re: [sage-support] How to solve congruences?

2011-07-26 Thread D. M. Monarres
I use the 'solve_mod' command:

sage: solve_mod(3*x == 2, 4)
[(2,)]
sage: solve_mod(3*x == 1, 4)
[(3,)]
sage: solve_mod(2*x == 1, 4)
[]
sage: solve_mod(2*x == 1, 7)
[(4,)]
sage: solve_mod(2*x == 1, 7)
[(4,)]


Check the help (solve_mod?)  for more info/examples of its use.

Regards,

David M. Monarres




On Tue, Jul 26, 2011 at 2:19 PM, Johannes  wrote:
> Hi list
> I have to solve congruences like
>        a x \equiv b mod n
> for given a,b,n.
> how can i do this with sage?
>
> greatz Johanens
>
> --
> 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
>

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


Re: [sage-support] Re: Iterating over finite extension fields.

2011-06-03 Thread D. M. Monarres
Thank you all,

I hope that I didn't seem annoyed by the current way of doing things.
I have been charged with translating some examples for an
undergraduate algebra course which use Magma where this is a valid
construction.

The whole goal of the example was to have the students do the
extension over the non-prime field, but since this isn't possible, and
may be very difficult to do in general, I will find a way around this.
Thank you for all of the help!

Regards,

David M. Monarres


P.S. If anybody has any literature which outlines the algorithms
required to implement the more general construction it would be great.
I have time over the summer and would love to contribute what I can.


On Thu, Jun 2, 2011 at 11:44 AM, Nils Bruin  wrote:
> On May 25, 12:26 pm, "D. Monarres"  wrote:
>> Then I construct F_{5^2}
>>
>> sage: F25.   = F5.extension( PR[0], 'a')
>>
>> and everything works great. The problem arises when  I want to extend
>> this field. When I try to construct my polynomial over F25 I get an
>> error that F25 does not allow for iteration.
>
> You are hitting a generic implementation here. The same code would get
> called for other base rings as well. If you want a finite field, you
> can use the "modulus=" keyword with GF. See "GF?" for more
> information.
>
>> Do you think that
>> PolynomialQuotientRing_field can be extended to support iteration as
>> long as it is finite?
>
> It could, but it might be the wrong place to do it. The fact that the
> result was going to be finite was already known when F5.extension got
> called, so the obvious place to effect a changed behaviour would be by
> specializing the "extension" method on finite fields. If the modulus
> is irreducible (and even the generic code seems to check for that), it
> could specialize to the required GF(...,modulus=,,,) call.
>
> One might want to check that all the generic methods available on the
> result of F5.extension are also available on the result of GF,
> otherwise the change would break code that depends on the current
> behaviour (if any).
>
> The reason why F5.extension doesn't produce a "finite field" is
> probably because there is another way of doing that and the original
> authors didn't bother specializing F5.extension to it (the very
> existence of F5.extension might postdate the GF(...modulus=...) call
> and only appear on finite fields due to inheritance).
>
> --
> 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
>

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


[sage-support] random() and the random module

2011-04-03 Thread D. M. Monarres
Was working on some code that required the random shuffling of the order of
a list and noticed that there was both a random() function implemented in
the sage library and a random module in the python standard library.
Importing the latter seems to overwrite the former and I was wondering if
that was done deliberately.


--
D. M. Monarres


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


Re: [sage-support] Re: Finite Group Homomorphism question

2011-01-18 Thread D. M. Monarres
Thanks for the other command. I am writing a tutorial for my university and
am running into quite a few of these little gotcha's with these sort of
things.


--
D. M. Monarres



On Tue, Jan 18, 2011 at 8:28 PM, John H Palmieri wrote:

> On Jan 18, 7:30 pm, "D. M. Monarres"  wrote:
> > Hello all,
> >
> > Running into an issue with something. I must be missing something. Say I
> > construct two groups that I know are isomorphic.
> >
> > sage: G = SymmetricGroup(5)
> > sage: r = G('(1,2,5,4,3)')
> > sage: s = G('(1,5),(3,4)')
> > sage: H = G.subgroup([r,s])
> > sage: H
> > Subgroup of SymmetricGroup(5) generated by [(1,2,5,4,3), (1,5)(3,4)]
> > sage: D = DihedralGroup(5)
> > sage: D
> > Dihedral group of order 10 as a permutation group
> >
> > I get an TypeError when I try and construct a homomorphism between these
> two
> > groups.
> > sage: phi = D.hom( ['(1,2,5,4,3)', '(1,5)(3,4)'] , H)
> >
> ---
> > TypeError Traceback (most recent call
> last)
> >
> > /Users/ayeq/Dropbox/src/sdsu-sage-tutorial/ in
> ()
> >
> >
> /Users/ayeq/sage/local/lib/python2.6/site-packages/sage/structure/parent_ge
> ns.so
> > in sage.structure.parent_gens.ParentWithGens.hom
> > (sage/structure/parent_gens.c:3858)()
> >
> >
> /Users/ayeq/sage/local/lib/python2.6/site-packages/sage/categories/homset.p
> yc
> > in __call__(self, x, y, check, on_basis)
> > 432 return self.element_class_set_morphism(self, x)
> > 433
> > --> 434 raise TypeError, "Unable to coerce x (=%s) to a morphism
> in
> > %s"%(x,self)
> > 435
> > 436 @lazy_attribute
> >
> > TypeError: Unable to coerce x (=['(1,2,5,4,3)', '(1,5)(3,4)']) to a
> morphism
> > in Set of Morphisms from Dihedral group of order 10 as a permutation
> group
> > to Subgroup of SymmetricGroup(5) generated by [(1,2,5,4,3), (1,5)(3,4)]
> in
> > Category of finite permutation groups
> >
> > I have tried to do this in a few different ways. (by coercing the
> elements
> > first, etc...) Can somebody see what I am missing? Thank you in advance.
>
> This looks like a bug to me, but I'm not sure.  Anyway, you can do
> this:
>
> sage: PermutationGroupMorphism(D, H, D.gens(), H.gens())
> Homomorphism : Dihedral group of order 10 as a permutation group -->
> Subgroup of SymmetricGroup(5) generated by [(1,2,5,4,3), (1,5)(3,4)]
>
> (I don't know why "D.hom(H.gens(), H)" doesn't do the same thing...)
>
> --
> John
>
> --
> 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
>

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


[sage-support] Re: Finite Group Homomorphism question

2011-01-18 Thread D. M. Monarres
Ignore. I was stupid. Sorry for wasting bits.
--
D. M. Monarres



On Tue, Jan 18, 2011 at 7:30 PM, D. M. Monarres wrote:

> Hello all,
>
> Running into an issue with something. I must be missing something. Say I
> construct two groups that I know are isomorphic.
>
> sage: G = SymmetricGroup(5)
>  sage: r = G('(1,2,5,4,3)')
> sage: s = G('(1,5),(3,4)')
> sage: H = G.subgroup([r,s])
>  sage: H
> Subgroup of SymmetricGroup(5) generated by [(1,2,5,4,3), (1,5)(3,4)]
>  sage: D = DihedralGroup(5)
> sage: D
> Dihedral group of order 10 as a permutation group
>
> I get an TypeError when I try and construct a homomorphism between these
> two groups.
> sage: phi = D.hom( ['(1,2,5,4,3)', '(1,5)(3,4)'] , H)
> ---
> TypeError Traceback (most recent call last)
>
> /Users/ayeq/Dropbox/src/sdsu-sage-tutorial/ in ()
>
> /Users/ayeq/sage/local/lib/python2.6/site-packages/sage/structure/parent_gens.so
> in sage.structure.parent_gens.ParentWithGens.hom
> (sage/structure/parent_gens.c:3858)()
>
> /Users/ayeq/sage/local/lib/python2.6/site-packages/sage/categories/homset.pyc
> in __call__(self, x, y, check, on_basis)
> 432 return self.element_class_set_morphism(self, x)
> 433
> --> 434 raise TypeError, "Unable to coerce x (=%s) to a morphism in
> %s"%(x,self)
> 435
> 436 @lazy_attribute
>
> TypeError: Unable to coerce x (=['(1,2,5,4,3)', '(1,5)(3,4)']) to a
> morphism in Set of Morphisms from Dihedral group of order 10 as a
> permutation group to Subgroup of SymmetricGroup(5) generated by
> [(1,2,5,4,3), (1,5)(3,4)] in Category of finite permutation groups
>
>
> I have tried to do this in a few different ways. (by coercing the elements
> first, etc...) Can somebody see what I am missing? Thank you in advance.
>
> --
> D. M. Monarres
> 
>

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


[sage-support] Finite Group Homomorphism question

2011-01-18 Thread D. M. Monarres
Hello all,

Running into an issue with something. I must be missing something. Say I
construct two groups that I know are isomorphic.

sage: G = SymmetricGroup(5)
sage: r = G('(1,2,5,4,3)')
sage: s = G('(1,5),(3,4)')
sage: H = G.subgroup([r,s])
sage: H
Subgroup of SymmetricGroup(5) generated by [(1,2,5,4,3), (1,5)(3,4)]
sage: D = DihedralGroup(5)
sage: D
Dihedral group of order 10 as a permutation group

I get an TypeError when I try and construct a homomorphism between these two
groups.
sage: phi = D.hom( ['(1,2,5,4,3)', '(1,5)(3,4)'] , H)
---
TypeError Traceback (most recent call last)

/Users/ayeq/Dropbox/src/sdsu-sage-tutorial/ in ()

/Users/ayeq/sage/local/lib/python2.6/site-packages/sage/structure/parent_gens.so
in sage.structure.parent_gens.ParentWithGens.hom
(sage/structure/parent_gens.c:3858)()

/Users/ayeq/sage/local/lib/python2.6/site-packages/sage/categories/homset.pyc
in __call__(self, x, y, check, on_basis)
432 return self.element_class_set_morphism(self, x)
433
--> 434 raise TypeError, "Unable to coerce x (=%s) to a morphism in
%s"%(x,self)
435
436 @lazy_attribute

TypeError: Unable to coerce x (=['(1,2,5,4,3)', '(1,5)(3,4)']) to a morphism
in Set of Morphisms from Dihedral group of order 10 as a permutation group
to Subgroup of SymmetricGroup(5) generated by [(1,2,5,4,3), (1,5)(3,4)] in
Category of finite permutation groups


I have tried to do this in a few different ways. (by coercing the elements
first, etc...) Can somebody see what I am missing? Thank you in advance.

--
D. M. Monarres


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


[sage-support] Plans to upgrade sphinx

2011-01-12 Thread D. M. Monarres
Hello all,

Right now I am working on a sage tutorial for people at my university and
have just converted our content to rest + sphinx. I have noticed that my
intersphinx cross references weren't registering with sage commands. (python
references work) I emailed the sphinx development list and they suggested
that the problem may be with the sphinx 0.6.3 not indexing the commands
correctly. Are there any plans to upgrade the installed sphinx? I have
fished around the spkg and noticed that there are quite a few patches, if
somebody can point me to what these are doing I could make a spkg for the
newest sphinx. Thanks a lot for all of your work.

--
D. M. Monarres


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


[sage-support] Re: Sage Doc Question - Section breaks and the toctree directive

2011-01-04 Thread D. M. Monarres
Just to clarify, I meant the page break in the html output.
--
D. M. Monarres



On Tue, Jan 4, 2011 at 10:54 AM, D. M. Monarres wrote:

> This isn't exactly a sage question per se, but since most of the
> documentation is written in sphinx I assume that somebody on this list would
> have the experience to help me out.
>
> Is there anyway to get sphinx to page-break at the section-level and not
> the chapter level? I am porting our university's sage tutorial and would
> like for the navigation buttons to take a user from section to section. I
> have looked over the sphinx help and do not see how to change this behavior,
> but this may be due to my inexperience with the system. Thanks in advance
> for any help.
>
> --
> D. M. Monarres
> 
>

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


[sage-support] Sage Doc Question - Section breaks and the toctree directive

2011-01-04 Thread D. M. Monarres
This isn't exactly a sage question per se, but since most of the
documentation is written in sphinx I assume that somebody on this list would
have the experience to help me out.

Is there anyway to get sphinx to page-break at the section-level and not the
chapter level? I am porting our university's sage tutorial and would like
for the navigation buttons to take a user from section to section. I have
looked over the sphinx help and do not see how to change this behavior, but
this may be due to my inexperience with the system. Thanks in advance for
any help.

--
D. M. Monarres


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


[sage-support] Multiline output in notebook

2008-09-25 Thread D. M. Monarres

Hello all,

my advisor has a question in the sage notebook that I haven't really  
thought about (as I use the cmd line more often)

Is there a way in a single notebook cell to display multiple output. ie


17
28
19


Out: 19

where he would like


17
28
19

Out: 17
Out: 28
Out: 19

The only way I thought of is to have all on one line separated by  
commas.



--
David Monarres
[EMAIL PROTECTED]

Nothing takes the taste out of peanut butter quite like unrequited love.
 -- Charlie Brown


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Multiline output in notebook

2008-09-25 Thread D. M. Monarres

yes, I was afraid of that. He found that solution to be distasteful. :)


--
David Monarres
[EMAIL PROTECTED]

Life is difficult because it is non-linear.

On Sep 25, 2008, at 7:06 PM, William Stein wrote:

>
> D. M. Monarres wrote:
>> Hello all,
>>
>> my advisor has a question in the sage notebook that I haven't really
>> thought about (as I use the cmd line more often)
>>
>> Is there a way in a single notebook cell to display multiple  
>> output. ie
>>
>> 
>> 17
>> 28
>> 19
>> 
>>
>> Out: 19
>>
>> where he would like
>>
>> 
>> 17
>> 28
>> 19
>> 
>> Out: 17
>> Out: 28
>> Out: 19
>>
>> The only way I thought of is to have all on one line separated by
>> commas.
>>
>
> This as input:
>
> print 17
> print 28
> print 19
>
> William
>
> >


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Interact and published notebooks

2008-07-09 Thread D. M. Monarres

Okay that is fine, just means that I have to push harder to get a  
sage server locally on my campus for the students to play with.  Thanks

--
David Monarres
[EMAIL PROTECTED]

"There... I've run rings 'round you logically"
-- Monty Python's Flying Circus

On Jul 9, 2008, at 11:35 AM, William Stein wrote:

>
> Hi,
>
> Timothy is exactly right.   That interact doesn't work
> with publishedworksheets is a design decision, for now.
>
> William
>
> On Wed, Jul 9, 2008 at 11:28 AM, Timothy Clemans
> <[EMAIL PROTECTED]> wrote:
>>
>> The fact that Interact doesn't work in Published worksheets is
>> intended due to security. Last I heard this would work starting
>> sometime this summer since there is a Google Summer of Code project
>> involving Interact.
>>
>> On Wed, Jul 9, 2008 at 11:22 AM, D. M. Monarres  
>> <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>> Hello all,
>>>
>>> I made a sage notebook to illustrate the integration process for my
>>> class with plots and interact. When I try and make the notebook
>>> public (both on my local machine and on sagenb.org) the plotting  
>>> does
>>> not seem to work. There is a subtle green bar on the side of the  
>>> cell
>>> which seems to imply that the sage is doing something but the plots
>>> never show up.
>>>
>>> Do published notebooks have to be static? Is there a verbose logging
>>> mode that I can use in order to try and figure out what is  
>>> happening.
>>> Thank you in advance for your help.
>>>
>>> --
>>> David Monarres
>>> [EMAIL PROTECTED]
>>>
>>> Nothing takes the taste out of peanut butter quite like  
>>> unrequited love.
>>> -- Charlie Brown
>>>
>>>
>>>>
>>>
>>
>>>
>>
>
>
>
> -- 
> William Stein
> Associate 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Interact and published notebooks

2008-07-09 Thread D. M. Monarres


Hello all,

I made a sage notebook to illustrate the integration process for my  
class with plots and interact. When I try and make the notebook  
public (both on my local machine and on sagenb.org) the plotting does  
not seem to work. There is a subtle green bar on the side of the cell  
which seems to imply that the sage is doing something but the plots  
never show up.

Do published notebooks have to be static? Is there a verbose logging  
mode that I can use in order to try and figure out what is happening.  
Thank you in advance for your help.

--
David Monarres
[EMAIL PROTECTED]

Nothing takes the taste out of peanut butter quite like unrequited love.
 -- Charlie Brown


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Multiple Plots with different colors

2008-02-16 Thread D. M. Monarres

Hello all,

First of all, I would like to thank all of the sage developers. Sage  
has been a very useful tool for both graduate work and teaching.

I have a question about plotting. The plot function allows for a list  
of functions as an argument, is there any way that I could specify  
the plot colors for each of the curves. For example, when I would  
want to talk about graph transformations in lecture I would like to  
show the original graph in blue and a scaled graph in red.

I know about using the + operator with graphs and use that when I am  
constructing graphs for myself but when I am in class I think my  
students get distracted when there is too much code on the screen.

What I am thinking about is something like


sage: f(x) = x^2
sage: g(x) = (x-5)^2


sage: plot( [f,g], (x,-10,10), rgbcolor= [ (0,0,1) , (1,0,0) ] )

(but I know that this doesn't work.

Am I missing something obvious?



--
David Monarres
[EMAIL PROTECTED]

Nothing takes the taste out of peanut butter quite like unrequited love.
 -- Charlie Brown


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Problem with upgrade() on Mac OS X 10.4.11

2007-11-22 Thread D. M. Monarres

Hello all,
When trying to upgrade from 2.8.12 installed from binaries downloaded  
from the web, I am getting the following error after restarting what  
looks like a successful upgrade:

galois:~/sage ayeq$ sage
--
| SAGE Version 2.8.13, Release Date: 2007-11-21  |
| Type notebook() for the GUI, and license() for information.|
--
 
---
   Traceback (most recent call  
last)

/Users/ayeq/sage/local/bin/ in ()

: No module named  
sage.misc.preparser_ipython
WARNING: Failure executing code: 'import  
sage.misc.preparser_ipython;   
sage.misc.preparser_ipython.magma_colon_equals=True'
 
---
   Traceback (most recent call  
last)

/Users/ayeq/sage/local/bin/ in ()

: No module named sage.misc.misc
exit()


The errors are similar to ones in a previous post by Dan Shumow on  
Nov 5. I have tried to manually merge and update like said in the  
replies but nothing changes.

When trying to make from the sage folder i am getting odd references  
from the linker saying something about a library linked in /Users/ 
clarita . <-- Is this one of the developers boxes. Here is the actual  
output

building 'sage.libs.ntl.ntl_GF2' extension
g++ -bundle -undefined dynamic_lookup build/temp.macosx-10.3-i386-2.5/ 
sage/libs/ntl/ntl_GF2.o -L/Users/ayeq/sage/local//lib -lcsage -lcsage  
-lntl -lstdc++ -lstdc++ -lntl -o build/lib.macosx-10.3-i386-2.5/sage/ 
libs/ntl/ntl_GF2.so
/usr/bin/ld: warning can't open dynamic library: /Users/clarita/ 
Desktop/sage-2.8.11/local/lib/libgmp.3.dylib referenced from: /Users/ 
ayeq/sage/local//lib/libcsage.dylib (checking for undefined symbols  
may be affected) (No such file or directory, errno = 2)
/usr/bin/ld: warning can't open dynamic library: libpari-gmp.dylib  
referenced from: /Users/ayeq/sage/local//lib/libcsage.dylib (checking  
for undefined symbols may be affected) (No such file or directory,  
errno = 2)
/usr/bin/ld: Undefined symbols:
___gmpn_add_n referenced from libntl expected to be defined in /Users/ 
clarita/Desktop/sage-2.8.11/local/lib/libgmp.3.dylib
___gmpn_addmul_1 referenced from libntl expected to be defined in / 
Users/clarita/Desktop/sage-2.8.11/local/lib/libgmp.3.dylib
___gmpn_divrem_1 referenced from libntl expected to be defined in / 
Users/clarita/Desktop/sage-2.8.11/local/lib/libgmp.3.dylib
___gmpn_gcd referenced from libntl expected to be defined in /Users/ 
clarita/Desktop/sage-2.8.11/local/lib/libgmp.3.dylib
___gmpn_gcdext referenced from libntl expected to be defined in / 
Users/clarita/Desktop/sage-2.8.11/local/lib/libgmp.3.dylib
___gmpn_lshift referenced from libntl expected to be defined in / 
Users/clarita/Desktop/sage-2.8.11/local/lib/libgmp.3.dylib
___gmpn_mod_1 referenced from libntl expected to be defined in /Users/ 
clarita/Desktop/sage-2.8.11/local/lib/libgmp.3.dylib
___gmpn_mul referenced from libntl expected to be defined in /Users/ 
clarita/Desktop/sage-2.8.11/local/lib/libgmp.3.dylib
___gmpn_mul_1 referenced from libntl expected to be defined in /Users/ 
clarita/Desktop/sage-2.8.11/local/lib/libgmp.3.dylib
___gmpn_rshift referenced from libntl expected to be defined in / 
Users/clarita/Desktop/sage-2.8.11/local/lib/libgmp.3.dylib
___gmpn_sqrtrem referenced from libntl expected to be defined in / 
Users/clarita/Desktop/sage-2.8.11/local/lib/libgmp.3.dylib
___gmpn_sub_n referenced from libntl expected to be defined in /Users/ 
clarita/Desktop/sage-2.8.11/local/lib/libgmp.3.dylib
___gmpn_tdiv_qr referenced from libntl expected to be defined in / 
Users/clarita/Desktop/sage-2.8.11/local/lib/libgmp.3.dylib
collect2: ld returned 1 exit status
error: command 'g++' failed with exit status 1
sage: There was an error installing modified sage library code.



and after running a make distclean it wont even try to build  
complaining about circular dependencies:

galois:~/sage ayeq$ make
cd spkg && ./install all 2>&1 | tee -a ../install.log
cp: base/sage-*: No such file or directory
ls: bzip2-*-install: No such file or directory
ls: dir-*-install: No such file or directory
ls: prereq-*-install: No such file or directory
standard/deps:38: warning: overriding commands for target `installed/'
standard/deps:35: warning: ignoring old commands for target `installed/'
standard/deps:41: warning: overriding commands for target `installed/'
standard/deps:38: warning: ignoring old commands for target `installed/'
standard/deps:152: warning: overriding commands for target `installed/'
standard/deps:41: warning: ignoring old commands for target `installed/'
make[1]: Circular installed/python-2.5.1.p8 <- installed/ dependency  
dropped.
make[1]: Circular installed/python-2.5.1.p8 <- installed/ dependency  
dropped.
make[1]: Circular installed/python-2.