Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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 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 4 from sage.misc.interpreter import preparser, _ip 5 preparser(True)

/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 Error importing ipy_profile_sage - perhaps you should run %upgrade? WARNING: Loading of ipy_profile_sage failed.

<error: name="" 'sage_prompt'="" is="" not="" defined="">

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

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: - done:

  • Clean install Ubuntu 12.04 - 12.04
  • Download source source

Here's most of the commands from my .bash_history .bash_history

Additional package installs 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

Build commands: 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 make

Start

./sage

Output

ImportError                               Traceback (most recent call last)

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

<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

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

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():

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

sagenb.misc.sphinxify WARNING: Failure executing code: 'import sage.misc.preparser_ipython; sage.misc.preparser_ipython.magma_colon_equals=True'

sage.misc.preparser_ipython.magma_colon_equals=True' --------------------------------------------------------------------------- ImportError Traceback (most recent call last)

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 4 from sage.misc.interpreter import preparser, _ip 5 preparser(True)

preparser(True) /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():

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 Error importing ipy_profile_sage - perhaps you should run %upgrade? WARNING: Loading of ipy_profile_sage failed.

<error: name="" 'sage_prompt'="" is="" not="" defined="">

failed. <ERROR: name 'sage_prompt' is not defined>

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

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
      4     from sage.misc.interpreter import preparser, _ip
      5     preparser(True)

/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
Error importing ipy_profile_sage - perhaps you should run %upgrade?
WARNING: Loading of ipy_profile_sage failed.

<ERROR: name 'sage_prompt' is not defined>