Tkinter is not available on the binary distribution of Sage for Mac OS
10.5 (Intel).
As I wanted to use the TkAgg backend for matplotib I compiled Sage
from the source. However then again import Tkinter failed (even though
tk8.4 is installed as a framework). I noticed that _tkinter.so was
compiled properly, but was replaced
bu _tkinter_failed.so as import _tkinter did not work because it could
not
find symbol __cg_png_create_info_struct referenced in ImageIO and
expected
in sage-3.2.3/local/lib/libPng.dylib

I found a fix on an apple support list
http://lists.apple.com/archives/Unix-porting/2008/Sep/msg00033.html

The workaround is to rename libpng.dylib from sage and recompile
python using
sage -f python-2.5.2.p!
and matplotlib
sage -f matplotlib-0.98.3.p4
and everything seems to work.

It would be nice if this could be fixed properly, maybe by giving
another name
to libpng.dylib in the mac distribution, and the version with tkinter
included
in the binary distribution.

Eric Sonnendrucker

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to