[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Adam
I'm on a mac. There is no 'tk8.5-dev' package to install with fink. I've tried installing the activstate tcl/tk and their devtools. I've also tried installing tcl/tk from source. Is there anything else I can try? Certainly, following the FAQ, the instructions on the trac ticket above, or

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Christian Nassau
Getting python to pick up the right Tcl on the Mac has been (still is) a real PITA. With the Yacop project we've now switched to using a private fork Tkynter of Tkinter with a much simplified build script. It just *might* be the case that something similar could work for you. I would recommend

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Adam
That is quite a process, but it's good to know that I'm not just being obtuse. That said, I'll now be obtuse: I found the path to the headers as you suggested... /Library/Frameworks/Tcl.framework/Headers or /Library/Frameworks/Tcl.framework/Versions/8.5/Headers/ But I don't understand what I

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Christian Nassau
Hi Adam, I've just uploaded a new tar file which also includes the lib-tk folder. http://nullhomotopie.de/tkinter.tar.gz This now has the following setup.py: from distutils.core import setup, Extension import os import glob setup(name='Tkinter', version='1.0',

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Adam
I was able to follow your install instructions, and got a new error in sage this time: eta /Applications/sage/spkg/optional/yacop1.0/Tkynter-1.0$ sage setup.py install running install running build running build_py running build_ext building '_tkinter' extension gcc -fno-strict-aliasing

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Christian Nassau
Adam wrote: gcc -m64 -L/Applications/sage/local/lib -bundle -undefined dynamic_lookup build/temp.macosx-10.3-i386-2.5/_tkinter.o build/ temp.macosx-10.3-i386-2.5/tkappinit.o -L/usr/lib/ -ltcl8.5 -ltk8.5 -o build/lib.macosx-10.3-i386-2.5/_tkinter.so ld warning: in

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Adam
Same problem, but with a different dylib file selected: eta /Applications/sage/spkg/optional/yacop1.0/Tkynter-1.0$ sage setup.py install running install running build running build_py creating build creating build/lib.macosx-10.3-i386-2.5 creating build/lib.macosx-10.3-i386-2.5/lib-tk copying

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Christian Nassau
Very strange... I wonder why you have an -m64 in your gcc's? My compilation statements look like this: building '_tkinter' extension gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DWITH_APPINIT=1

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Adam
So perhaps there's something fundamentally wrong with my system setup? That wouldn't surprise me eta /Applications/sage/spkg/optional/yacop1.0/Tkynter-1.0$ echo $CC gcc eta /Applications/sage/spkg/optional/yacop1.0/Tkynter-1.0$ echo $CFLAGS eta

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Christian Nassau
Adam wrote: /Applications/sage/local/include/python2.5/pyport.h:761:2: error: #error LONG_BIT definition appears wrong for platform (bad gcc/glibc config?). Ok, so the -m64 was probably right... What does the file command say about the architecture of your files? I'm getting this:

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Adam
Looks like you nailed that one eta /Applications/sage/spkg/optional/yacop1.0/Tkynter-1.0$ file / Applications/sage/local/bin/python /Applications/sage/local/bin/python: Mach-O 64-bit executable x86_64 eta /Applications/sage/spkg/optional/yacop1.0/Tkynter-1.0$ file /usr/ lib/libtcl8.4.dylib

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Christian Nassau
Adam wrote: So I can try re-compiling tcl and hoping I get a 64bit compatible version out of it (need to set some -archs keywords, I guess...) and Tcl has an -enable-64-bit switch in its configure script, so that might do the trick. see if that gets me anywhere. But I'm a little bothered

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Adam
Yeah, but I tried that... now I know why it didn't work: eta /Applications/sage/spkg/optional/yacop1.0/Tkynter-1.0$ sage setup_8.4.py install running install running build running build_py running build_ext building '_tkinter' extension gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Christian Nassau
Adam wrote: So the default tcl has x86-64 but the default tk does not. So my best guess is that I do not have to compile tcl from scratch, but I do have to compile tk and in case you're wondering I haven't been able to do that:

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-06-01 Thread Adam
Thanks. I finally got the tcl/tk issues worked out, so I now have tcl/ tk 8.5 with x86_64 support installed. eta /Applications/sage/spkg/optional/yacop1.0/Tkynter-1.0$ file / Library/Frameworks/Tk.framework/Versions/8.5/Tk /Library/Frameworks/Tk.framework/Versions/8.5/Tk: Mach-O universal

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-05-30 Thread Adam
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

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-05-30 Thread Jorge E . ´Sanchez Sanchez
. 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

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-05-22 Thread mabshoff
On May 22, 7:30 am, Adam keflav...@gmail.com wrote: Hi Adam, Thanks Michael.  I've tried doing as you said, but still no luck. export SAGE_MATPLOTLIB_GUI=yes ./sage -f python-2.5.2.p9 matplotlib-0.98.5.3rc0-svn6910.p3 but I get the same error.  Any idea what else I should try? See

[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-05-20 Thread mabshoff
On May 20, 7:48 pm, Adam keflav...@gmail.com wrote: The problem is that I can't import pylab because _tkinter isn't recognized: sage: import pylab lots of stuff chopped out ImportError: No module named _tkinter Adam We disable the tk backend in MPL on all platforms. To work around this