Adam,
according to the FAQ No. 3.9: "It may be that you have Tcl/Tk installed and that your system's python recognizes it, but Sage's python does not, To fix that, install the tcl/tk development library (something like tk8.5-dev)." Then, you can test if this is the case giving: sage: import _tkinter sage: import Tkinter if it does not complain your SAGE's python recognizes it. If it does, you need to reinstall your SAGE's Python: sage -f python-2.5.2.p9 and make the test again. sage: import _tkinter sage: import Tkinter. It should work now. Regards, Jorge > Date: Sat, 30 May 2009 10:04:41 -0700 > Subject: [sage-support] Re: sage with tkinter (or some graphics backend?) on > Mac OS X > From: keflav...@gmail.com > To: sage-support@googlegroups.com > > > Here's what I tried: > > download tcl8.5.7-src.tar.gz and tk8.5.7-src.tar.gz from > http://www.tcl.tk/software/tcltk/download.html > run ./configure --enable-framework --disable-xft in the unix/ > subdirectory of tcl, then make & make install as normal > run ./configure --enable-framework --disable-xft in the unix/ > subdirectory of tk, then make & make install as normal > /Applications/sage/sage -sh > cd /Applications/sage/spkg/standard/python-2.5.2.p9/src/ > [edit setup.py as suggested at http://trac.sagemath.org/sage_trac/ticket/4970] > ./spkg-install > > ERROR: > /usr/bin/install -c -m 644 ./Misc/python.man \ > /Applications/sage/local/share/man/man1/python.1 > Copying 64 bit OSX specific pymactoolbox.h > Sleeping for three seconds before testing python > Traceback (most recent call last): > File "<string>", line 1, in <module> > File "/Applications/sage/local/lib/python2.5/md5.py", line 6, in > <module> > from hashlib import md5 > File "/Applications/sage/local/lib/python2.5/hashlib.py", line 133, > in <module> > md5 = __get_builtin_constructor('md5') > File "/Applications/sage/local/lib/python2.5/hashlib.py", line 60, > in __get_builtin_constructor > import _md5 > ImportError: No module named _md5 > md5 module failed to import > > OK, that failed, trying something different... > Download tcltk from: http://nullhomotopie.de/tcltk8.5.7.spkg (as per > instructions on http://wiki.sagemath.org/Yacop) > > ./sage -f spkg/optional/tcltk8.5.7.spkg spkg/standard/ > matplotlib-0.98.5.3rc0-svn6910.p3 spkg/standard/python-2.5.2.p9 > > Then try to import _tkinter....: > /Applications/sage$ ./sage -c "import _tkinter" > Traceback (most recent call last): > File "/Applications/sage/local/bin/sage-eval", line 14, in <module> > eval(compile(s,'<cmdline>','exec')) > File "<cmdline>", line 1, in <module> > ImportError: No module named _tkinter > > So I'm still stuck. Any ideas? > > Thanks, > Adam > > _________________________________________________________________ Windows Live te ayuda a mantenerte en contacto con todos tus amigos en un solo sitio. http://www.microsoft.com/mexico/windows/windowslive/products/social-network-connector.aspx --~--~---------~--~----~------------~-------~--~----~ 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 URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---