Ask Your Question
0

Can't get Sage to build: Clean install Ubuntu 12.04, iPython Error

asked 2012-08-18 08:41:45 -0500

Justin1 gravatar image

updated 2012-08-18 15:54:57 -0500

I'm trying to get Sage to work on a clean install of Ubuntu 12.04 Desktop running through Virtualbox on Windows 7.

What am I missing? What have I done wrong?

I've seen a number of problems with iPython - I know Sage can conflict with iPython but does it happen with the default settings for Ubuntu?

Previously I was using Fedora and didn't have a problem...

Here's everything I've done:

  • Clean install Ubuntu 12.04
  • Download source

Here's most of the commands from my .bash_history

Additional package installs

sudo apt-get install tk8.5-dev
sudo apt-get install xdvi (error?)
sudo apt-get install dvipng
sudo apt-get install build-essential
sudo apt-get install xpdf
sudo apt-get install evince
sudo apt-get install make
sudo apt-get install m4
sudo apt-get install libgfortran3
sudo apt-get install texlive
sudo apt-get install tcl-dev
sudo apt-get install tcl8.5-dev
sudo apt-get install tcl8.5

Build commands:

tar xvf sage-5.2.tar
SAGE_PARALLEL_SPKG_BUILD=YES
SAGE64=YES
SAGE_SPKG_INSTALL_DOCS=YES
SAGE_ATLAS_ARCH=Corei7,SSE3,SSE2,SSE1
make

Start

./sage

Output

ImportError                               Traceback (most recent call last)

/home/justin/Downloads/sage-5.2/local/bin/<string> in <module>()

/home/justin/Downloads/sage-5.2/local/lib/python2.7/site-packages/sage/misc/preparser_ipython.py in <module>()
      6 ###########################################################################
      7 
----> 8 import sage.misc.interpreter
      9 
     10 import preparser

/home/justin/Downloads/sage-5.2/local/lib/python2.7/site-packages/sage/misc/interpreter.py in <module>()
    103 
    104 import os
--> 105 import log
    106 import re
    107 

/home/justin/Downloads/sage-5.2/local/lib/python2.7/site-packages/sage/misc/log.py in <module>()
     63 
     64 import interpreter
---> 65 import latex
     66 import misc
     67 

/home/justin/Downloads/sage-5.2/local/lib/python2.7/site-packages/sage/misc/latex.py in <module>()
     55 import types
     56 
---> 57 from misc import tmp_dir, graphics_filename
     58 import sage_eval
     59 from sage.misc.sage_ostools import have_program

/home/justin/Downloads/sage-5.2/local/lib/python2.7/site-packages/sage/misc/misc.py in <module>()
   2162     return "0"*(size-len(str(s))) + str(s)
   2163 
-> 2164 import sage.server.support
   2165 
   2166 def embedded():

/home/justin/Downloads/sage-5.2/local/lib/python2.7/site-packages/sage/server/support.py in <module>()
     17 import sage.misc.pager
     18 
---> 19 import sage.misc.sagedoc as sagedoc
     20 import sage.misc.sageinspect as sageinspect
     21 

/home/justin/Downloads/sage-5.2/local/lib/python2.7/site-packages/sage/misc/sagedoc.py in <module>()
     38 from sage.misc.viewer import browser
     39 from sage.misc.misc import SAGE_DOC, tmp_dir
---> 40 from sagenb.misc.sphinxify import sphinxify
     41 import sage.version
     42 

ImportError: No module named sagenb.misc.sphinxify
WARNING: Failure executing code: 'import sage.misc.preparser_ipython;  sage.misc.preparser_ipython.magma_colon_equals=True'
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/home/justin/Downloads/sage-5.2/local/lib/python2.7/site-packages/IPython/ipmaker.pyc in force_import(modname, force_reload)
     61         reload(sys.modules[modname])
     62     else:
---> 63         __import__(modname)
     64         
     65 

/home/justin/Downloads/sage-5.2/local/bin/ipy_profile_sage.py in <module>()
      1 import os
      2 if 'SAGE_CLEAN' not in os.environ:
----> 3     import sage.misc.misc ...
(more)
edit retag flag offensive close merge delete

Comments

Have you tried moving `$HOME/.sage` and `$HOME/.ipython` out of the way and trying to run ./sage again?

benjaminfjones gravatar imagebenjaminfjones ( 2012-08-18 12:01:13 -0500 )edit

Not sure what you mean - I don't have a .ipython director that I see in my home directory.

Justin1 gravatar imageJustin1 ( 2012-08-18 13:39:02 -0500 )edit

When I do the the grep -li "^Error installing" thing on the logs the only package mentioned: sagenb-0.9.1.log.

Justin1 gravatar imageJustin1 ( 2012-08-18 13:39:52 -0500 )edit

Did `make` finish with no errors?

benjaminfjones gravatar imagebenjaminfjones ( 2012-08-18 13:43:27 -0500 )edit

This might be an openssl issue, try installing `openssl-devel` and re-run make.

benjaminfjones gravatar imagebenjaminfjones ( 2012-08-18 13:48:28 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-08-18 16:04:02 -0500

Justin1 gravatar image

benjaminfjones (44 mins ago) was right - OpenSSL was the problem - once OpenSSL was installed and I re-ran `make it worked. (sudo apt-get install libssl-dev).

For the benefit of anyone with this problem - the complete list of installed packages for my (apparently successful) build in Ubuntu 12.04 is as follows. Im sure these arent all necessary! (but this could be used in troubleshooting by generating a similar list with dpkg --get-selections and running the `diff command):

accountsservice install acl install acpi-support install acpid install activity-log-manager-common install activity-log-manager-control-center install adduser install adium-theme-ubuntu install aisleriot install alsa-base install alsa-utils install anacron install apg install app-install-data install app-install-data-partner install apparmor install appmenu-gtk install appmenu-gtk3 install appmenu-qt install apport install apport-gtk install apport-symptoms install apt install apt-transport-https install apt-utils install apt-xapian-index install aptdaemon install aptdaemon-data install apturl install apturl-common install aspell install aspell-en install at install at-spi2-core install avahi-autoipd install avahi-daemon install avahi-utils install bamfdaemon install baobab install base-files install base-passwd install bash install bash-completion install bc install bind9-host install binutils install bluez install bluez-alsa install bluez-cups install bluez-gstreamer install branding-ubuntu install brasero install brasero-cdrkit install brasero-common install brltty install bsdmainutils install bsdutils install build-essential install busybox-initramfs install busybox-static install bzip2 install ca-certificates install checkbox install checkbox-qt install cmap-adobe-japan2 install colord install command-not-found install command-not-found-data install compiz install compiz-core install compiz-gnome install compiz-plugins-default install compiz-plugins-main-default install compizconfig-backend-gconf install console-setup install consolekit install coreutils install cpio install cpp install cpp-4.6 install crda install cron install cryptsetup-bin install cups install cups-bsd install cups-client install cups-common install cups-filters install cups-ppdc install dash install dbus install dbus-x11 install dc install dconf-gsettings-backend install dconf-service install debconf install debconf-i18n install debianutils install deja-dup install desktop-file-utils install dictionaries-common install diffutils install dkms install dmidecode install dmsetup install dmz-cursor-theme install dnsmasq-base install dnsutils install doc-base install dosfstools install dpkg install dpkg-dev install duplicity install dvd+rw-tools install dvipng install e2fslibs install e2fsprogs install ed install eject install elyxer install emacs install emacs23 install emacs23-bin-common install emacs23-common install emacsen-common install empathy install empathy-common install enchant install eog install espeak install espeak-data install evince install evince-common install evolution-data-server install evolution-data-server-common install example-content install fakeroot install file install file-roller install findutils install firefox install firefox-globalmenu install firefox-gnome-support install firefox-locale-en install flashplugin-installer install folks-common install fontconfig install fontconfig-config install fonts-kacst install fonts-kacst-one install fonts-khmeros-core install fonts-lao install fonts-liberation install fonts-nanum install fonts-opensymbol install fonts-takao-pgothic install fonts-thai-tlwg install fonts-tlwg-garuda install fonts-tlwg-kinnari install fonts-tlwg-loma install fonts-tlwg-mono install fonts-tlwg-norasi install fonts-tlwg-purisa install fonts-tlwg-sawasdee install fonts-tlwg-typewriter install fonts-tlwg-typist install fonts-tlwg-typo install fonts-tlwg-umpush install fonts-tlwg-waree install foomatic-db-compressed-ppds install foomatic-db-engine install foomatic-filters install freepats install friendly-recovery install ftp install fuse install g++ install g++-4.6 install gcalctool install gcc install gcc-4.6 install gcc-4.6-base install gconf-service install gconf-service-backend install gconf2 install gconf2-common install gdb install gedit install gedit-common install genisoimage install geoclue install geoclue-ubuntu-geoip install geoip-database install gettext install gettext-base install gfortran install gfortran-4.6 install ghostscript install ghostscript-cups install ghostscript-x install ginn install gir1.2-appindicator3-0.1 install gir1.2-atk-1.0 install gir1.2-atspi-2.0 install gir1 ... (more)

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

Stats

Asked: 2012-08-18 08:41:45 -0500

Seen: 1,247 times

Last updated: Aug 18 '12