So I thought I had ssh installed but apparently not. The two commands leif
gave got rid of the ssl.py error but now I am getting a different one:
aaronej@ubuntu:~/sage/devel/sagecell$ ../../sage web_server.py
2013-05-29 16:12:32,114 sagecell:INFO starting tornado web server
Traceback (most recent call last):
File "web_server.py", line 81, in <module>
application = SageCellServer()
File "web_server.py", line 58, in __init__
kernel_timeout=kernel_timeout)
File "/home/aaronej/sage/devel/sagecell-main/trusted_kernel_manager.py",
line 43, in __init__
comp_id = self.add_computer(comp)
File "/home/aaronej/sage/devel/sagecell-main/trusted_kernel_manager.py",
line 129, in add_computer
client = self._setup_ssh_connection(cfg["host"], cfg["username"])
File "/home/aaronej/sage/devel/sagecell-main/trusted_kernel_manager.py",
line 87, in _setup_ssh_connection
ssh_client.connect(host, username=username)
File
"/home/aaronej/sage/local/lib/python2.7/site-packages/paramiko-1.10.1-py2.7.egg/paramiko/client.py",
line 300, in connect
retry_on_signal(lambda: sock.connect(addr))
File
"/home/aaronej/sage/local/lib/python2.7/site-packages/paramiko-1.10.1-py2.7.egg/paramiko/util.py",
line 278, in retry_on_signal
return function()
File
"/home/aaronej/sage/local/lib/python2.7/site-packages/paramiko-1.10.1-py2.7.egg/paramiko/client.py",
line 300, in <lambda>
retry_on_signal(lambda: sock.connect(addr))
File "/home/aaronej/sage/local/lib/python/socket.py", line 226, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 111] Connection refused
Can you tell me if this config will work (modified lines below)? I'm still
not sure if I have the correct values.
My thinking is that it has to do with what I'm putting for the username in
the config.py file. What should I put? I've tried "aaronej@localhost",
localhost and simply "" to no success. Leaving it as None does not work
either.
On Monday, May 27, 2013 11:33:08 PM UTC-4, leif wrote:
>
> Aaron E-J wrote:
> > Hmmm... I can't figure out how to set up the SSH settings.Sorry if this
> > sound na�ve, but what should I put for the host and username?This is
> the
> > stack trace when I try to run ../../sage web_server.py :
> >
> > Traceback (most recent call last):
> > File "web_server.py", line 29, in <module>
> > import handlers
> > File "/home/aaronej/sage/devel/sagecell-main/handlers.py", line 4, in
> > <module>
> > import tornado.websocket
> > File
> >
> "/home/aaronej/sage/local/lib/python2.7/site-packages/tornado-3.0.1-py2.7.egg/tornado/websocket.py",
>
>
> > line 39, in <module>
> > from tornado.netutil import Resolver
> > File
> >
> "/home/aaronej/sage/local/lib/python2.7/site-packages/tornado-3.0.1-py2.7.egg/tornado/netutil.py",
>
>
> > line 25, in <module>
> > import ssl
> > File "/home/aaronej/sage/local/lib/python/ssl.py", line 60, in
> <module>
> > import _ssl # if we can't import it, let the error
> > propagate
> > ImportError: No module named _ssl
>
> Install OpenSSL and rebuild Python. I.e., in the VM do:
>
> $ sudo apt-get install libssl-dev
>
> $ ./sage -f spkg/standard/python-*
>
>
> -leif
>
> --
> () The ASCII Ribbon Campaign
> /\ Help Cure HTML E-Mail
>
>
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.