[sage-devel] Re: [sage-cloud] Sympy needs to be updated in SMC and Sage

2015-01-08 Thread Ralf Stephan
Yes, that error is due to sympy-0.7.6 bundling mpmath.
That's why patches were needed with 0.7.5 in Sage. So,
either William should install git master using pip,
or apply the existing patches in build/ to 0.7.6.

On Thursday, January 8, 2015 at 9:41:06 PM UTC+1, Ondřej Čertík wrote:
> On Thu, Jan 8, 2015 at 12:02 PM, William Stein  wrote:
> > On Thu, Jan 8, 2015 at 10:16 AM, Андрей Ширшов  
> > wrote:
> >> Hello!
> >> There is the following example on
> >> http://docs.sympy.org/latest/modules/sets.html:
> >>
> > from sympy import FiniteSet, EmptySet
> > A = EmptySet()
> > A.powerset()
> >> {EmptySet()}
> > A = FiniteSet(1, 2)
> > A.powerset() == FiniteSet(FiniteSet(1), FiniteSet(2), FiniteSet(1, 2),
> > EmptySet())
> >> True
> >>
> >>
> >> If you'll try this code in SMC you will get error, that "'EmptySet' object
> >> has no attribute 'powerset'". Now in SMC sympy version is 0.7.4,
> >> while this example seems to be for sympy version 0.7.6
> >>
> >> Please update sympy for Sage and SMC.
> >>
> >> Best regards, Andrei
> >
> > I tried pip installing the latest version and it breaks everything
> > (see below).  This request should go to sage-devel, by the way.
> >
> >
> > /projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/sage/libs/mpmath/ext_main.pyx
> > in init sage.libs.mpmath.ext_main
> > (build/cythonized/sage/libs/mpmath/ext_main.
> > c:29967)()
> >
> > /usr/local/sage/sage-6.4/local/lib/python2.7/site-packages/mpmath/__init__.py
> > in ()
> >   4
> >   5 from .ctx_fp import FPContext
> > > 6 from .ctx_mp import MPContext
> >   7 from .ctx_iv import MPIntervalContext
> >   8
> >
> > /usr/local/sage/sage-6.4/local/lib/python2.7/site-packages/mpmath/ctx_mp.py
> > in ()
> >  47 from sage.libs.mpmath.ext_main import Context as BaseMPContext
> >  48 # pickle hack
> > ---> 49 import sage.libs.mpmath.ext_main as _mpf_module
> >  50 else:
> >  51 from .ctx_mp_python import PythonMPContext as BaseMPContext
> >
> > AttributeError: 'module' object has no attribute 'ext_main'
> 
> Is that a bug in sympy?
> 
> Note that in the latest git master, we removed mpmath from sympy and
> now simply depend on it. So since Sage ships mpmath, sympy would just
> use it. Once a new sympy release is made, then one will have to
> account for this change (the latest release as of today is 0.7.6 and
> that still includes its own mpmath, which maybe clashes with the
> mpmath in sage in the above stacktrace?).
> 
> Ondrej

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: Python 3 focused Sage Days

2015-01-08 Thread R. Andrew Ohana
On Thu, Jan 8, 2015 at 5:38 PM, kcrisman  wrote:

> All our dependencies have proper support for Python 3,
>>
>
> What about 17 and 18 at http://trac.sagemath.org/ticket/15530?
>

Yes, you are right. I had forgotten about those when I posted this. 17
(scons) only exists because of 18 (polybori) and csage, although there has
been some work to move off of scons for csage. I'm not really familiar with
the polybori situation, other than from the outside, the project appears to
be dead, so we would have to handle that somehow. Certainly, most of sage
*should* be usable without polybori, so we *should* be able to get
something up and running without it (considering how messed up the imports
are in sage though, it wouldn't surprise me if it would take a ton of work
to make sage usable without polybori).

 --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Andrew

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: Python 3 focused Sage Days

2015-01-08 Thread kcrisman

>
> All our dependencies have proper support for Python 3,
>

What about 17 and 18 at http://trac.sagemath.org/ticket/15530? 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Build error for sage-6.4.1 in pynac-0.3.2

2015-01-08 Thread crookscj02
It didn't seem to like just changing the effective group and failed almost 
immediately trying to build gcc.  I have started afresh with hpcapps as the 
effective group and will see how far I can get.

On Thursday, January 8, 2015 at 3:38:28 PM UTC-6, François wrote:
>
> Nothing to do apart from “make”. 
> > On 9/01/2015, at 10:21, crook...@gmail.com  wrote: 
> > 
> > Thank you.  I will give it a try.   
> > 
> > Pardon my ignorance, but is there anything I have to do to pick up the 
> "make" where I left off?  Or, do I need to start from the beginning? 
> > 
> > Cindy 
> > 
> > On Thursday, January 8, 2015 at 2:41:12 PM UTC-6, François wrote: 
> > Not completely sure since the error is about the folder’s group 
> permission but that’s worth a try. 
> > I am not sure how the “security” stuff has been implemented, it may be 
> that the group is outside 
> > a deemed safe range. 
> > Hum, this was implemented here: 
> > 
> https://github.com/sagemath/sage/blob/master/build/pkgs/python/patches/sys_path_security.patch#L251
>  
> > I am guessing in your case the group is writable which of course you 
> want (Fellow HPC admin here). 
> > A strategy would be to build in personal directory and then install. 
> > 
> > François 
> > 
> > > On 9/01/2015, at 09:26, crook...@gmail.com wrote: 
> > > 
> > > 
> > > 
> > > O 
> > > I am part of the root  group.  Below is the list of groups that I am 
> part of: 
> > > 
> > >   gid=255(hpcadmin) 
> groups=255(hpcadmin),254(hpc),702(techgrp),23171(hpcapps),23173(hpctrain),42124(hpc-vasp),44679(hpc-reems),47919(hpc-sys),61860(rsmadmins)
>  
>
> > > 
> > > The directories and software that I have mentioned are owned by the 
> hpcapps group.  Do I need to have that be my "effective" group for the sage 
> python to work? 
> > > 
> > > Cindy 
> > > 
> > > -- 
> > > You received this message because you are subscribed to the Google 
> Groups "sage-devel" group. 
> > > To unsubscribe from this group and stop receiving emails from it, send 
> an email to sage-devel+...@googlegroups.com. 
> > > To post to this group, send email to sage-...@googlegroups.com. 
> > > Visit this group at http://groups.google.com/group/sage-devel. 
> > > For more options, visit https://groups.google.com/d/optout. 
> > 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "sage-devel" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to sage-devel+...@googlegroups.com . 
> > To post to this group, send email to sage-...@googlegroups.com 
> . 
> > Visit this group at http://groups.google.com/group/sage-devel. 
> > For more options, visit https://groups.google.com/d/optout. 
>
>
On Thursday, January 8, 2015 at 3:38:28 PM UTC-6, François wrote:
>
> Nothing to do apart from “make”. 
> > On 9/01/2015, at 10:21, crook...@gmail.com  wrote: 
> > 
> > Thank you.  I will give it a try.   
> > 
> > Pardon my ignorance, but is there anything I have to do to pick up the 
> "make" where I left off?  Or, do I need to start from the beginning? 
> > 
> > Cindy 
> > 
> > On Thursday, January 8, 2015 at 2:41:12 PM UTC-6, François wrote: 
> > Not completely sure since the error is about the folder’s group 
> permission but that’s worth a try. 
> > I am not sure how the “security” stuff has been implemented, it may be 
> that the group is outside 
> > a deemed safe range. 
> > Hum, this was implemented here: 
> > 
> https://github.com/sagemath/sage/blob/master/build/pkgs/python/patches/sys_path_security.patch#L251
>  
> > I am guessing in your case the group is writable which of course you 
> want (Fellow HPC admin here). 
> > A strategy would be to build in personal directory and then install. 
> > 
> > François 
> > 
> > > On 9/01/2015, at 09:26, crook...@gmail.com wrote: 
> > > 
> > > 
> > > 
> > > O 
> > > I am part of the root  group.  Below is the list of groups that I am 
> part of: 
> > > 
> > >   gid=255(hpcadmin) 
> groups=255(hpcadmin),254(hpc),702(techgrp),23171(hpcapps),23173(hpctrain),42124(hpc-vasp),44679(hpc-reems),47919(hpc-sys),61860(rsmadmins)
>  
>
> > > 
> > > The directories and software that I have mentioned are owned by the 
> hpcapps group.  Do I need to have that be my "effective" group for the sage 
> python to work? 
> > > 
> > > Cindy 
> > > 
> > > -- 
> > > You received this message because you are subscribed to the Google 
> Groups "sage-devel" group. 
> > > To unsubscribe from this group and stop receiving emails from it, send 
> an email to sage-devel+...@googlegroups.com. 
> > > To post to this group, send email to sage-...@googlegroups.com. 
> > > Visit this group at http://groups.google.com/group/sage-devel. 
> > > For more options, visit https://groups.google.com/d/optout. 
> > 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "sage-devel" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to sage-devel+...@googlegroup

[sage-devel] Python 3 focused Sage Days

2015-01-08 Thread R. Andrew Ohana
As an alternative to the Bug Days William mentioned, we could hold a
workshop focused on porting Sage to Python 3 (this has apparently been a
frequent request for SMC).

All our dependencies have proper support for Python 3, so the main effort
at this point in time is porting the Sage library. A lot of effort has
already gone into fixing non-Python 3 compatible syntax and functionality
(see #15980 and #16052), although a decent amount of more effort is
required.

In particular, Sage currently relies a great deal on simple comparison (see
the recent discussion
https://groups.google.com/forum/#!topic/sage-devel/4Ho98yUmzco), which is
no longer supported in Python 3. Some decision will have to be made on how
we want to adapt the coercion framework to only rely on rich comparison,
and how we want to handle classes that (currently) only support simple
comparison.

-- 
Andrew

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Build error for sage-6.4.1 in pynac-0.3.2

2015-01-08 Thread Francois Bissey
Nothing to do apart from “make”.
> On 9/01/2015, at 10:21, crooksc...@gmail.com wrote:
> 
> Thank you.  I will give it a try.  
> 
> Pardon my ignorance, but is there anything I have to do to pick up the "make" 
> where I left off?  Or, do I need to start from the beginning?
> 
> Cindy
> 
> On Thursday, January 8, 2015 at 2:41:12 PM UTC-6, François wrote:
> Not completely sure since the error is about the folder’s group permission 
> but that’s worth a try. 
> I am not sure how the “security” stuff has been implemented, it may be that 
> the group is outside 
> a deemed safe range. 
> Hum, this was implemented here: 
> https://github.com/sagemath/sage/blob/master/build/pkgs/python/patches/sys_path_security.patch#L251
>  
> I am guessing in your case the group is writable which of course you want 
> (Fellow HPC admin here). 
> A strategy would be to build in personal directory and then install. 
> 
> François 
> 
> > On 9/01/2015, at 09:26, crook...@gmail.com wrote: 
> > 
> > 
> > 
> > O 
> > I am part of the root  group.  Below is the list of groups that I am part 
> > of: 
> > 
> >   gid=255(hpcadmin) 
> > groups=255(hpcadmin),254(hpc),702(techgrp),23171(hpcapps),23173(hpctrain),42124(hpc-vasp),44679(hpc-reems),47919(hpc-sys),61860(rsmadmins)
> >  
> > 
> > The directories and software that I have mentioned are owned by the hpcapps 
> > group.  Do I need to have that be my "effective" group for the sage python 
> > to work? 
> > 
> > Cindy 
> > 
> > -- 
> > You received this message because you are subscribed to the Google Groups 
> > "sage-devel" group. 
> > To unsubscribe from this group and stop receiving emails from it, send an 
> > email to sage-devel+...@googlegroups.com. 
> > To post to this group, send email to sage-...@googlegroups.com. 
> > Visit this group at http://groups.google.com/group/sage-devel. 
> > For more options, visit https://groups.google.com/d/optout. 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Build error for sage-6.4.1 in pynac-0.3.2

2015-01-08 Thread crookscj02
Thank you.  I will give it a try.  

Pardon my ignorance, but is there anything I have to do to pick up the 
"make" where I left off?  Or, do I need to start from the beginning?

Cindy

On Thursday, January 8, 2015 at 2:41:12 PM UTC-6, François wrote:
>
> Not completely sure since the error is about the folder’s group permission 
> but that’s worth a try. 
> I am not sure how the “security” stuff has been implemented, it may be 
> that the group is outside 
> a deemed safe range. 
> Hum, this was implemented here: 
>
> https://github.com/sagemath/sage/blob/master/build/pkgs/python/patches/sys_path_security.patch#L251
>  
> I am guessing in your case the group is writable which of course you want 
> (Fellow HPC admin here). 
> A strategy would be to build in personal directory and then install. 
>
> François 
>
> > On 9/01/2015, at 09:26, crook...@gmail.com  wrote: 
> > 
> > 
> > 
> > O 
> > I am part of the root  group.  Below is the list of groups that I am 
> part of: 
> > 
> >   gid=255(hpcadmin) 
> groups=255(hpcadmin),254(hpc),702(techgrp),23171(hpcapps),23173(hpctrain),42124(hpc-vasp),44679(hpc-reems),47919(hpc-sys),61860(rsmadmins)
>  
>
> > 
> > The directories and software that I have mentioned are owned by the 
> hpcapps group.  Do I need to have that be my "effective" group for the sage 
> python to work? 
> > 
> > Cindy 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "sage-devel" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to sage-devel+...@googlegroups.com . 
> > To post to this group, send email to sage-...@googlegroups.com 
> . 
> > Visit this group at http://groups.google.com/group/sage-devel. 
> > For more options, visit https://groups.google.com/d/optout. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Build error for sage-6.4.1 in pynac-0.3.2

2015-01-08 Thread Francois Bissey
Not completely sure since the error is about the folder’s group permission but 
that’s worth a try.
I am not sure how the “security” stuff has been implemented, it may be that the 
group is outside
a deemed safe range.
Hum, this was implemented here:
https://github.com/sagemath/sage/blob/master/build/pkgs/python/patches/sys_path_security.patch#L251
I am guessing in your case the group is writable which of course you want 
(Fellow HPC admin here).
A strategy would be to build in personal directory and then install.

François

> On 9/01/2015, at 09:26, crooksc...@gmail.com wrote:
> 
> 
> 
> O
> I am part of the root  group.  Below is the list of groups that I am part of:
> 
>   gid=255(hpcadmin) 
> groups=255(hpcadmin),254(hpc),702(techgrp),23171(hpcapps),23173(hpctrain),42124(hpc-vasp),44679(hpc-reems),47919(hpc-sys),61860(rsmadmins)
> 
> The directories and software that I have mentioned are owned by the hpcapps 
> group.  Do I need to have that be my "effective" group for the sage python to 
> work?
> 
> Cindy
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: [sage-cloud] Sympy needs to be updated in SMC and Sage

2015-01-08 Thread Ondřej Čertík
On Thu, Jan 8, 2015 at 12:02 PM, William Stein  wrote:
> On Thu, Jan 8, 2015 at 10:16 AM, Андрей Ширшов  wrote:
>> Hello!
>> There is the following example on
>> http://docs.sympy.org/latest/modules/sets.html:
>>
> from sympy import FiniteSet, EmptySet
> A = EmptySet()
> A.powerset()
>> {EmptySet()}
> A = FiniteSet(1, 2)
> A.powerset() == FiniteSet(FiniteSet(1), FiniteSet(2), FiniteSet(1, 2),
> EmptySet())
>> True
>>
>>
>> If you'll try this code in SMC you will get error, that "'EmptySet' object
>> has no attribute 'powerset'". Now in SMC sympy version is 0.7.4,
>> while this example seems to be for sympy version 0.7.6
>>
>> Please update sympy for Sage and SMC.
>>
>> Best regards, Andrei
>
> I tried pip installing the latest version and it breaks everything
> (see below).  This request should go to sage-devel, by the way.
>
>
> /projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/sage/libs/mpmath/ext_main.pyx
> in init sage.libs.mpmath.ext_main
> (build/cythonized/sage/libs/mpmath/ext_main.
> c:29967)()
>
> /usr/local/sage/sage-6.4/local/lib/python2.7/site-packages/mpmath/__init__.py
> in ()
>   4
>   5 from .ctx_fp import FPContext
> > 6 from .ctx_mp import MPContext
>   7 from .ctx_iv import MPIntervalContext
>   8
>
> /usr/local/sage/sage-6.4/local/lib/python2.7/site-packages/mpmath/ctx_mp.py
> in ()
>  47 from sage.libs.mpmath.ext_main import Context as BaseMPContext
>  48 # pickle hack
> ---> 49 import sage.libs.mpmath.ext_main as _mpf_module
>  50 else:
>  51 from .ctx_mp_python import PythonMPContext as BaseMPContext
>
> AttributeError: 'module' object has no attribute 'ext_main'

Is that a bug in sympy?

Note that in the latest git master, we removed mpmath from sympy and
now simply depend on it. So since Sage ships mpmath, sympy would just
use it. Once a new sympy release is made, then one will have to
account for this change (the latest release as of today is 0.7.6 and
that still includes its own mpmath, which maybe clashes with the
mpmath in sage in the above stacktrace?).

Ondrej

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Build error for sage-6.4.1 in pynac-0.3.2

2015-01-08 Thread crookscj02


OSorry, I should have said I am NOT part of the root group.  I was typing 
too fast.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Build error for sage-6.4.1 in pynac-0.3.2

2015-01-08 Thread crookscj02


O

> I am part of the root  group.  Below is the list of groups that I am part 
> of:
>

  gid=255(hpcadmin) 
groups=255(hpcadmin),254(hpc),702(techgrp),23171(hpcapps),23173(hpctrain),42124(hpc-vasp),44679(hpc-reems),47919(hpc-sys),61860(rsmadmins)

The directories and software that I have mentioned are owned by the hpcapps 
group.  Do I need to have that be my "effective" group for the sage python 
to work?

Cindy

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Build error for sage-6.4.1 in pynac-0.3.2

2015-01-08 Thread Francois Bissey
That’s interesting, would you belong to an admin group or even the root group?
Or more likely you set the group ownership and permission for this folder to 
something that’s
not acceptable for the python shipped by sage.

François
> On 9/01/2015, at 08:43, crooksc...@gmail.com wrote:
> 
> I am trying to compile sage-6.4.1 for one of my users.  I am working on a 
> SLES11 SP2 machine using gcc 4.9.2 and python 2.7.7.  I am using my personal 
> account and I own the build directory and all of the directories/files for 
> gcc and python.  I am still getting the following error:
> 
> checking for a version of Python >= '2.1.0'... sys:1: RuntimeWarning: not 
> adding
>  directory '' to sys.path since it's writable by an untrusted group.
> Untrusted users could put files in this directory which might then be 
> imported b
> y your Python code. As a general precaution from similar exploits, you should 
> no
> t execute Python code from this directory
> 
> I have attached the sage_pynac-0.3.2.log for you to review.  I have tried 
> looking through previous posts, but I don't see anything that quite matches 
> this situation.
> 
> Thanks in advance for your help.
> 
> Cindy
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Build error for sage-6.4.1 in pynac-0.3.2

2015-01-08 Thread crookscj02
I am trying to compile sage-6.4.1 for one of my users.  I am working on a 
SLES11 SP2 machine using gcc 4.9.2 and python 2.7.7.  I am using my 
personal account and I own the build directory and all of the 
directories/files for gcc and python.  I am still getting the following 
error:

checking for a version of Python >= '2.1.0'... sys:1: RuntimeWarning: not 
adding
 directory '' to sys.path since it's writable by an untrusted group.
Untrusted users could put files in this directory which might then be 
imported b
y your Python code. As a general precaution from similar exploits, you 
should no
t execute Python code from this directory

I have attached the sage_pynac-0.3.2.log for you to review.  I have tried 
looking through previous posts, but I don't see anything that quite matches 
this situation.

Thanks in advance for your help.

Cindy

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.
pynac-0.3.2

Setting up build directory for pynac-0.3.2
Finished set up

Host system:
Linux hpcbuild02 3.0.13-0.27-default #1 SMP Wed Feb 15 13:33:49 UTC 2012 (d73692b) x86_64 x86_64 x86_64 GNU/Linux

C compiler: gcc
C compiler version:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/hpc/apps/SLES/3.0/x86_64/gcc/4.9.2/libexec/gcc/x86_64-linux-gnu/4.9.2/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../gcc-4.9.2//configure --build=x86_64-linux-gnu --prefix=/hpc/apps/SLES/3.0/x86_64/gcc/4.9.2 --with-gmp=/hpc/apps/SLES/3.0/x86_64/gmp/5.1.3 --with-mpfr=/hpc/apps/SLES/3.0/x86_64/mpfr/3.1.2 --with-mpc=/hpc/apps/SLES/3.0/x86_64/mpc/1.0.1 --enable-checking-release --enable-languages=c,c++,fortran --disable-multilib --program-suffix=4.9.2
Thread model: posix
gcc version 4.9.2 (GCC) 

Starting build...
Running build_pynac...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for python... /hpc/tstapps/src/sage/sage-6.4.1/local/bin/python
checking for a version of Python >= '2.1.0'... sys:1: RuntimeWarning: not adding directory '' to sys.path since it's writable by an untrusted group.
Untrusted users could put files in this directory which might then be imported by your Python code. As a general precaution from similar exploits, you should not execute Python code from this directory
yes
checking for the distutils Python package... no
configure: error: cannot import Python module "distutils".
Please check your Python installation. The error was:
sys:1: RuntimeWarning: not adding directory '' to sys.path since it's writable by an untrusted group.
Untrusted users could put files in this directory which might then be imported by your Python code. As a general precaution from similar exploits, you should not execute Python code from this directory
make[3]: Entering directory `/hpc/tstapps/src/sage/sage-6.4.1/local/var/tmp/sage/build/pynac-0.3.2/src'
make[3]: *** No targets specified and no makefile found.  Stop.
make[3]: Leaving directory `/hpc/tstapps/src/sage/sage-6.4.1/local/var/tmp/sage/build/pynac-0.3.2/src'
Error building pynac.

real0m0.926s
user0m0.240s
sys 0m0.180s

Error installing package pynac-0.3.2

Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the relevant part of the log file
  /hpc/tstapps/src/sage/sage-6.4.1/logs/pkgs/pynac-0.3.2.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/hpc/tstapps/src/sage/sage-6.4.1/local/var/tmp/sage/build/pynac-0.3.2 and type 'make' or whatever is appropriate.
Instead, the following commands setup all env

[sage-devel] Re: [sage-cloud] Sympy needs to be updated in SMC and Sage

2015-01-08 Thread William Stein
On Thu, Jan 8, 2015 at 10:16 AM, Андрей Ширшов  wrote:
> Hello!
> There is the following example on
> http://docs.sympy.org/latest/modules/sets.html:
>
 from sympy import FiniteSet, EmptySet
 A = EmptySet()
 A.powerset()
> {EmptySet()}
 A = FiniteSet(1, 2)
 A.powerset() == FiniteSet(FiniteSet(1), FiniteSet(2), FiniteSet(1, 2),
 EmptySet())
> True
>
>
> If you'll try this code in SMC you will get error, that "'EmptySet' object
> has no attribute 'powerset'". Now in SMC sympy version is 0.7.4,
> while this example seems to be for sympy version 0.7.6
>
> Please update sympy for Sage and SMC.
>
> Best regards, Andrei

I tried pip installing the latest version and it breaks everything
(see below).  This request should go to sage-devel, by the way.


/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/sage/libs/mpmath/ext_main.pyx
in init sage.libs.mpmath.ext_main
(build/cythonized/sage/libs/mpmath/ext_main.
c:29967)()

/usr/local/sage/sage-6.4/local/lib/python2.7/site-packages/mpmath/__init__.py
in ()
  4
  5 from .ctx_fp import FPContext
> 6 from .ctx_mp import MPContext
  7 from .ctx_iv import MPIntervalContext
  8

/usr/local/sage/sage-6.4/local/lib/python2.7/site-packages/mpmath/ctx_mp.py
in ()
 47 from sage.libs.mpmath.ext_main import Context as BaseMPContext
 48 # pickle hack
---> 49 import sage.libs.mpmath.ext_main as _mpf_module
 50 else:
 51 from .ctx_mp_python import PythonMPContext as BaseMPContext

AttributeError: 'module' object has no attribute 'ext_main'


-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] cross-post from flint-devel: python bindings for Flint and Arb (work in progress)

2015-01-08 Thread Fredrik Johansson
On Thu, Jan 8, 2015 at 5:19 PM, William Stein  wrote:
> On Thu, Jan 8, 2015 at 5:56 AM, John Cremona  wrote:
>> http://fredrikj.net/blog/2015/01/arb-and-flint-in-python/
>
> Hi Fredrik,
>
> Any chance you could make this trivial to install into an existing
> Sage install?   E.g. a sage package?  Since you know where FLINT is
> there, what the version is, have the SAGE_LOCAL variable, etc...

I could create an spkg. Later this month, hopefully.

Note that Clemens Heuberger has started working on proper Sage
bindings for Arb (http://trac.sagemath.org/ticket/17194 and sequel
tickets). I think this is the right way to go.

python-flint is a less serious project, with a more ad-hoc design,
mostly intended for my own experiments.

Fredrik

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: Bug Days?

2015-01-08 Thread William Stein
On Thu, Jan 8, 2015 at 8:20 AM, kcrisman  wrote:
>>
>>
>> Would anybody be interested in helping me to organize a bug days
>> workshop sometime in the next few months?
>>
>
> Can you define "next few months", e.g. does it mean before the end of
> typical US academic year calendars or into the summer as well?

Before August 2015.

 -- William


-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: Bug Days?

2015-01-08 Thread kcrisman

>
>
>
> Would anybody be interested in helping me to organize a bug days 
> workshop sometime in the next few months? 
>
>
Can you define "next few months", e.g. does it mean before the end of 
typical US academic year calendars or into the summer as well? 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] cross-post from flint-devel: python bindings for Flint and Arb (work in progress)

2015-01-08 Thread William Stein
On Thu, Jan 8, 2015 at 5:56 AM, John Cremona  wrote:
> http://fredrikj.net/blog/2015/01/arb-and-flint-in-python/

Hi Fredrik,

Any chance you could make this trivial to install into an existing
Sage install?   E.g. a sage package?  Since you know where FLINT is
there, what the version is, have the SAGE_LOCAL variable, etc...

William



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Bug Days?

2015-01-08 Thread William Stein
Hi,

Would anybody be interested in helping me to organize a bug days
workshop sometime in the next few months?
I have plenty of funding for this for US people and can scrounge up
some funds for some non-US people.

William

-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: Russian review of SMC

2015-01-08 Thread kcrisman


> Hi! Thanks a lot %)
>
>>
>>
Спасибо вам!  This was a very nice article; sorry I didn't recognize you 
among your many pseudonyms :) 

> Today I've got new comment: "I didn't use Sage because I don't see big 
advantages of Sage in contrast to IPython".

I think that is actually just not understanding that Sage and IPython have 
different (complementary) goals.   For many users IPython nb (or its 
successors) is probably the way to go, but they should still be educated 
into how Sage will be useful for them (such as that it's easy to use 
IPython when you already have Sage, but not so much vice-versa).

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] cross-post from flint-devel: python bindings for Flint and Arb (work in progress)

2015-01-08 Thread John Cremona
http://fredrikj.net/blog/2015/01/arb-and-flint-in-python/

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: trac messages classified as spam

2015-01-08 Thread Frédéric Chapoton
Thanks, I had also found that this was the problem.

Le jeudi 8 janvier 2015 10:09:55 UTC+1, Volker Braun a écrit :
>
> AHBL has closed recently. In order to get people to fix their mail server 
> configuration they are returning positive for all requests now. Somebody 
> needs to fix the email server that did the spam filtering, and it is 
> urgent. See also http://ahbl.org/node
>
>
> On Thursday, January 8, 2015 9:20:30 AM UTC+1, Frédéric Chapoton wrote:
>>
>> I will investigate what happens locally. For information, here is the 
>> report
>>
>> X-Spam-Report: =?ISO-8859-1?Q?
>>  *  2.7 DNS_FROM_AHBL_RHSBL RBL: Envelope sender listed in dnsbl.ahbl.org
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: Russian review of SMC

2015-01-08 Thread Андрей Ширшов
Today I've got new comment: "I didn't use Sage because I don't see big 
advantages of Sage in contrast to IPython".

Andrei.

четверг, 8 января 2015 г., 10:58:46 UTC+3 пользователь Андрей Ширшов 
написал:
>
> Hi! Thanks a lot %)
> Reading comments I understood that Russian users want to know about 
> differences between Sage worksheet, Jupiter and Ipython.
> Unfortunatelly I know Ipython and Jupiter very bad. If this article will 
> be created, I'm ready to translate it and add to Habrahabr.ru.
>
> Thanks a lot)
> Andrei.
>
> среда, 7 января 2015 г., 22:14:14 UTC+3 пользователь William Stein написал:
>>
>> On Wed, Jan 7, 2015 at 11:10 AM, Andrey Novoseltsev  
>> wrote: 
>> > On Monday, 5 January 2015 07:53:20 UTC-7, kcrisman wrote: 
>> >> 
>> >> See http://habrahabr.ru/post/247277/ - someone posted this on Sage 
>> social 
>> >> media.  Honestly, an English version of this would be useful too... 
>> >> 
>> >> Interestingly, the comments seem largely negative - need good 
>> internet, 
>> >> prefers Anaconda, wants something more like IPython... perhaps someone 
>> could 
>> >> comment there a little more robustly that we do have a command-line 
>> version! 
>> >> The author himself says, regarding school students using things like 
>> Matlab: 
>> >> 
>> >> Если мы объединимся, мы можем изменить это положение вещей. На мой 
>> взгляд 
>> >> необходимо сделать 3 вещи: 
>> >> 
>> >> Русифицировать интерфейс SMC, 
>> >> Написать справку и учебные пособия на русском языке, 
>> >> Рассказать про SMC своим друзьям и детям. 
>> >> 
>> >> Luckily, if you understand these points, you also may be able to help 
>> >> achieve them.  (Modulo William or someone else working on 
>> >> https://github.com/sagemath/cloud/issues/180, for the first point.) 
>> > 
>> > 
>> > For the record this "someone" is Andrei Shirshov who has been around 
>> here 
>> > for a while, and he posted appropriate answers to comments to the 
>> article. 
>> > Most "negativity" I would say comes from questioning usefulness of Sage 
>> for 
>> > numeric computations, where other (perhaps smaller/simpler) packages 
>> can 
>> > provide required functionality. 
>>
>> And a big plus about Andrei Shirshov is that he does engineering and 
>> applied mathematics (not pure mathematics like many of us), so he is 
>> well equipped to answer such questions. 
>>
>> William 
>>
>> > 
>> > Andrey 
>> > 
>> > -- 
>> > You received this message because you are subscribed to the Google 
>> Groups 
>> > "sage-devel" group. 
>> > To unsubscribe from this group and stop receiving emails from it, send 
>> an 
>> > email to sage-devel+...@googlegroups.com. 
>> > To post to this group, send email to sage-...@googlegroups.com. 
>> > Visit this group at http://groups.google.com/group/sage-devel. 
>> > For more options, visit https://groups.google.com/d/optout. 
>>
>>
>>
>> -- 
>> William Stein 
>> Professor of Mathematics 
>> University of Washington 
>> http://wstein.org 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: Rings for free modules

2015-01-08 Thread Jeroen Demeyer

On 2015-01-08 01:07, Volker Braun wrote:

I don't like element_ring() as name, the elements of course don't form a
ring.

How about coordinate_ring? After all this is the ring in which the
coordinates live.

Fine for me...

--
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: trac messages classified as spam

2015-01-08 Thread Volker Braun
AHBL has closed recently. In order to get people to fix their mail server 
configuration they are returning positive for all requests now. Somebody 
needs to fix the email server that did the spam filtering, and it is 
urgent. See also http://ahbl.org/node


On Thursday, January 8, 2015 9:20:30 AM UTC+1, Frédéric Chapoton wrote:
>
> I will investigate what happens locally. For information, here is the 
> report
>
> X-Spam-Report: =?ISO-8859-1?Q?
>   *  2.7 DNS_FROM_AHBL_RHSBL RBL: Envelope sender listed in dnsbl.ahbl.org
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: trac messages classified as spam

2015-01-08 Thread Frédéric Chapoton
Thanks Travis,

I will investigate what happens locally. For information, here is the report

X-Spam-Report: =?ISO-8859-1?Q?
*  2.7 DNS_FROM_AHBL_RHSBL RBL: Envelope sender listed in dnsbl.ahbl.org
* -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, 
no
*  trust
*  [128.208.178.249 listed in list.dnswl.org]
*  1.0 MISSING_HEADERS Le message ne comporte pas l'en-t=eate To:
*  1.6 BAYES_50 BODY: L'algorithme Bay=e9sien a =e9valu=e9 la 
probabilit=e9 de spam
*   entre 40 et 60%
*  [score: 0.4917]
* -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from 
author's
*   domain
*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
*  valid
* -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
*  1.6 REPLYTO_WITHOUT_TO_CC REPLYTO_WITHOUT_TO_CC?=



Le mercredi 7 janvier 2015 19:19:19 UTC+1, Frédéric Chapoton a écrit :
>
> Since yesterday, the trac messages are classified as spam by my mail 
> server. Maybe there is something that has gone wrong ?
>
> Does anybody else see the same thing ?
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.