New OSX installers (beta)

Hello,

I used your new beta installer to install matplotlib on a G5 running OS X 10.5.5. I tried the contour demo and got this error

pylab_examples$ pythonw contour_demo.py
Traceback (most recent call last):
   File "contour_demo.py", line 12, in <module>
     import matplotlib.pyplot as plt
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pyplot.py", line 6, in <module>
     from matplotlib.figure import Figure, figaspect
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/figure.py", line 19, in <module>
     from axes import Axes, SubplotBase, subplot_class_factory
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axes.py", line 18, in <module>
     import matplotlib.image as mimage
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/image.py", line 19, in <module>
     from matplotlib import _png
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/_png.so, 2): Symbol not found: _png_destroy_read_struct
   Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/_png.so
   Expected in: dynamic lookup

I was able to build matplotlib by using MACOSX_DEPLOYMENT_TARGET. I built libpng 1.2.33, freetype 2.3.7 and pkgconfig 0.23 with gcc 4.0.1 from XCode 3.1.2. to build and install matplotlib I did

env MACOSX_DEPLOYMENT_TARGET=10.5 python setup.py build
sudo env MACOSX_DEPLOYMENT_TARGET=10.5 python setup.py install

I don't get "Symbol not found:" errors for _png.so now, but negative signs on numbers in the axis labels appear as boxes instead of -'s. I may try the freetype in /usr/X11 instead of the one I compiled.

Thanks for all the work on matplotlib,
Scott

Hi Scott -- thanks for the report. Could you post the output of

otool -L /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/_png.so

JDH

···

On Mon, Dec 15, 2008 at 1:08 AM, Scott Lasley <slasley@...2425...> wrote:

Hello,

I used your new beta installer to install matplotlib on a G5 running
OS X 10.5.5. I tried the contour demo and got this error

pylab_examples$ pythonw contour_demo.py
Traceback (most recent call last):
  File "contour_demo.py", line 12, in <module>
    import matplotlib.pyplot as plt
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/matplotlib/pyplot.py", line 6, in <module>
    from matplotlib.figure import Figure, figaspect
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/matplotlib/figure.py", line 19, in <module>
    from axes import Axes, SubplotBase, subplot_class_factory
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/matplotlib/axes.py", line 18, in <module>
    import matplotlib.image as mimage
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/matplotlib/image.py", line 19, in <module>
    from matplotlib import _png
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/
lib/python2.5/site-packages/matplotlib/_png.so, 2): Symbol not found:
_png_destroy_read_struct
  Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/
lib/python2.5/site-packages/matplotlib/_png.so
  Expected in: dynamic lookup