<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 15, 2015 at 12:19 PM, Juan Camilo Ibanez Mejia <span dir="ltr"><<a href="mailto:jibanezmejia@amnh.org" target="_blank">jibanezmejia@amnh.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">
Hi all,
<div><br>
</div>
<div>I'm running into some problems while trying to generate a python executable in yt3.0</div>
<div>I was able to do it in yt2.6 but not in this newer version, this is an example of what I'm doing:</div>
<div><br>
</div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div>
<div>>#!/home/jcibanezm/codes/yt30/yt-x86_64/bin/python</div>
</div>
<div>
<div>></div>
</div>
<div>
<div>>import yt</div>
</div>
<div>
<div>>print "Hello World"</div>
</div>
</blockquote>
<div><br>
</div>
<div>And when I run this, I get the following error:</div>
<div><br>
</div>
<div>
<div>Traceback (most recent call last):</div>
<div>  File "./Test.py", line 3, in <module></div>
<div>    from yt.config import ytcfg;ytcfg["yt","__withinreason"]="True"</div>
<div>  File "/home/jcibanezm/codes/yt30/yt-x86_64/src/yt-hg/yt/__init__.py", line 121, in <module></div>
<div>    from yt.data_objects.api import \</div>
<div>  File "/home/jcibanezm/codes/yt30/yt-x86_64/src/yt-hg/yt/data_objects/api.py", line 53, in <module></div>
<div>    from .image_array import \</div>
<div>  File "/home/jcibanezm/codes/yt30/yt-x86_64/src/yt-hg/yt/data_objects/image_array.py", line 15, in <module></div>
<div>    from yt.visualization.image_writer import write_bitmap, write_image</div>
<div>  File "/home/jcibanezm/codes/yt30/yt-x86_64/src/yt-hg/yt/visualization/image_writer.py", line 24, in <module></div>
<div>    import yt.utilities.png_writer as pw</div>
<div>  File "/home/jcibanezm/codes/yt30/yt-x86_64/src/yt-hg/yt/utilities/png_writer.py", line 13, in <module></div>
<div>    import matplotlib._png as _png</div>
<div>ImportError: libpng16.so.16: cannot open shared object file: No such file or directory</div></div></div></blockquote><div><br></div><div>It looks like your python installation is broken - matplotlib can't find libpng. Since it was able to find it when matplotlib was installed initally, this indicates to me that libpng was deleted out from under it.</div><div><br></div><div>What OS is this?</div><div><br></div><div>Have you tried completely deleting the yt-x86_64 folder and rerunning the install script?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Any idea ?</div>
<div>thanks for your help.</div>
<div>Best,</div>
<div>Juan</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>
<div style="word-wrap:break-word">
<div style="word-wrap:break-word">
<span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
<div style="word-wrap:break-word">
<div>
<div>--------------------------------------------------</div>
<div>Juan Camilo Ibáñez-Mejia</div>
<div>PhD student in Physics.</div>
<div>
<div>Institut für Theoretische Astrophysik,</div>
<div>Zentrum für Astronomie Heidelberg</div>
<div><a href="mailto:jibanez@zah.uni-heidelberg.de" target="_blank">jibanez@zah.uni-heidelberg.de</a></div>
</div>
<div><br>
</div>
<div>American Museum of Natural History</div>
<div><a href="tel:%2B1-212-313-7435" value="+12123137435" target="_blank">+1-212-313-7435</a></div>
<div><a href="mailto:jibanezmejia@amnh.org" target="_blank">jibanezmejia@amnh.org</a></div>
<div>----------------------------------------------------</div>
</div>
</div>
</span></div>
</div>
</div>
<br>
</div>
</div>

<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div></div>