Re: [sage-devel] Re: internet tests failing

2019-03-19 Thread Dima Pasechnik
On Tue, Mar 19, 2019 at 3:50 PM kcrisman  wrote:
>
>
>> >
>> > sage: w = oeis(7540) ; w
>> >
>> > A007540: Wilson primes: primes p such that (p-1)! == -1 (mod p^2).
>>
>> Thanks, so this works, right? I've opened
>
>
> Correct!   I can't speak for the two other slightly different errors - you 
> may want to reply to Justin Walker's report on sage-release, for instance, to 
> see if that helps him too.

The other error comes from Python module ssl not available (come from
openssl not installed neither on the system nor as an optional spkg, I
think)




>
> --
> 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 https://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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: internet tests failing

2019-03-19 Thread kcrisman


> > 
> > sage: w = oeis(7540) ; w 
> > 
> > A007540: Wilson primes: primes p such that (p-1)! == -1 (mod p^2). 
>
> Thanks, so this works, right? I've opened 
>

Correct!   I can't speak for the two other slightly different errors - you 
may want to reply to Justin Walker's report on sage-release, for instance, 
to see if that helps him too.

-- 
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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: internet tests failing

2019-03-18 Thread Dima Pasechnik
On Mon, Mar 18, 2019 at 11:56 AM kcrisman  wrote:
>
>
>> Can someone (Karl?) with this issue (broken access to oeis()) try
>>
>> mkdir local/openssl
>> cd local/openssl
>> ln -s ../lib/python2.7/site-packages/pip/_vendor/certifi/cacert.pem cert.pem
>>
>> to see if this is a simpler fix?
>>
>
> sage: w = oeis(7540) ; w
>
> A007540: Wilson primes: primes p such that (p-1)! == -1 (mod p^2).

Thanks, so this works, right? I've opened
https://bugs.python.org/issue36344
to ask upstream why they do what they do...
>
> --
> 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 https://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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: internet tests failing

2019-03-18 Thread kcrisman


> Can someone (Karl?) with this issue (broken access to oeis()) try 
>
> mkdir local/openssl 
> cd local/openssl 
> ln -s ../lib/python2.7/site-packages/pip/_vendor/certifi/cacert.pem 
> cert.pem 
>
> to see if this is a simpler fix? 
>
>
sage: w = oeis(*7540*) ; w
A007540: Wilson primes: primes p such that (p-1)! == -1 (mod p^2). 

-- 
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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: internet tests failing

2019-03-16 Thread Dima Pasechnik
On Sat, Mar 16, 2019 at 12:26 AM Dima Pasechnik  wrote:
>
> On Fri, Mar 15, 2019 at 10:17 PM Dima Pasechnik  wrote:
> >
> >
> >
> > On Friday, March 15, 2019 at 5:58:15 PM UTC, John H Palmieri wrote:
> >>
> >>
> >>
> >> On Friday, March 15, 2019 at 3:31:33 AM UTC-7, Dima Pasechnik wrote:
> >>>
> >>> On Thu, Mar 14, 2019 at 7:51 PM John H Palmieri  
> >>> wrote:
> >>> >
> >>> > I'm seeing the same failure on a Mac running the most recent OS X. I 
> >>> > have openssl 1.1.1a installed on this machine, and I see the error in 
> >>> > Sage. Then I did './sage -i openssl' and './sage -f python2', and I 
> >>> > still see the error. The Python 2 log file does not list ssl among the 
> >>> > modules which were not built, so it looks like it was built with ssl 
> >>> > support.
> >>>
> >>> Can you use Sage's pip on packages from external repos, or is this also
> >>> broken?
> >>
> >>
> >> $ ./sage --pip install pylatex
> >>
> >> works just fine: finds the file, downloads it using https, etc. Is that 
> >> the sort of thing you mean?
> >
> >
> > OK, so apparently pip is less picky here. Unrolling this thing about oeis() 
> > function, it boils down to
> > Python's
> >
> > >>> from urllib import urlopen
> > >>> f=urlopen("https://oeis.org/;)
> >
> > that fails with   CERTIFICATE_VERIFY_FAILED
>
> I can reproduce this on Sage 8.6 with included openssl installed.
>
> This is how to fix it, assuming you install your openssl from Sage
> spkg, basically using a slightly adjusted script from Python.org
> python 2.7.16 installer.
>
> Change to your SAGE_ROOT
> start ./sage -sh
>
> mkdir local/openssl
>
> run the attached Python script (which will install certificates module
> via pip and pull the needed certs for the local openssl)
>
> We perhaps should add this to pyopenssl Sage spkg.

As a matter of fact, cacert.pm file from
local/lib/python2.7/site-packages/pip/_vendor/certifi/cacert.pem
appears to work just as well (the path seem to tell us that pip
vendors that certifi module)

Can someone (Karl?) with this issue (broken access to oeis()) try

mkdir local/openssl
cd local/openssl
ln -s ../lib/python2.7/site-packages/pip/_vendor/certifi/cacert.pem cert.pem

to see if this is a simpler fix?

At least this works for me.
I don't understand why Python.org installer comes with such a
complicated solution then. Indeed,

$ find /Library/Frameworks/Python.framework/Versions/2.7 -name cacert.pem

/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/_vendor/certifi/cacert.pem
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/certifi/cacert.pem

shows that cacert.pem installed by the script (the 2nd entry in this
list) and cacert.pem from a vendored by pip copy of certifi module.
I did "openssl x509 -in  -text" on both of them, and found them
containing the same certificate,
although the files have unequal size, so there is some extra stuff
they differ in.




Dima







>
> Dima
> >
> > See more on this in the sub-thread here:
> > https://groups.google.com/d/msg/sage-devel/f443LhVnyKc/JLLZrQOWBgAJ
> >
> >
> >>
> >>
> >>
> >>>
> >>>
> >>> Looking at how Homebrew installs openssl 1.1.1b, one sees that it does
> >>> some post_install involving system's keychains and certs:
> >>> https://github.com/Homebrew/homebrew-core/blob/master/Formula/open...@1.1.rb
> >>>
> >>> So it could be that Sage's openssl spkg must dance this dance too.
> >>>
> >>> It looks like a need for a blocker trac ticket on this, then...
> >>>
> >>>
> >>>
> >>>
> >>> >
> >>> >
> >>> >
> >>> > On Thursday, March 14, 2019 at 11:19:37 AM UTC-7, Volker Braun wrote:
> >>> >>
> >>> >> I'm guessing you run this on an oldish mac, those have an outdated 
> >>> >> openssl that doesn't support TLS12. More and more sites are switching 
> >>> >> that on. Building Sage's openssl should fix that.
> >>> >>
> >>> >>
> >>> >>
> >>> >> On Thursday, March 14, 2019 at 7:09:50 PM UTC+1, kcrisman wrote:
> >>> >>>
> >>> >>> This could be just me.  But I am getting a lot of this when I try 
> >>> >>> running optional internet tests for e.g. src/sage/databases/oeis.py 
> >>> >>> or src/sage/symbolic/integration/external.py  Internet clearly works 
> >>> >>> if you can read this message, but apparently it doesn't work from 
> >>> >>> within Sage, because I get this message when I try it in the Sage 
> >>> >>> command line as well with e.g. this command.  Any ideas - do I need 
> >>> >>> to rebuild Sage with additional SSL support or something?  That 
> >>> >>> should be mentioned somewhere.  Thanks!
> >>> >>>
> >>> >>> - kcrisman
> >>> >>>
> >>> >>> w = oeis(7540) ; w
> >>> >>>
> >>> >>>
> >>> >>> URLError:  >>> >>> certificate verify failed (_ssl.c:726)>
> >>> >
> >>> > --
> >>> > 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 

Re: [sage-devel] Re: internet tests failing

2019-03-16 Thread dimpase
On Sat, Mar 16, 2019 at 06:05:35AM -0700, kcrisman wrote:
> This is all very helpful.  Hopefully I'll not miss if there is a beta or rc 
> version of Sage implementing this - if I fix this with the script now, I 
> won't be able to test "vanilla"-ish Sage.

well, to break it back it suffices to remove local/openssl/ and its
contents :-)

-- 
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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: internet tests failing

2019-03-16 Thread kcrisman
This is all very helpful.  Hopefully I'll not miss if there is a beta or rc 
version of Sage implementing this - if I fix this with the script now, I 
won't be able to test "vanilla"-ish Sage.

-- 
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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: internet tests failing

2019-03-15 Thread Dima Pasechnik
On Fri, Mar 15, 2019 at 10:17 PM Dima Pasechnik  wrote:
>
>
>
> On Friday, March 15, 2019 at 5:58:15 PM UTC, John H Palmieri wrote:
>>
>>
>>
>> On Friday, March 15, 2019 at 3:31:33 AM UTC-7, Dima Pasechnik wrote:
>>>
>>> On Thu, Mar 14, 2019 at 7:51 PM John H Palmieri  wrote:
>>> >
>>> > I'm seeing the same failure on a Mac running the most recent OS X. I have 
>>> > openssl 1.1.1a installed on this machine, and I see the error in Sage. 
>>> > Then I did './sage -i openssl' and './sage -f python2', and I still see 
>>> > the error. The Python 2 log file does not list ssl among the modules 
>>> > which were not built, so it looks like it was built with ssl support.
>>>
>>> Can you use Sage's pip on packages from external repos, or is this also
>>> broken?
>>
>>
>> $ ./sage --pip install pylatex
>>
>> works just fine: finds the file, downloads it using https, etc. Is that the 
>> sort of thing you mean?
>
>
> OK, so apparently pip is less picky here. Unrolling this thing about oeis() 
> function, it boils down to
> Python's
>
> >>> from urllib import urlopen
> >>> f=urlopen("https://oeis.org/;)
>
> that fails with   CERTIFICATE_VERIFY_FAILED

I can reproduce this on Sage 8.6 with included openssl installed.

This is how to fix it, assuming you install your openssl from Sage
spkg, basically using a slightly adjusted script from Python.org
python 2.7.16 installer.

Change to your SAGE_ROOT
start ./sage -sh

mkdir local/openssl

run the attached Python script (which will install certificates module
via pip and pull the needed certs for the local openssl)

We perhaps should add this to pyopenssl Sage spkg.

Dima
>
> See more on this in the sub-thread here:
> https://groups.google.com/d/msg/sage-devel/f443LhVnyKc/JLLZrQOWBgAJ
>
>
>>
>>
>>
>>>
>>>
>>> Looking at how Homebrew installs openssl 1.1.1b, one sees that it does
>>> some post_install involving system's keychains and certs:
>>> https://github.com/Homebrew/homebrew-core/blob/master/Formula/open...@1.1.rb
>>>
>>> So it could be that Sage's openssl spkg must dance this dance too.
>>>
>>> It looks like a need for a blocker trac ticket on this, then...
>>>
>>>
>>>
>>>
>>> >
>>> >
>>> >
>>> > On Thursday, March 14, 2019 at 11:19:37 AM UTC-7, Volker Braun wrote:
>>> >>
>>> >> I'm guessing you run this on an oldish mac, those have an outdated 
>>> >> openssl that doesn't support TLS12. More and more sites are switching 
>>> >> that on. Building Sage's openssl should fix that.
>>> >>
>>> >>
>>> >>
>>> >> On Thursday, March 14, 2019 at 7:09:50 PM UTC+1, kcrisman wrote:
>>> >>>
>>> >>> This could be just me.  But I am getting a lot of this when I try 
>>> >>> running optional internet tests for e.g. src/sage/databases/oeis.py or 
>>> >>> src/sage/symbolic/integration/external.py  Internet clearly works if 
>>> >>> you can read this message, but apparently it doesn't work from within 
>>> >>> Sage, because I get this message when I try it in the Sage command line 
>>> >>> as well with e.g. this command.  Any ideas - do I need to rebuild Sage 
>>> >>> with additional SSL support or something?  That should be mentioned 
>>> >>> somewhere.  Thanks!
>>> >>>
>>> >>> - kcrisman
>>> >>>
>>> >>> w = oeis(7540) ; w
>>> >>>
>>> >>>
>>> >>> URLError: >> >>> certificate verify failed (_ssl.c:726)>
>>> >
>>> > --
>>> > 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 https://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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.
#!/usr/bin/env python
# install_certifi.py
#
# sample script to install or update a set of default Root Certificates
# for the ssl module.  Uses the certificates provided by the certifi package:
#   https://pypi.python.org/pypi/certifi

import os
import os.path
import ssl
import stat
import subprocess
import sys

STAT_0o775 = ( stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR
 | stat.S_IRGRP | stat.S_IWGRP | stat.S_IXGRP
 | stat.S_IROTH |stat.S_IXOTH )

def main():
openssl_dir, openssl_cafile = os.path.split(
ssl.get_default_verify_paths().openssl_cafile)

print(" -- pip install --upgrade certifi")
subprocess.check_call([sys.executable,
"-E", "-s", "-m", "pip", "install", "--upgrade", "certifi"])

import certifi

# change working directory to the default 

Re: [sage-devel] Re: internet tests failing

2019-03-15 Thread Dima Pasechnik


On Friday, March 15, 2019 at 5:58:15 PM UTC, John H Palmieri wrote:
>
>
>
> On Friday, March 15, 2019 at 3:31:33 AM UTC-7, Dima Pasechnik wrote:
>>
>> On Thu, Mar 14, 2019 at 7:51 PM John H Palmieri  
>> wrote: 
>> > 
>> > I'm seeing the same failure on a Mac running the most recent OS X. I 
>> have openssl 1.1.1a installed on this machine, and I see the error in Sage. 
>> Then I did './sage -i openssl' and './sage -f python2', and I still see the 
>> error. The Python 2 log file does not list ssl among the modules which were 
>> not built, so it looks like it was built with ssl support. 
>>
>> Can you use Sage's pip on packages from external repos, or is this also 
>> broken? 
>>
>
> $ ./sage --pip install pylatex
>
> works just fine: finds the file, downloads it using https, etc. Is that 
> the sort of thing you mean?
>

OK, so apparently pip is less picky here. Unrolling this thing about oeis() 
function, it boils down to
Python's

>>> from urllib import urlopen 
>>> f=urlopen("https://oeis.org/;) 

that fails with   CERTIFICATE_VERIFY_FAILED

See more on this in the sub-thread here:
https://groups.google.com/d/msg/sage-devel/f443LhVnyKc/JLLZrQOWBgAJ



>
>  
>
>>
>> Looking at how Homebrew installs openssl 1.1.1b, one sees that it does 
>> some post_install involving system's keychains and certs: 
>>
>> https://github.com/Homebrew/homebrew-core/blob/master/Formula/open...@1.1.rb 
>>
>> So it could be that Sage's openssl spkg must dance this dance too. 
>>
>> It looks like a need for a blocker trac ticket on this, then... 
>>
>>
>>
>>
>> > 
>> > 
>> > 
>> > On Thursday, March 14, 2019 at 11:19:37 AM UTC-7, Volker Braun wrote: 
>> >> 
>> >> I'm guessing you run this on an oldish mac, those have an outdated 
>> openssl that doesn't support TLS12. More and more sites are switching that 
>> on. Building Sage's openssl should fix that. 
>> >> 
>> >> 
>> >> 
>> >> On Thursday, March 14, 2019 at 7:09:50 PM UTC+1, kcrisman wrote: 
>> >>> 
>> >>> This could be just me.  But I am getting a lot of this when I try 
>> running optional internet tests for e.g. src/sage/databases/oeis.py or 
>> src/sage/symbolic/integration/external.py  Internet clearly works if you 
>> can read this message, but apparently it doesn't work from within Sage, 
>> because I get this message when I try it in the Sage command line as well 
>> with e.g. this command.  Any ideas - do I need to rebuild Sage with 
>> additional SSL support or something?  That should be mentioned somewhere. 
>>  Thanks! 
>> >>> 
>> >>> - kcrisman 
>> >>> 
>> >>> w = oeis(7540) ; w 
>> >>> 
>> >>> 
>> >>> URLError: > certificate verify failed (_ssl.c:726)> 
>> > 
>> > -- 
>> > 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 https://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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: internet tests failing

2019-03-15 Thread John H Palmieri


On Friday, March 15, 2019 at 3:31:33 AM UTC-7, Dima Pasechnik wrote:
>
> On Thu, Mar 14, 2019 at 7:51 PM John H Palmieri  > wrote: 
> > 
> > I'm seeing the same failure on a Mac running the most recent OS X. I 
> have openssl 1.1.1a installed on this machine, and I see the error in Sage. 
> Then I did './sage -i openssl' and './sage -f python2', and I still see the 
> error. The Python 2 log file does not list ssl among the modules which were 
> not built, so it looks like it was built with ssl support. 
>
> Can you use Sage's pip on packages from external repos, or is this also 
> broken? 
>

$ ./sage --pip install pylatex

works just fine: finds the file, downloads it using https, etc. Is that the 
sort of thing you mean?


 

>
> Looking at how Homebrew installs openssl 1.1.1b, one sees that it does 
> some post_install involving system's keychains and certs: 
>
> https://github.com/Homebrew/homebrew-core/blob/master/Formula/open...@1.1.rb 
>
> So it could be that Sage's openssl spkg must dance this dance too. 
>
> It looks like a need for a blocker trac ticket on this, then... 
>
>
>
>
> > 
> > 
> > 
> > On Thursday, March 14, 2019 at 11:19:37 AM UTC-7, Volker Braun wrote: 
> >> 
> >> I'm guessing you run this on an oldish mac, those have an outdated 
> openssl that doesn't support TLS12. More and more sites are switching that 
> on. Building Sage's openssl should fix that. 
> >> 
> >> 
> >> 
> >> On Thursday, March 14, 2019 at 7:09:50 PM UTC+1, kcrisman wrote: 
> >>> 
> >>> This could be just me.  But I am getting a lot of this when I try 
> running optional internet tests for e.g. src/sage/databases/oeis.py or 
> src/sage/symbolic/integration/external.py  Internet clearly works if you 
> can read this message, but apparently it doesn't work from within Sage, 
> because I get this message when I try it in the Sage command line as well 
> with e.g. this command.  Any ideas - do I need to rebuild Sage with 
> additional SSL support or something?  That should be mentioned somewhere. 
>  Thanks! 
> >>> 
> >>> - kcrisman 
> >>> 
> >>> w = oeis(7540) ; w 
> >>> 
> >>> 
> >>> URLError:  certificate verify failed (_ssl.c:726)> 
> > 
> > -- 
> > 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 https://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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: internet tests failing

2019-03-15 Thread kcrisman
As another data point from Mac, with a DIFFERENT set of errors, 
see https://groups.google.com/d/msg/sage-release/KYiD_QSJjBs/ApfxGOXjBwAJ 
and the there-attached failures which look like this:

  File 
"/Users/Sage/sage-8.7.beta7/local/lib/python2.7/site-packages/sage/databases/oeis.py",
 line 196, in _fetch
raise IOError("%s\nError fetching %s." % (msg, url))
IOError: 
Error fetching 
https://oeis.org/search?q=3%2C+7%2C+15%2C+1=0=text=4.

-- 
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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: internet tests failing

2019-03-15 Thread Dima Pasechnik
On Thu, Mar 14, 2019 at 7:51 PM John H Palmieri  wrote:
>
> I'm seeing the same failure on a Mac running the most recent OS X. I have 
> openssl 1.1.1a installed on this machine, and I see the error in Sage. Then I 
> did './sage -i openssl' and './sage -f python2', and I still see the error. 
> The Python 2 log file does not list ssl among the modules which were not 
> built, so it looks like it was built with ssl support.

Can you use Sage's pip on packages from external repos, or is this also
broken?

Looking at how Homebrew installs openssl 1.1.1b, one sees that it does
some post_install involving system's keychains and certs:
https://github.com/Homebrew/homebrew-core/blob/master/Formula/open...@1.1.rb

So it could be that Sage's openssl spkg must dance this dance too.

It looks like a need for a blocker trac ticket on this, then...




>
>
>
> On Thursday, March 14, 2019 at 11:19:37 AM UTC-7, Volker Braun wrote:
>>
>> I'm guessing you run this on an oldish mac, those have an outdated openssl 
>> that doesn't support TLS12. More and more sites are switching that on. 
>> Building Sage's openssl should fix that.
>>
>>
>>
>> On Thursday, March 14, 2019 at 7:09:50 PM UTC+1, kcrisman wrote:
>>>
>>> This could be just me.  But I am getting a lot of this when I try running 
>>> optional internet tests for e.g. src/sage/databases/oeis.py or 
>>> src/sage/symbolic/integration/external.py  Internet clearly works if you 
>>> can read this message, but apparently it doesn't work from within Sage, 
>>> because I get this message when I try it in the Sage command line as well 
>>> with e.g. this command.  Any ideas - do I need to rebuild Sage with 
>>> additional SSL support or something?  That should be mentioned somewhere.  
>>> Thanks!
>>>
>>> - kcrisman
>>>
>>> w = oeis(7540) ; w
>>>
>>>
>>> URLError: >> verify failed (_ssl.c:726)>
>
> --
> 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 https://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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: internet tests failing

2019-03-14 Thread Dima Pasechnik
On Thu, Mar 14, 2019 at 7:51 PM John H Palmieri  wrote:
>
> I'm seeing the same failure on a Mac running the most recent OS X. I have 
> openssl 1.1.1a installed on this machine, and I see the error in Sage. Then I 
> did './sage -i openssl' and './sage -f python2', and I still see the error. 
> The Python 2 log file does not list ssl among the modules which were not 
> built, so it looks like it was built with ssl support.
>
>
>
> On Thursday, March 14, 2019 at 11:19:37 AM UTC-7, Volker Braun wrote:
>>
>> I'm guessing you run this on an oldish mac, those have an outdated openssl 
>> that doesn't support TLS12. More and more sites are switching that on. 
>> Building Sage's openssl should fix that.
>>
>>
>>
>> On Thursday, March 14, 2019 at 7:09:50 PM UTC+1, kcrisman wrote:
>>>
>>> This could be just me.  But I am getting a lot of this when I try running 
>>> optional internet tests for e.g. src/sage/databases/oeis.py or 
>>> src/sage/symbolic/integration/external.py  Internet clearly works if you 
>>> can read this message, but apparently it doesn't work from within Sage, 
>>> because I get this message when I try it in the Sage command line as well 
>>> with e.g. this command.  Any ideas - do I need to rebuild Sage with 
>>> additional SSL support or something?  That should be mentioned somewhere.  
>>> Thanks!
>>>
>>> - kcrisman
>>>
>>> w = oeis(7540) ; w
>>>
>>>
>>> URLError: >> verify failed (_ssl.c:726)>
>
> --
> 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 https://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.

on a Mac is much older than yours (8 years old :-)), running OSX 10.13,
I don't see this error with Sage 8.7.beta5 built under Homebrew (and
so it uses Homebrew's stable openssl, 1.0.2q).
(Rebuilding the latest beta now, but I don't expect a regression here).

Dima

-- 
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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: internet tests failing

2019-03-14 Thread kcrisman



Perhaps it's some sort of certificate issue.
> If an up to date openssl has its certs improperly set up, it won't work, 
> IMHO.
>
>>
>>
Give the error message, this seems plausible.   Any ideas on where to go 
from here?  Is it user error for me to try to use the OEIS through Sage? 
 Volker is of course right that my Mac is nearly 4 years old.

-- 
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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: internet tests failing

2019-03-14 Thread Dima Pasechnik
Perhaps it's some sort of certificate issue.
If an up to date openssl has its certs improperly set up, it won't work,
IMHO.

On Thu, 14 Mar 2019 19:51 John H Palmieri,  wrote:

> I'm seeing the same failure on a Mac running the most recent OS X. I have
> openssl 1.1.1a installed on this machine, and I see the error in Sage. Then
> I did './sage -i openssl' and './sage -f python2', and I still see the
> error. The Python 2 log file does not list ssl among the modules which were
> not built, so it looks like it was built with ssl support.
>
>
>
> On Thursday, March 14, 2019 at 11:19:37 AM UTC-7, Volker Braun wrote:
>>
>> I'm guessing you run this on an oldish mac, those have an outdated
>> openssl that doesn't support TLS12. More and more sites are switching that
>> on. Building Sage's openssl should fix that.
>>
>>
>>
>> On Thursday, March 14, 2019 at 7:09:50 PM UTC+1, kcrisman wrote:
>>>
>>> This could be just me.  But I am getting a lot of this when I try
>>> running optional internet tests for e.g. src/sage/databases/oeis.py or
>>> src/sage/symbolic/integration/external.py  Internet clearly works if you
>>> can read this message, but apparently it doesn't work from within Sage,
>>> because I get this message when I try it in the Sage command line as well
>>> with e.g. this command.  Any ideas - do I need to rebuild Sage with
>>> additional SSL support or something?  That should be mentioned somewhere.
>>> Thanks!
>>>
>>> - kcrisman
>>>
>>> w = oeis(7540) ; w
>>>
>>> URLError: >> certificate verify failed (_ssl.c:726)>
>>>
>> --
> 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 https://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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: internet tests failing

2019-03-14 Thread John H Palmieri
I'm seeing the same failure on a Mac running the most recent OS X. I have 
openssl 1.1.1a installed on this machine, and I see the error in Sage. Then 
I did './sage -i openssl' and './sage -f python2', and I still see the 
error. The Python 2 log file does not list ssl among the modules which were 
not built, so it looks like it was built with ssl support. 



On Thursday, March 14, 2019 at 11:19:37 AM UTC-7, Volker Braun wrote:
>
> I'm guessing you run this on an oldish mac, those have an outdated openssl 
> that doesn't support TLS12. More and more sites are switching that on. 
> Building Sage's openssl should fix that.
>
>
>
> On Thursday, March 14, 2019 at 7:09:50 PM UTC+1, kcrisman wrote:
>>
>> This could be just me.  But I am getting a lot of this when I try running 
>> optional internet tests for e.g. src/sage/databases/oeis.py or 
>> src/sage/symbolic/integration/external.py  Internet clearly works if you 
>> can read this message, but apparently it doesn't work from within Sage, 
>> because I get this message when I try it in the Sage command line as well 
>> with e.g. this command.  Any ideas - do I need to rebuild Sage with 
>> additional SSL support or something?  That should be mentioned somewhere. 
>>  Thanks!
>>
>> - kcrisman
>>
>> w = oeis(7540) ; w 
>>
>> URLError: > verify failed (_ssl.c:726)>
>>
>

-- 
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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: internet tests failing

2019-03-14 Thread Volker Braun
I'm guessing you run this on an oldish mac, those have an outdated openssl 
that doesn't support TLS12. More and more sites are switching that on. 
Building Sage's openssl should fix that.



On Thursday, March 14, 2019 at 7:09:50 PM UTC+1, kcrisman wrote:
>
> This could be just me.  But I am getting a lot of this when I try running 
> optional internet tests for e.g. src/sage/databases/oeis.py or 
> src/sage/symbolic/integration/external.py  Internet clearly works if you 
> can read this message, but apparently it doesn't work from within Sage, 
> because I get this message when I try it in the Sage command line as well 
> with e.g. this command.  Any ideas - do I need to rebuild Sage with 
> additional SSL support or something?  That should be mentioned somewhere. 
>  Thanks!
>
> - kcrisman
>
> w = oeis(7540) ; w 
>
> URLError:  verify failed (_ssl.c:726)>
>

-- 
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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.