Help compiling sagecell

14 views
Skip to first unread message

Dennis Jarecke

unread,
May 21, 2020, 10:28:20 AM5/21/20
to sage-cell
I'm trying to compile Sagecell from source and I've followed the instructions at https://github.com/sagemath/sagecell/blob/master/README.md.  There seems to be two problems. 

First, it says "Start the server via ../sage/sage web_server.py [-p <PORT_NUMBER>]"  I get "/home/dennis/sage/sage/local/bin/python3: can't open file 'web_server.py': [Errno 2] No such file or directory"  There is no web_server.py in sage, but there is one in sagecell.

Second, if I go into sagecell and run web_server.py, then I get the following:
Traceback (most recent call last):
  File "./web_server.py", line 11, in <module>
    import tornado.ioloop
ImportError: No module named tornado.ioloop

I'm sure both of these are related.  Any clue on what I'm doing wrong? 

Thanks!

Dennis Jarecke

unread,
May 21, 2020, 12:39:39 PM5/21/20
to sage-cell
So the above was done in OpenSUSE 15.1.  Went to CentOS 8 and ran the same thing.  Still no web_server.py in sage, but now it doesn't complain about tornado.  I now get the following:
./web_server.py
Traceback (most recent call last):
  File "./web_server.py", line 9, in <module>
    import paramiko
ImportError: No module named paramiko
[sagecell]$ sage/sage -pip install paramiko
-bash: sage/sage: No such file or directory

But paramiko is installed.  From sage/sage -pip install paramiko I get:
Requirement already satisfied: paramiko in ./sage/local/lib/python3.7/site-packages (2.7.1)
Requirement already satisfied: bcrypt>=3.1.3 in ./sage/local/lib/python3.7/site-packages (from paramiko) (3.1.7)
Requirement already satisfied: pynacl>=1.0.1 in ./sage/local/lib/python3.7/site-packages (from paramiko) (1.3.0)
Requirement already satisfied: cryptography>=2.5 in ./sage/local/lib/python3.7/site-packages (from paramiko) (2.9.2)
Requirement already satisfied: cffi>=1.1 in ./sage/local/lib/python3.7/site-packages (from bcrypt>=3.1.3->paramiko) (1.14.0)
Requirement already satisfied: six>=1.4.1 in ./sage/local/lib/python3.7/site-packages (from bcrypt>=3.1.3->paramiko) (1.12.0)
Requirement already satisfied: pycparser in ./sage/local/lib/python3.7/site-packages (from cffi>=1.1->bcrypt>=3.1.3->paramiko) (2.20)

Seems like this is some sort of Python issue.

Andrey Novoseltsev

unread,
May 21, 2020, 1:09:09 PM5/21/20
to sage-cell
Sounds like you are not following instructions: they show how to install SageMath in sage and SageMathCell in sagecell side-by-side, then you have to run web_server.py from sagecell via sage. If you have a different directory structure or cwd, you have to adjust the command accordingly. If you try to run web_server.py using system Python, it is not going to work.

Dennis Jarecke

unread,
May 21, 2020, 1:43:00 PM5/21/20
to sage-cell
Yeah, figured it out.  Was being a bonehead on running the command.  You'd think after running Linux for 20+ years I'd get it right . . .

Thank you for the quick response!
Reply all
Reply to author
Forward
0 new messages