Ask Your Question
1

Problem running Sage 5.0 on fedora 16

asked 2012-05-17 08:04:08 -0600

yossarian gravatar image

updated 2015-01-13 13:48:48 -0600

FrédéricC gravatar image

Hello everybody,

(Sorry for the long code quoting.)

I'm trying to run Sage 5.0 (the binary version) on fedora 16. After launching Sage from terminal I get the following message:

==================================================================
----------------------------------------------------------------------
Sage Version 5.0, Release Date: 2012-05-14                         
Type notebook() for the GUI, and license() for information.        

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/home/Downloads/sage-5.0-linux-64bit-fedora_release_16_verne_-x86_64-Linux/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/Downloads/sage-5.0-linux-64bit-fedora_release_16_verne_-x86_64-Linux/local/bin/ipy_profile_sage.py in <module>()
      5     preparser(True)
      6     
----> 7     import sage.all_cmdline
      8     sage.all_cmdline._init_cmdline(globals())
      9     

/home/Downloads/sage-5.0-linux-64bit-fedora_release_16_verne_-x86_64-Linux/local/lib/python2.7/site-packages/sage/all_cmdline.py in <module>()
     12 try:
     13 
---> 14     from sage.all import *
     15     from sage.calculus.predefined import x
     16     preparser(on=True)

/home/Downloads/sage-5.0-linux-64bit-fedora_release_16_verne_-x86_64-Linux/local/lib/python2.7/site-packages/sage/all.py in <module>()
     76 
     77 # This must come before Calculus -- it initializes the Pynac library.
---> 78 import sage.symbolic.pynac
     79 
     80 from sage.modules.all    import *

/home/Downloads/sage-5.0-linux-64bit-fedora_release_16_verne_-x86_64-Linux/local/bin/pynac.pyx in init sage.symbolic.pynac (sage/symbolic/pynac.cpp:20046)()
   2108 
   2109 
-> 2110 
   2111 
   2112 

/home/Downloads/sage-5.0-linux-64bit-fedora_release_16_verne_-x86_64-Linux/local/bin/pynac.pyx in sage.symbolic.pynac.init_pynac_I (sage/symbolic/pynac.cpp:18021)()
   2004 
   2005 
-> 2006 
   2007 
   2008 

/home/Downloads/sage-5.0-linux-64bit-fedora_release_16_verne_-x86_64-Linux/local/lib/python2.7/site-packages/sage/rings/number_field/number_field.pyc in QuadraticField(D, name, check, embedding, latex_name, **args)
    729     if latex_name == 'sqrt':
    730         latex_name = r'\sqrt{%s}' % D
--> 731     return NumberField(f, name, check=False, embedding=embedding, latex_name=latex_name, **args)
    732 
    733 def is_AbsoluteNumberField(x):

/home/Downloads/sage-5.0-linux-64bit-fedora_release_16_verne_-x86_64-Linux/local/lib/python2.7/site-packages/sage/rings/number_field/number_field.pyc in NumberField(polynomial, name, check, names, cache, embedding, latex_name, assume_disc_small, maximize_at_primes)
    451     if polynomial.degree() == 2:
    452         K = NumberField_quadratic(polynomial, name, latex_name, check, embedding,
--> 453              assume_disc_small=assume_disc_small, maximize_at_primes=maximize_at_primes)
    454     else:
    455         K = NumberField_absolute(polynomial, name, latex_name, check, embedding,

/home/Downloads/sage-5.0-linux-64bit-fedora_release_16_verne_-x86_64-Linux/local/lib/python2.7/site-packages/sage/rings/number_field/number_field.pyc in __init__(self, polynomial, name, latex_name, check, embedding, assume_disc_small, maximize_at_primes)
   8302             else:
   8303                 from sage.rings.complex_double import CDF
-> 8304                 self._standard_embedding = CDF.has_coerce_map_from(self) and CDF(rootD).imag() > 0
   8305 
   8306     def _coerce_map_from_(self, K):

/home/Downloads/sage-5.0-linux-64bit-fedora_release_16_verne_-x86_64-Linux/local/lib/python2.7/site-packages/sage/rings/complex_double.so in sage.rings.complex_double.ComplexDoubleField_class.__call__ (sage/rings/complex_double.c:3854)()
    320 
    321 
--> 322 
    323 
    324 

/home/Downloads/sage-5.0-linux-64bit-fedora_release_16_verne_-x86_64-Linux/local/lib/python2.7/site-packages/sage/structure/parent.so in sage.structure.parent.Parent.__call__ (sage/structure/parent.c:7941)()
   1056 
   1057 
-> 1058 
   1059 
   1060 

/home/Downloads/sage-5.0-linux-64bit-fedora_release_16_verne_-x86_64-Linux/local/lib/python2.7/site-packages/sage/categories/map.so in sage.categories.map.FormalCompositeMap._call_ (sage/categories/map.c:6087)()
   1268 
   1269 
-> 1270 
   1271 
   1272 

/home/Downloads/sage-5.0-linux-64bit-fedora_release_16_verne_-x86_64-Linux/local/lib/python2.7/site-packages/sage/rings/number_field/number_field_morphisms.so in sage.rings.number_field.number_field_morphisms.NumberFieldEmbedding._call_ (sage/rings/number_field/number_field_morphisms.c:2244)()
     75 
     76 
---> 77 
     78 
     79 

/home/Downloads/sage-5.0-linux-64bit-fedora_release_16_verne_-x86_64-Linux/local/lib ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
2

answered 2012-05-17 08:16:03 -0600

kcrisman gravatar image

updated 2012-05-17 08:18:38 -0600

You need to install the boost libraries, see this sage-support thread.

We're following up on this bug (boost is not a required runtime dependency) at this sage-devel post and Trac 12963.

edit flag offensive delete link more

Comments

Thanks, that was the issue. Everything runs normally now.

yossarian gravatar imageyossarian ( 2012-05-17 10:15:52 -0600 )edit

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-05-17 08:04:08 -0600

Seen: 363 times

Last updated: May 17 '12