Ask Your Question
1

problems with sagecell

asked 2019-03-04 06:19:11 -0500

orenshani7 gravatar image

Hi All,

I installed sagemath on Ubuntu 18.04 and am now trying to install and configure sagecell

pip install sagecell seem to work ok, but when I try to run sagecell it says:

root@shilo-ubu4:/var/tmp# sagecell
Error: No module named 'fabric'. You can install it by typing:
    sudo pip install fabric
or
    su -c "pip install fabric"

And yet fabric is installed:

root@shilo-ubu4:/var/tmp# pip install fabric
Requirement already satisfied: fabric in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied: paramiko>=2.4 in /usr/local/lib/python2.7/dist-packages (from fabric)
Requirement already satisfied: invoke<2.0,>=1.1 in /usr/local/lib/python2.7/dist-packages (from fabric)
Requirement already satisfied: cryptography>=1.1 in /usr/lib/python2.7/dist-packages (from fabric)
Requirement already satisfied: pynacl>=1.0.1 in /usr/local/lib/python2.7/dist-packages (from paramiko>=2.4->fabric)
Requirement already satisfied: pyasn1>=0.1.7 in /usr/lib/python2.7/dist-packages (from paramiko>=2.4->fabric)
Requirement already satisfied: bcrypt>=3.1.3 in /usr/local/lib/python2.7/dist-packages (from paramiko>=2.4->fabric)
Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (from pynacl>=1.0.1->paramiko>=2.4->fabric)
Requirement already satisfied: cffi>=1.4.1 in /usr/local/lib/python2.7/dist-packages (from pynacl>=1.0.1->paramiko>=2.4->fabric)
Requirement already satisfied: pycparser in /usr/local/lib/python2.7/dist-packages (from cffi>=1.4.1->pynacl>=1.0.1->paramiko>=2.4->fabric)

So what am I missing here?

Thanks,

Oren

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2019-03-04 06:50:48 -0500

eric_g gravatar image

Maybe you can try

sage -pip install fabric

instead of pip install fabric

edit flag offensive delete link more

Comments

Eric,

I tried that but apparently, my sage installation does not support the -pip option. I don't see it in the docs either:

http://doc.sagemath.org/html/en/refer...

Do you have any idea why is this?

Thanks,

Oren

orenshani7 gravatar imageorenshani7 ( 2019-03-05 00:19:49 -0500 )edit

How did you install Sage?

vdelecroix gravatar imagevdelecroix ( 2019-03-05 04:05:20 -0500 )edit

The -pip option has been in Sage for a while (at least since Sage 6.5?). Are you using the Ubuntu package sagemath? If yes, it may be that -pipis not available through it. I would recommend then to uninstall this package and to install the binary for Ubuntu 18.04 available at http://www.sagemath.org/download-linu.... In addition, this will provide you with the latest stable release of Sage (version 8.6), while the Ubuntu package contains only Sage 8.1.

eric_g gravatar imageeric_g ( 2019-03-05 06:50:16 -0500 )edit

Please don't follow eric_g advice! Unless you need the very last features of SageMath, there is no reason to not use the Ubuntu package that is much better integrated into the distribution than the binary available on the sagemath website.

vdelecroix gravatar imagevdelecroix ( 2019-03-05 07:43:19 -0500 )edit
0

answered 2019-03-05 01:04:21 -0500

orenshani7 gravatar image

Okay I figured it out. An older version of fabric is needed apparently. See here:

https://unix.stackexchange.com/questi...

Oren

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-03-04 06:19:11 -0500

Seen: 57 times

Last updated: Mar 05