I am trying to follow the directions on the page

http://sagemath.org/doc/numerical_sage/installation_osx.html

to install the visualization software in an os-x (10.6.3) installation
of sage 4.6.1 and absolutely nothing there works.  Running

cd $SAGE_ROOT/local/lib
rm libpng*.dylib

from the terminal, severely breaks sage, as it starts up with a very
long string of error messages (pasted at the bottom of this post).  It
then can't even recognize the command "install_package", or even
"2+2".  If I instead try removing those files after starting sage, I
can try the line

install_package('python-2.5.1-framework')

but it says the package can't be found.  In fact, I get the same error
when trying to install any of the other packages mentioned on this
page, such as vtk, scitools or mayavi.

I have had the exact same problems in sage 4.6, running on 10.4 and
10.5 as well.  I somehow feel this page is very out of date, as I
followed some of the instructions on the related page

http://sagemath.org/doc/numerical_sage/installation_linux.html

to find out what installation of python I'm running, and it came back
with

sage: !ls spkg/standard | grep python
ipython-0.9.1.p0.spkg
python-2.6.4.p9.spkg
python_gnutls-1.1.4.p7.spkg

But it even says that the package 'python-2.6.4.p9.spkg' can't be
found.

Can anyone help out here?

Thanks,
Jon

Here is what happens when I run sage from the command line after
running "rm libpng*.dylib"

----------------------------------------------------------------------
| Sage Version 4.6.1, Release Date: 2011-01-11                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call
last)

/Users/jtyard/sage-4.6.1/local/lib/python2.6/site-packages/IPython/
ipmaker.pyc in force_import(modname)
     64         reload(sys.modules[modname])
     65     else:
---> 66         __import__(modname)
     67
     68

/Users/jtyard/sage-4.6.1/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

/Users/jtyard/sage-4.6.1/local/lib/python2.6/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)

/Users/jtyard/sage-4.6.1/local/lib/python2.6/site-packages/sage/all.py
in <module>()
     71
     72 from sage.rings.all      import *
---> 73 from sage.matrix.all     import *
     74
     75 # This must come before Calculus -- it initializes the Pynac
library.


/Users/jtyard/sage-4.6.1/local/lib/python2.6/site-packages/sage/matrix/
all.py in <module>()
----> 1
      2
      3 from matrix_space import MatrixSpace, is_MatrixSpace
      4 from constructor import matrix, Matrix, random_matrix,
diagonal_matrix, identity_matrix, block_matrix, block_diagonal_matrix,
jordan_block, zero_matrix, ones_matrix
      5 from matrix import is_Matrix
      6 from berlekamp_massey import berlekamp_massey
      7

/Users/jtyard/sage-4.6.1/local/lib/python2.6/site-packages/sage/matrix/
matrix_space.pyc in <module>()
     35 import matrix_generic_sparse
     36
---> 37 import matrix_modn_dense
     38 import matrix_modn_sparse
     39

/Users/jtyard/sage-4.6.1/local/bin/matrix_integer_dense.pxd in init
sage.matrix.matrix_modn_dense (sage/matrix/matrix_modn_dense.c:15559)
()

/Users/jtyard/sage-4.6.1/local/bin/matrix_mod2_dense.pxd in init
sage.matrix.matrix_integer_dense (sage/matrix/matrix_integer_dense.c:
40593)()

ImportError: dlopen(/Users/jtyard/sage-4.6.1/local/lib/python2.6/site-
packages/sage/matrix/matrix_mod2_dense.so, 2): Library not loaded: /
Users/jtyard/sage-4.6.1/local/lib/libpng12.0.dylib
  Referenced from: /Users/jtyard/sage-4.6.1/local/lib/python2.6/site-
packages/sage/matrix/matrix_mod2_dense.so
  Reason: image not found
Error importing ipy_profile_sage - perhaps you should run %upgrade?
WARNING: Loading of ipy_profile_sage failed.

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to