[yt-users] Odd runtime error on Snow Leopard

Matthew Turk matthewturk at gmail.com
Thu Jun 16 13:03:52 PDT 2011


Hi John,

Looks like libpng changed the way it handles setjmp somewhere, and
matplotlib is finding the *new* headers but the *old* library.  I
think.  It looks like this might fix the problem:

http://forum.openframeworks.cc/index.php?topic=6392.0

but another option I think would be to wipe the png related stuff from
yt-i386, remove the matplotlib and yt stuff from the yt-i386/src
directory, turn INST_LIBPNG to 0 and rerun install script.

But, I think this issue might be something with matplotlib's build,
not with the overall yt; matplotlib is aggressive about finding
libraries on the system and looks like it has grabbed one from, say,
XCode4 or something, which is breaking this.  yt should avoid this
with the compiler preprocessing directive about SETJMP.

-Matt

On Thu, Jun 16, 2011 at 10:51 AM, John ZuHone <jzuhone at cfa.harvard.edu> wrote:
> Hi all,
>
> I have a strange runtime error after installing yt-dev on Snow Leopard.
>
> Traceback (most recent call last):
>  File "/Users/jzuhone/Source/yt-i386/bin/iyt", line 7, in <module>
>    execfile(__file__)
>  File "/Users/jzuhone/Source/yt-i386/src/yt-hg/scripts/iyt", line 3, in <module>
>    from yt.mods import *
>  File "/Users/jzuhone/Source/yt-i386/src/yt-hg/yt/mods.py", line 96, in <module>
>    from yt.visualization.api import \
>  File "/Users/jzuhone/Source/yt-i386/src/yt-hg/yt/visualization/api.py", line 34, in <module>
>    from plot_collection import \
>  File "/Users/jzuhone/Source/yt-i386/src/yt-hg/yt/visualization/plot_collection.py", line 26, in <module>
>    from matplotlib import figure
>  File "/Users/jzuhone/Source/yt-i386/lib/python2.7/site-packages/matplotlib/figure.py", line 18, in <module>
>    from axes import Axes, SubplotBase, subplot_class_factory
>  File "/Users/jzuhone/Source/yt-i386/lib/python2.7/site-packages/matplotlib/axes.py", line 14, in <module>
>    import matplotlib.axis as maxis
>  File "/Users/jzuhone/Source/yt-i386/lib/python2.7/site-packages/matplotlib/axis.py", line 14, in <module>
>    import matplotlib.text as mtext
>  File "/Users/jzuhone/Source/yt-i386/lib/python2.7/site-packages/matplotlib/text.py", line 31, in <module>
>    from matplotlib.backend_bases import RendererBase
>  File "/Users/jzuhone/Source/yt-i386/lib/python2.7/site-packages/matplotlib/backend_bases.py", line 41, in <module>
>    import matplotlib.textpath as textpath
>  File "/Users/jzuhone/Source/yt-i386/lib/python2.7/site-packages/matplotlib/textpath.py", line 9, in <module>
>    from matplotlib.mathtext import MathTextParser
>  File "/Users/jzuhone/Source/yt-i386/lib/python2.7/site-packages/matplotlib/mathtext.py", line 52, in <module>
>    import matplotlib._png as _png
> ImportError: dlopen(/Users/jzuhone/Source/yt-i386/lib/python2.7/site-packages/matplotlib/_png.so, 2): Symbol not found: _png_set_longjmp_fn
>  Referenced from: /Users/jzuhone/Source/yt-i386/lib/python2.7/site-packages/matplotlib/_png.so
>  Expected in: dynamic lookup
>
> I have tried the following things:
>
> 1) using the libpng (1.4.4) installed via Fink vs. the yt local copy of libpng, making sure that the environment variables were set appropriately
> 2) setting the environment variables CC and CXX as suggested by the script
>
> neither of these things seems to make much of a difference.
>
> Best,
>
> John ZuHone
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>



More information about the yt-users mailing list