Matplotlib 0.98.5 egg on Mac OS X : Install Problem

Hi Everyone,

I am running into a problem when trying to install 0.98.5 egg on a Mac OS X
machine. Any help much appreciated. Relevant error messages follow:

Thanks
-Kaushik

sudo easy_install
matplotlib-0.98.5-py2.5-macosx-10.3.egg**********************************************************************

···

============================================================================

BUILDING MATPLOTLIB

              matplotlib: 0.98.5

                  python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC

                          4.0.1 (Apple Computer, Inc. build 5363)]

                platform: darwin

REQUIRED DEPENDENCIES

                   numpy: 1.2.1

               freetype2: found, but unknown version (no pkg-config)

OPTIONAL BACKEND DEPENDENCIES

                  libpng: found, but unknown version (no pkg-config)

                 Tkinter: Tkinter: 50704, 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: 2008c

OPTIONAL USETEX DEPENDENCIES

                  dvipng: no

             ghostscript: /bin/sh: gs: command not found

                   latex: no

EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES

               configobj: matplotlib will provide

        enthought.traits: no

[Edit setup.cfg to suppress the above messages]

============================================================================

error: lib/matplotlib/mpl-data/matplotlib.conf.template: No such file or directory

Exception exceptions.OSError: (2, 'No such file or directory', 'src/image.cpp')
in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at
0xf61120>> ignored

Exception exceptions.OSError: (2, 'No such file or directory', 'src/path.cpp')
in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at
0xf48968>> ignored

Exception exceptions.OSError: (2, 'No such file or directory',
'src/backend_agg.cpp') in <bound method CleanUpFile.__del__ of
<setupext.CleanUpFile instance at 0xf48c38>> ignored

  From within
ipython:***************************************************************************************************

In [1]: import pylab

---------------------------------------------------------------------------

ImportError Traceback (most recent call last)

/Users/kghose/<ipython console> in <module>()

/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/pylab.py
in <module>()

----> 1 from matplotlib.pylab import *

        2 import matplotlib.pylab

        3 __doc__ = matplotlib.pylab.__doc__

/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/pylab.py
in <module>()

      204 from numpy import ma

      205

--> 206 from matplotlib import mpl # pulls in most modules

      207

      208 from matplotlib.dates import date2num, num2date,\

/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/mpl.py
in <module>()

        2 from matplotlib import axis

----> 3 from matplotlib import axes

        4 from matplotlib import cbook

        5 from matplotlib import collections

        6 from matplotlib import colors

/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/axes.py
in <module>()

       16 import matplotlib.dates as mdates

       17 import matplotlib.font_manager as font_manager

---> 18 import matplotlib.image as mimage

       19 import matplotlib.legend as mlegend

       20 import matplotlib.lines as mlines

/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/image.py
in <module>()

       17 # For clarity, names from _image are given explicitly in this module:

       18 from matplotlib import _image

---> 19 from matplotlib import _png

       20

       21 # For user convenience, the names from _image are also imported into

ImportError:
dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/_png.so,
2): Library not loaded: /usr/local/lib/libpng12.0.dylib

    Referenced from:
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5-py2.5-macosx-10.3.egg/matplotlib/_png.so

    Reason: image not found

In [2]:

Did you miss my repeated posts on this subject, asking for people to
test the new binaries that (hopefully) have fixed this problem?

https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194&release_id=646644

···

On Wed, Dec 17, 2008 at 2:32 PM, Kaushik Ghose <Kaushik_Ghose@...2126...> wrote:

Hi Everyone,

I am running into a problem when trying to install 0.98.5 egg on a Mac OS X
machine. Any help much appreciated. Relevant error messages follow:

Heh, Sorry. Thanks for the link though and Happy Holidays! -Kaushik

John Hunter wrote:

···

On Wed, Dec 17, 2008 at 2:32 PM, Kaushik Ghose > <Kaushik_Ghose@...2126...> wrote:

Hi Everyone,

I am running into a problem when trying to install 0.98.5 egg on a Mac OS X
machine. Any help much appreciated. Relevant error messages follow:

Did you miss my repeated posts on this subject, asking for people to
test the new binaries that (hopefully) have fixed this problem?

https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194&release_id=646644