Hi

On 29 September 2015 at 12:21, Jan Groenewald <j...@aims.ac.za> wrote:

> Hi
>
> On 23 September 2015 at 19:20, Thierry <sage-googlesu...@lma.metelu.net>
> wrote:
>
>> Hi,
>>
>>
>> On Wed, Sep 23, 2015 at 06:56:41PM +0200, Jan Groenewald wrote:
>> [...]
>> > Basic question: What does it take to enable SSL? Do those commands work
>> on
>> > 1) source build
>>
>> On Debian/Ubuntu just install 'libssl-dev' before building, and 'openssl'
>> before running.
>>
>
> Building from source now to test this later.
>


From-Source is worst, same as the binaries: needs sage -pip install
pyopenssl, but even that look ssuccessful and then the notebook still does
not see it!



0 jan@muizenberg:/srv/sysadm/t/sage-6.8$./sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath Version 6.8, Release Date: 2015-07-26                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘
sage: notebook(secure=True)
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-1-3d6cf59ae321> in <module>()
----> 1 notebook(secure=True)

/srv/sysadm/t/sage-6.8/src/sage/misc/lazy_import.pyx in
sage.misc.lazy_import.LazyImport.__call__
(/srv/sysadm/t/sage-6.8/src/build/cythonized/sage/misc/lazy_import.c:3457)()
    381             True
    382         """
--> 383         return self._get_object()(*args, **kwds)
    384
    385     def __repr__(self):

/srv/sysadm/t/sage-6.8/local/lib/python2.7/site-packages/sagenb-0.11.4-py2.7.egg/sagenb/notebook/notebook_object.py
in __call__(self, *args, **kwds)
    237     """
    238     def __call__(self, *args, **kwds):
--> 239         return self.notebook(*args, **kwds)
    240
    241     notebook = run_notebook.notebook_run

/srv/sysadm/t/sage-6.8/local/lib/python2.7/site-packages/sagenb-0.11.4-py2.7.egg/sagenb/notebook/run_notebook.py
in notebook_run(self, directory, port, interface, port_tries, secure,
reset, accounts, openid, server_pool, ulimit, timeout, doc_timeout, upload,
automatic_login, start_path, fork, quiet, server, profile, subnets,
require_login, open_viewer, address)
    474             import OpenSSL
    475         except ImportError:
--> 476             raise RuntimeError("HTTPS cannot be used without
pyOpenSSL"
    477                     " installed. See the Sage README for more
information.")
    478

RuntimeError: HTTPS cannot be used without pyOpenSSL installed. See the
Sage README for more information.
sage:
Exiting Sage (CPU time 0m0.65s, Wall time 0m11.54s).
0 jan@muizenberg:/srv/sysadm/t/sage-6.8$./sage -pip install pyopenssl
You are using pip version 6.1.1, however version 7.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting pyopenssl
  Using cached pyOpenSSL-0.15.1-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): six>=1.5.2 in
./local/lib/python2.7/site-packages/six-1.9.0-py2.7.egg (from pyopenssl)
Collecting cryptography>=0.7 (from pyopenssl)
  Using cached cryptography-1.0.2.tar.gz
Collecting idna>=2.0 (from cryptography>=0.7->pyopenssl)
  Using cached idna-2.0-py2.py3-none-any.whl
Collecting pyasn1>=0.1.8 (from cryptography>=0.7->pyopenssl)
  Using cached pyasn1-0.1.9-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): setuptools in
./local/lib/python2.7/site-packages/setuptools-12.4-py2.7.egg (from
cryptography>=0.7->pyopenssl)
Collecting enum34 (from cryptography>=0.7->pyopenssl)
  Using cached enum34-1.0.4.tar.gz
Collecting ipaddress (from cryptography>=0.7->pyopenssl)
  Using cached ipaddress-1.0.14-py27-none-any.whl
Collecting cffi>=1.1.0 (from cryptography>=0.7->pyopenssl)
  Using cached cffi-1.2.1.tar.gz
Collecting pycparser (from cffi>=1.1.0->cryptography>=0.7->pyopenssl)
  Using cached pycparser-2.14.tar.gz
Installing collected packages: idna, pyasn1, enum34, ipaddress, pycparser,
cffi, cryptography, pyopenssl
  Running setup.py install for enum34
  Running setup.py install for pycparser
  Running setup.py install for cffi
  Running setup.py install for cryptography
Successfully installed cffi-1.2.1 cryptography-1.0.2 enum34-1.0.4 idna-2.0
ipaddress-1.0.14 pyasn1-0.1.9 pycparser-2.14 pyopenssl-0.15.1
0 jan@muizenberg:/srv/sysadm/t/sage-6.8$sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath Version 6.8, Release Date: 2015-07-26                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘
sage: notebook(secure=True)
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-1-3d6cf59ae321> in <module>()
----> 1 notebook(secure=True)

/usr/lib/sagemath/src/sage/misc/lazy_import.pyx in
sage.misc.lazy_import.LazyImport.__call__
(/mnt/highperf/buildbot/slave/sage_git/build/src/build/cythonized/sage/misc/lazy_import.c:3457)()
    381             True
    382         """
--> 383         return self._get_object()(*args, **kwds)
    384
    385     def __repr__(self):

/usr/lib/sagemath/local/lib/python2.7/site-packages/sagenb-0.11.4-py2.7.egg/sagenb/notebook/notebook_object.py
in __call__(self, *args, **kwds)
    237     """
    238     def __call__(self, *args, **kwds):
--> 239         return self.notebook(*args, **kwds)
    240
    241     notebook = run_notebook.notebook_run

/usr/lib/sagemath/local/lib/python2.7/site-packages/sagenb-0.11.4-py2.7.egg/sagenb/notebook/run_notebook.py
in notebook_run(self, directory, port, interface, port_tries, secure,
reset, accounts, openid, server_pool, ulimit, timeout, doc_timeout, upload,
automatic_login, start_path, fork, quiet, server, profile, subnets,
require_login, open_viewer, address)
    474             import OpenSSL
    475         except ImportError:
--> 476             raise RuntimeError("HTTPS cannot be used without
pyOpenSSL"
    477                     " installed. See the Sage README for more
information.")
    478

RuntimeError: HTTPS cannot be used without pyOpenSSL installed. See the
Sage README for more information.
sage:

Regards,
Jan

-- 
  .~.
  /V\     Jan Groenewald
 /( )\    www.aims.ac.za
 ^^-^^

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

Reply via email to