Message99346
Hi,
Wow, thank you for noticing this. I tried to install python 2.6.4
with the mac dmg, but couldn't figure out where it was installed. I
hunted around and made a link to a python 2.6 that I found - it must
have been a previous version.
Now I have a fresh and successful python 2.6.4 install, Tkinter test
works, and so I should be set.
I am still having trouble building matplotlib. Apparently my
syslibroot is multiply specified. (I installed Xcode 2.2.1 from the
mac developer site recently, by the way...). If you understand this,
I would really appreciate any insight you have (I am attaching the
output from when I try to build matplotlib).
thank you!!
Katrine
python2.6 setup.py build
========================================================================
====
BUILDING MATPLOTLIB
matplotlib: 0.99.1.1
python: 2.6.4 (r264:75821M, Oct 27 2009, 19:48:32)
[GCC
4.0.1 (Apple Inc. build 5493)]
platform: darwin
REQUIRED DEPENDENCIES
numpy: 1.3.0
freetype2: found, but unknown version (no pkg-config)
* WARNING: Could not find 'freetype2'
headers in any
* of '.', './freetype2'.
OPTIONAL BACKEND DEPENDENCIES
libpng: found, but unknown version (no pkg-config)
* Could not find 'libpng' headers in any of '.'
Tkinter: Tkinter: 73770, Tk: 8.4, Tcl: 8.4
wxPython: no
* wxPython not found
Gtk+: no
* Building for Gtk+ requires pygtk; you must
be able
* to "import gtk" in your build/install
environment
Mac OS X native: yes
Qt: no
Qt4: no
Cairo: no
OPTIONAL DATE/TIMEZONE DEPENDENCIES
datetime: present, version unknown
dateutil: matplotlib will provide
pytz: matplotlib will provide
adding pytz
OPTIONAL USETEX DEPENDENCIES
dvipng: no
ghostscript: /bin/sh: line 1: gs: command not found
latex: no
[Edit setup.cfg to suppress the above messages]
========================================================================
====
pymods ['pylab']
packages ['matplotlib', 'matplotlib.backends',
'matplotlib.projections', 'mpl_toolkits', 'mpl_toolkits.mplot3d',
'mpl_toolkits.axes_grid', 'matplotlib.sphinxext',
'matplotlib.numerix', 'matplotlib.numerix.mlab',
'matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra',
'matplotlib.numerix.random_array', 'matplotlib.numerix.fft',
'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil/zoneinfo']
running build
running build_py
copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.macosx-10.4-
fat-2.6/matplotlib/mpl-data
copying lib/matplotlib/mpl-data/matplotlib.conf -> build/
lib.macosx-10.4-fat-2.6/matplotlib/mpl-data
running build_ext
building 'matplotlib.ft2font' extension
c++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g
-bundle -undefined dynamic_lookup -arch i386 -arch ppc -L/usr/local/
lib -syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -
I/usr/local/include -I/usr/local/include/freetype2 -isysroot /
Developer/SDKs/MacOSX10.4u.sdk build/temp.macosx-10.4-fat-2.6/src/
ft2font.o build/temp.macosx-10.4-fat-2.6/src/mplutils.o build/
temp.macosx-10.4-fat-2.6/CXX/cxx_extensions.o build/temp.macosx-10.4-
fat-2.6/CXX/cxxsupport.o build/temp.macosx-10.4-fat-2.6/CXX/
IndirectPythonInterface.o build/temp.macosx-10.4-fat-2.6/CXX/
cxxextensions.o -lfreetype -lz -lstdc++ -lm -o build/lib.macosx-10.4-
fat-2.6/matplotlib/ft2font.so
powerpc-apple-darwin8-g++-4.0.1: unrecognized option '-syslibroot,/
Developer/SDKs/MacOSX10.4u.sdk'
i686-apple-darwin8-g++-4.0.1: unrecognized option '-syslibroot,/
Developer/SDKs/MacOSX10.4u.sdk'
//usr/bin/ld: -usr/syslibroot: multiply specified
bincollect2: /ld: -syslibroot: multiply specified
ld returned 1 exit statuscollect2:
ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccym1XU1.out (No such file or
directory)
error: command 'c++' failed with exit status 1
make: *** [mpl_build] Error 1
katrine-whitesons-computer:/Applications/Q/matplotlib-0.99.1.1
katrinewhiteson$ gcc -V
gcc: argument to `-V' is missing
katrine-whitesons-computer:/Applications/Q/matplotlib-0.99.1.1
katrinewhiteson$ which gcc
/usr/bin/gcc
katrine-whitesons-computer:/Applications/Q/matplotlib-0.99.1.1
katrinewhiteson$ c f yj ny
-bash: c: command not found
katrine-whitesons-computer:/Applications/Q/matplotlib-0.99.1.1
katrinewhiteson$ k/l
-bash: k/l: No such file or directory
On Feb 12, 2010, at 7:44 PM, Ned Deily wrote:
>
> Ned Deily <nad@acm.org> added the comment:
>
> Ah, earlier you said you installed Python 2.6.4 but, in your most
> recent message, it shows:
>
> katrinewhiteson$ python
> Python 2.6 (trunk:66714:66715M, Oct 1 2008, 18:36:04)
> [GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin
>
> I'm not sure what that is but it's not python 2.6.4 nor a
> python.org python nor an Apple-supplied python. So chances are it
> was linked with Tk 10.5 present on the system. Type:
> which python
> to find out where this one is installed and, if necessary, remove
> it and re-install a python, like from the python.org installer,
> that was linked with Tk 8.4. You then should see something like this:
>
> Python 2.6.4 (r264:75821M, Oct 27 2009, 19:48:32)
> [GCC 4.0.1 (Apple Inc. build 5493)] on darwin
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue5651>
> _______________________________________ |
|
Date |
User |
Action |
Args |
2010-02-14 22:32:59 | Katrine.Whiteson | set | recipients:
+ Katrine.Whiteson, ronaldoussoren, ned.deily |
2010-02-14 22:29:49 | Katrine.Whiteson | link | issue5651 messages |
2010-02-14 22:29:47 | Katrine.Whiteson | create | |
|