[yt-users] Problem generating python executable in yt 3.0

Nathan Goldbaum nathan12343 at gmail.com
Wed Jul 15 17:44:22 PDT 2015


On Wed, Jul 15, 2015 at 12:19 PM, Juan Camilo Ibanez Mejia <
jibanezmejia at amnh.org> wrote:

>  Hi all,
>
>  I'm running into some problems while trying to generate a python
> executable in yt3.0
> I was able to do it in yt2.6 but not in this newer version, this is an
> example of what I'm doing:
>
>   >#!/home/jcibanezm/codes/yt30/yt-x86_64/bin/python
>  >
>  >import yt
>  >print "Hello World"
>
>
>  And when I run this, I get the following error:
>
>  Traceback (most recent call last):
>   File "./Test.py", line 3, in <module>
>     from yt.config import ytcfg;ytcfg["yt","__withinreason"]="True"
>   File "/home/jcibanezm/codes/yt30/yt-x86_64/src/yt-hg/yt/__init__.py",
> line 121, in <module>
>     from yt.data_objects.api import \
>   File
> "/home/jcibanezm/codes/yt30/yt-x86_64/src/yt-hg/yt/data_objects/api.py",
> line 53, in <module>
>     from .image_array import \
>   File
> "/home/jcibanezm/codes/yt30/yt-x86_64/src/yt-hg/yt/data_objects/image_array.py",
> line 15, in <module>
>     from yt.visualization.image_writer import write_bitmap, write_image
>   File
> "/home/jcibanezm/codes/yt30/yt-x86_64/src/yt-hg/yt/visualization/image_writer.py",
> line 24, in <module>
>     import yt.utilities.png_writer as pw
>   File
> "/home/jcibanezm/codes/yt30/yt-x86_64/src/yt-hg/yt/utilities/png_writer.py",
> line 13, in <module>
>     import matplotlib._png as _png
> ImportError: libpng16.so.16: cannot open shared object file: No such file
> or directory
>

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.

What OS is this?

Have you tried completely deleting the yt-x86_64 folder and rerunning the
install script?


>
>
>  Any idea ?
> thanks for your help.
> Best,
> Juan
>
>
>     --------------------------------------------------
> Juan Camilo Ibáñez-Mejia
> PhD student in Physics.
>  Institut für Theoretische Astrophysik,
> Zentrum für Astronomie Heidelberg
> jibanez at zah.uni-heidelberg.de
>
>  American Museum of Natural History
> +1-212-313-7435
> jibanezmejia at amnh.org
> ----------------------------------------------------
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20150715/f05dcb82/attachment.html>


More information about the yt-users mailing list